MarkAttributes.renderIcon

gdk.paintable.Paintable renderIcon(gtk.widget.Widget widget, int size)

Renders an icon of given size.

The base of the icon is set by the last call to one of:

  • [gtksource.mark_attributes.MarkAttributes.setPixbuf]
  • [gtksource.mark_attributes.MarkAttributes.setGicon]
  • [gtksource.mark_attributes.MarkAttributes.setIconName]

size cannot be lower than 1.

Parameters

widgetwidget of which style settings may be used.
sizesize of the rendered icon.

Returns

A #GdkPaintable. The paintable belongs to attributes

and should not be unreffed.