Commit 25536faf authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Update to handle GEmblem`

svn path=/trunk/; revision=20980
parent 45ac6c4f
2008-08-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c: Update to handle GEmblem.
2008-08-04 Michael Natterer <mitch@imendio.com>
* tests/prop-editor.c: undeprecate (apart from still using
......
......@@ -3458,19 +3458,21 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme *icon_theme,
else if (G_IS_EMBLEMED_ICON (icon))
{
GIcon *base, *emblem;
GList *list, *l;
GtkIconInfo *emblem_info;
base = g_emblemed_icon_get_icon (G_EMBLEMED_ICON (icon));
emblem = g_emblemed_icon_get_emblem (G_EMBLEMED_ICON (icon));
/* recursively collect information for all emblems */
info = gtk_icon_theme_lookup_by_gicon (icon_theme, base, size, flags);
if (info)
{
GtkIconInfo *emblem_info;
emblem_info = gtk_icon_theme_lookup_by_gicon (icon_theme, emblem, size / 2, flags);
if (emblem_info)
info->emblem_infos = g_slist_prepend (info->emblem_infos, emblem_info);
list = g_emblemed_icon_get_emblems (G_EMBLEMED_ICON (icon));
for (l = list; l; l = l->next)
{
emblem = g_emblem_get_icon (G_EMBLEM (l->data));
emblem_info = gtk_icon_theme_lookup_by_gicon (icon_theme, emblem, size / 2, flags);
if (emblem_info)
info->emblem_infos = g_slist_prepend (info->emblem_infos, emblem_info);
}
}
return info;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment