Gtk
Image
SetFromIconSet
Gtk.Image.SetFromIconSet Method
Creates a
Gtk.Image
displaying an
Gtk.IconSet
.
Syntax
public
void
SetFromIconSet
(
IconSet
icon_set,
IconSize
size)
Parameters
icon_set
an object of type
Gtk.IconSet
size
an object of type
Gtk.IconSize
Remarks
Creates a
Gtk.Image
displaying an
Gtk.IconSet
. Sample stock sizes are
IconSize.Menu
,
IconSize.SmallToolbar
. Instead of using this function, usually it is better to create a
Gtk.IconFactory
, put your
Gtk.IconSet
in the
Gtk.IconFactory
, add the
Gtk.IconFactory
to the list of default factories with
IconFactory.AddDefault()
, and then use
Image.SetFromStock(string, IconSize)
. This will allow themes to override the icon you ship with your application.
Requirements
Namespace:
Gtk
Assembly:
gtk-sharp (in gtk-sharp.dll)