summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-05-10 15:35:12 +0200
committerBenjamin Otte <otte@redhat.com>2014-05-14 04:28:34 +0200
commit9619b8cff421614490d81f6bc6fe1a2ab3a0bd28 (patch)
treeaa22c178d6dd678c0dc0ed9858ed496c3c39be0c /gtk/gtkicontheme.h
parent109fcb987bdf3be00220a064f9ead23fb5a568a8 (diff)
downloadgtk+-9619b8cff421614490d81f6bc6fe1a2ab3a0bd28.tar.gz
API: icontheme: Add 2 new GtkIconLookupFlags
GTK_ICON_LOOKUP_FORCE_REGULAR and GTK_ICON_LOOKUP_FORCE_SYMBOLIC can be used to force a regular or symbolic icon to be loaded, even if the icon names specify a different version. This is intended to support the CSS property -gtk-icon-style.
Diffstat (limited to 'gtk/gtkicontheme.h')
-rw-r--r--gtk/gtkicontheme.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h
index 84bb0b6322..bdbaafe317 100644
--- a/gtk/gtkicontheme.h
+++ b/gtk/gtkicontheme.h
@@ -113,6 +113,10 @@ struct _GtkIconThemeClass
* fallback, see gtk_icon_theme_choose_icon(). Since 2.12.
* @GTK_ICON_LOOKUP_FORCE_SIZE: Always get the icon scaled to the
* requested size. Since 2.14.
+ * @GTK_ICON_LOOKUP_FORCE_REGULAR: Always load regular icons, even when
+ * symbolic icon names are given. Since 3.14.
+ * @GTK_ICON_LOOKUP_FORCE_SYMBOLIC: Always load symbolic icons, even when
+ * regular icon names are given. Since 3.14.
*
* Used to specify options for gtk_icon_theme_lookup_icon()
*/
@@ -122,7 +126,9 @@ typedef enum
GTK_ICON_LOOKUP_FORCE_SVG = 1 << 1,
GTK_ICON_LOOKUP_USE_BUILTIN = 1 << 2,
GTK_ICON_LOOKUP_GENERIC_FALLBACK = 1 << 3,
- GTK_ICON_LOOKUP_FORCE_SIZE = 1 << 4
+ GTK_ICON_LOOKUP_FORCE_SIZE = 1 << 4,
+ GTK_ICON_LOOKUP_FORCE_REGULAR = 1 << 5,
+ GTK_ICON_LOOKUP_FORCE_SYMBOLIC = 1 << 6
} GtkIconLookupFlags;
/**