mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
Use the right icon-name for missing images
Patch by Erik van Pienbroek, bug 629878.
This commit is contained in:
parent
2a9bf2619a
commit
fcd01e9718
@ -1581,9 +1581,10 @@ render_fallback_image (GtkStyle *style,
|
|||||||
_gtk_icon_theme_ensure_builtin_cache ();
|
_gtk_icon_theme_ensure_builtin_cache ();
|
||||||
|
|
||||||
index = _gtk_icon_cache_get_directory_index (_builtin_cache, "24");
|
index = _gtk_icon_cache_get_directory_index (_builtin_cache, "24");
|
||||||
pixbuf = _gtk_icon_cache_get_icon (_builtin_cache,
|
pixbuf = _gtk_icon_cache_get_icon (_builtin_cache, "image-missing", index);
|
||||||
GTK_STOCK_MISSING_IMAGE,
|
|
||||||
index);
|
g_return_val_if_fail(pixbuf != NULL, NULL);
|
||||||
|
|
||||||
gtk_icon_source_set_pixbuf (&fallback_source, pixbuf);
|
gtk_icon_source_set_pixbuf (&fallback_source, pixbuf);
|
||||||
g_object_unref (pixbuf);
|
g_object_unref (pixbuf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user