X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/c1190260b27bab9d7ce68ff039c7658b9b839701..4aaab6a8537f29e100514d9691480c555b669e7d:/unix/gtkwin.c diff --git a/unix/gtkwin.c b/unix/gtkwin.c index d0b46931..430e2b58 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -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;