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
This commit is contained in:
committed by
Matthias Clasen
parent
e43ed2fe90
commit
4c718accf8
@ -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)
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user