summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-04-19 04:14:39 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-04-19 04:14:39 +0000
commit5a706b553b8609d7efdd7f058d646685ea362da8 (patch)
tree51d265f57136705271f4fc4fee9ba109e21d2c34 /gtk/gtkicontheme.h
parentc8d89a96a2a921fc723d2dec7b3cdf7d82d024e1 (diff)
downloadgtk+-5a706b553b8609d7efdd7f058d646685ea362da8.tar.gz
Add GTK_ICON_LOOKUP_GENERIC_FALLBACK icon lookup flag and implement it.
2007-04-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.h: * gtk/gtkicontheme.c: Add GTK_ICON_LOOKUP_GENERIC_FALLBACK icon lookup flag and implement it. (#396901, Luca Ferreti) svn path=/trunk/; revision=17611
Diffstat (limited to 'gtk/gtkicontheme.h')
-rw-r--r--gtk/gtkicontheme.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h
index 8a0ae125ab..cef75e7121 100644
--- a/gtk/gtkicontheme.h
+++ b/gtk/gtkicontheme.h
@@ -66,6 +66,8 @@ struct _GtkIconThemeClass
* gtk_icon_theme_lookup_icon() includes builtin icons
* as well as files. For a builtin icon, gtk_icon_info_get_filename()
* returns %NULL and you need to call gtk_icon_info_get_builtin_pixbuf().
+ * @GTK_ICON_LOOKUP_GENERIC_FALLBACK: Try to shorten icon name at '-'
+ * characters before looking at inherited themes.
*
* Used to specify options for gtk_icon_theme_lookup_icon()
**/
@@ -73,7 +75,8 @@ typedef enum
{
GTK_ICON_LOOKUP_NO_SVG = 1 << 0,
GTK_ICON_LOOKUP_FORCE_SVG = 1 << 1,
- GTK_ICON_LOOKUP_USE_BUILTIN = 1 << 2
+ GTK_ICON_LOOKUP_USE_BUILTIN = 1 << 2,
+ GTK_ICON_LOOKUP_GENERIC_FALLBACK = 1 << 3
} GtkIconLookupFlags;
#define GTK_ICON_THEME_ERROR gtk_icon_theme_error_quark ()