mirror of https://github.com/GNOME/gimp.git
libgimpwidgets: add the EEK Wilber as builtin icon
so gimp_widget_load_icon() always returns a pixbuf and GIMP doesn't crash.
This commit is contained in:
parent
9dc8436405
commit
ae331bc7ac
|
@ -783,8 +783,9 @@ gimp_stock_init (void)
|
|||
{
|
||||
static gboolean initialized = FALSE;
|
||||
|
||||
gchar *icons_dir;
|
||||
gint i;
|
||||
GdkPixbuf *pixbuf;
|
||||
gchar *icons_dir;
|
||||
gint i;
|
||||
|
||||
if (initialized)
|
||||
return;
|
||||
|
@ -845,5 +846,9 @@ gimp_stock_init (void)
|
|||
icons_dir);
|
||||
g_free (icons_dir);
|
||||
|
||||
pixbuf = gdk_pixbuf_new_from_inline (-1, gimp_wilber_eek_64, FALSE, NULL);
|
||||
gtk_icon_theme_add_builtin_icon (GIMP_STOCK_WILBER_EEK, 64, pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
|
||||
initialized = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue