1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
6 Manipulating stock icons
8 <!-- ##### SECTION Long_Description ##### -->
10 An icon factory manages a collection of #GtkIconSet; a #GtkIconSet manages a
11 set of variants of a particular icon (i.e. a #GtkIconSet contains variants for
12 different sizes and widget states). Icons in an icon factory are named by a
13 stock ID, which is a simple string identifying the icon. Each #GtkStyle has a
14 list of #GtkIconFactory derived from the current theme; those icon factories
15 are consulted first when searching for an icon. If the theme doesn't set a
16 particular icon, GTK+ looks for the icon in a list of default icon factories,
17 maintained by gtk_icon_factory_add_default() and
18 gtk_icon_factory_remove_default(). Applications with icons should add a default
19 icon factory with their icons, which will allow themes to override the icons
24 To display an icon, always use gtk_style_lookup_icon_set() on the widget that
25 will display the icon, or the convenience function
26 gtk_widget_render_icon(). These functions take the theme into account when
27 looking up the icon to use for a given stock ID.
30 <!-- ##### SECTION See_Also ##### -->
35 <!-- ##### STRUCT GtkIconSource ##### -->
49 <!-- ##### STRUCT GtkIconFactory ##### -->
57 <!-- ##### STRUCT GtkIconSet ##### -->
63 <!-- ##### FUNCTION gtk_icon_source_copy ##### -->
72 <!-- ##### FUNCTION gtk_icon_source_free ##### -->
80 <!-- ##### FUNCTION gtk_icon_factory_add ##### -->
90 <!-- ##### FUNCTION gtk_icon_factory_add_default ##### -->
98 <!-- ##### FUNCTION gtk_icon_factory_lookup ##### -->
108 <!-- ##### FUNCTION gtk_icon_factory_lookup_default ##### -->
117 <!-- ##### FUNCTION gtk_icon_factory_new ##### -->
125 <!-- ##### FUNCTION gtk_icon_factory_remove_default ##### -->
133 <!-- ##### FUNCTION gtk_icon_set_add_source ##### -->
142 <!-- ##### FUNCTION gtk_icon_set_copy ##### -->
151 <!-- ##### FUNCTION gtk_icon_set_new ##### -->
159 <!-- ##### FUNCTION gtk_icon_set_ref ##### -->
168 <!-- ##### FUNCTION gtk_icon_set_render_icon ##### -->
183 <!-- ##### FUNCTION gtk_icon_set_unref ##### -->
191 <!-- ##### MACRO GTK_ICON_SIZE_MENU ##### -->
198 <!-- ##### MACRO GTK_ICON_SIZE_BUTTON ##### -->
205 <!-- ##### MACRO GTK_ICON_SIZE_SMALL_TOOLBAR ##### -->
212 <!-- ##### MACRO GTK_ICON_SIZE_LARGE_TOOLBAR ##### -->
219 <!-- ##### MACRO GTK_ICON_SIZE_DIALOG ##### -->
226 <!-- ##### FUNCTION gtk_icon_size_lookup ##### -->
237 <!-- ##### FUNCTION gtk_icon_size_register ##### -->
247 <!-- ##### FUNCTION gtk_icon_size_register_alias ##### -->