diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-01-05 16:30:57 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-01-05 16:33:15 -0500 |
commit | 7799fbf239b8953f3e41b78073584f1dcf2fb27b (patch) | |
tree | 1c0ade1dc5df637422fb24441c41a0f47cb0a4f8 /gtk/gtkicontheme.c | |
parent | 9a80100e9ab2430ecc4375ba6bd2f66784ce34a9 (diff) | |
download | gtk+-7799fbf239b8953f3e41b78073584f1dcf2fb27b.tar.gz |
Add GtkNumerableIcon
This is a subclass of GEmblemedIcon that can show a number or
short string as an emblem, overlayed on top of another emblem.
Written by Cosimo Cecchi
https://bugzilla.gnome.org/show_bug.cgi?id=637169
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r-- | gtk/gtkicontheme.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 7099165267..a163c9cae8 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -45,6 +45,7 @@ #include "gtkbuiltincache.h" #include "gtkintl.h" #include "gtkmain.h" +#include "gtknumerableiconprivate.h" #include "gtksettings.h" #include "gtkprivate.h" @@ -3799,6 +3800,9 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme *icon_theme, GList *list, *l; GtkIconInfo *emblem_info; + if (GTK_IS_NUMERABLE_ICON (icon)) + _gtk_numerable_icon_set_background_icon_size (GTK_NUMERABLE_ICON (icon), size / 2); + base = g_emblemed_icon_get_icon (G_EMBLEMED_ICON (icon)); info = gtk_icon_theme_lookup_by_gicon (icon_theme, base, size, flags); if (info) |