summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2001-09-14 21:24:57 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2001-09-14 21:24:57 +0000
commita5f9754350e803af7838a3c98a34418077e52fbb (patch)
tree91c63ad4ef249671eba302d36e2e7bc329fdc855 /demos
parent33bb0bebf7cf07932c603e881cc13dca97304ef6 (diff)
downloadgtk+-a5f9754350e803af7838a3c98a34418077e52fbb.tar.gz
demos/gtk-demo/main.c (setup_default_icon): Use a shaped
icon instead of one with ugly white background.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index 954795e239..00fabe74af 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -765,12 +765,17 @@ setup_default_icon (void)
if (pixbuf)
{
GList *list;
+ GdkPixbuf *transparent;
+
+ /* The gtk-logo-rgb icon has a white background, make it transparent */
+ transparent = gdk_pixbuf_add_alpha (pixbuf, TRUE, 0xff, 0xff, 0xff);
list = NULL;
- list = g_list_append (list, pixbuf);
+ list = g_list_append (list, transparent);
gtk_window_set_default_icon_list (list);
g_list_free (list);
g_object_unref (G_OBJECT (pixbuf));
+ g_object_unref (G_OBJECT (transparent));
}
}