[gimp] libgimpwidgets: add the EEK Wilber as builtin icon
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: add the EEK Wilber as builtin icon
- Date: Thu, 15 May 2014 13:42:47 +0000 (UTC)
commit ae331bc7ac24a30d61c18246dc196618b3a70356
Author: Michael Natterer <mitch gimp org>
Date: Thu May 15 15:39:24 2014 +0200
libgimpwidgets: add the EEK Wilber as builtin icon
so gimp_widget_load_icon() always returns a pixbuf and GIMP doesn't
crash.
libgimpwidgets/gimpstock.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libgimpwidgets/gimpstock.c b/libgimpwidgets/gimpstock.c
index 372866c..53a98a5 100644
--- a/libgimpwidgets/gimpstock.c
+++ b/libgimpwidgets/gimpstock.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]