]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Colin Watson has fixed the disgusting icons on GTK1. His patch
authorSimon Tatham <anakin@pobox.com>
Wed, 31 Jan 2007 12:30:48 +0000 (12:30 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 31 Jan 2007 12:30:48 +0000 (12:30 +0000)
appears to merely fix the background colour (arranging for it to
have transparency rather than being on some kind of default grey
background), but it turns out to also fix the strange blurry
behaviour I see in the GNOME Taskbar, for no very obvious reason.

[originally from svn r7186]

unix/gtkwin.c

index d0b46931bf34c9a7a311ab1a1afc22288b9ca8ae..430e2b584c69d47d8752d76fabe3a16a3cab4e96 100644 (file)
@@ -3306,6 +3306,7 @@ void set_window_icon(GtkWidget *window, const char *const *const *icon,
                     int n_icon)
 {
     GdkPixmap *iconpm;
+    GdkBitmap *iconmask;
 #if GTK_CHECK_VERSION(2,0,0)
     GList *iconlist;
     int n;
@@ -3315,9 +3316,9 @@ void set_window_icon(GtkWidget *window, const char *const *const *icon,
        return;
 
     gtk_widget_realize(window);
-    iconpm = gdk_pixmap_create_from_xpm_d(window->window, NULL,
+    iconpm = gdk_pixmap_create_from_xpm_d(window->window, &iconmask,
                                          NULL, (gchar **)icon[0]);
-    gdk_window_set_icon(window->window, NULL, iconpm, NULL);
+    gdk_window_set_icon(window->window, NULL, iconpm, iconmask);
 
 #if GTK_CHECK_VERSION(2,0,0)
     iconlist = NULL;