From b5df0a7732024a838adf79dbebb6f7dae62f0799 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 31 Jan 2007 12:30:48 +0000 Subject: [PATCH] Colin Watson has fixed the disgusting icons on GTK1. His patch 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;