diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-12-29 00:14:30 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-12-29 00:14:30 +0000 |
commit | 4c718accf89b148107439f42e73048f50a37f682 (patch) | |
tree | a181f7bea1da729dc9f25c8ce5f92eb462307293 | |
parent | e43ed2fe902b3d9b4e2d2cf356c835788e861b09 (diff) | |
download | gtk+-4c718accf89b148107439f42e73048f50a37f682.tar.gz |
Adjust to icon cache api change. (#506135, Kazuki Iwamoto)
2007-12-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconfactory.c (render_fallback_image): Adjust to
icon cache api change. (#506135, Kazuki Iwamoto)
svn path=/trunk/; revision=19289
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gtk/gtkiconfactory.c | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2007-12-28 Matthias Clasen <mclasen@redhat.com> + + * gtk/gtkiconfactory.c (render_fallback_image): Adjust to + icon cache api change. (#506135, Kazuki Iwamoto) + 2007-12-28 Mathias Hasselmann <mathias@openismus.com> Remove max_detail_height field from GtkCalendarPrivate. (#339540) diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c index 71055c394a..d8e8bff279 100644 --- a/gtk/gtkiconfactory.c +++ b/gtk/gtkiconfactory.c @@ -1570,13 +1570,15 @@ render_fallback_image (GtkStyle *style, if (fallback_source.type == GTK_ICON_SOURCE_EMPTY) { + gint index; GdkPixbuf *pixbuf; _gtk_icon_theme_ensure_builtin_cache (); + index = _gtk_icon_cache_get_directory_index (_builtin_cache, "24"); pixbuf = _gtk_icon_cache_get_icon (_builtin_cache, GTK_STOCK_MISSING_IMAGE, - "24"); + index); gtk_icon_source_set_pixbuf (&fallback_source, pixbuf); g_object_unref (pixbuf); } |