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:
Michael Natterer 2014-05-15 15:39:24 +02:00
parent 9dc8436405
commit ae331bc7ac
1 changed files with 7 additions and 2 deletions

View File

@ -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;
}