[Commits] [SCM] claws branch, master, updated. 3.9.0-152-g1deb333

colin at claws-mail.org colin at claws-mail.org
Wed Mar 20 16:05:03 CET 2013


The branch master of project "claws" (Claws Mail) has been updated
       via  1deb3339229f5fbba67c50b36c486e2c2e3499f3 (commit)
      from  fe4582c867840af8034943badccfacbdaa9733bf (commit)


- Log -----------------------------------------------------------------
commit 1deb3339229f5fbba67c50b36c486e2c2e3499f3
Author: Colin Leroy <colin at colino.net>
Date:   Wed Mar 20 15:58:12 2013 +0100

    Fix ugly icon in XFCE's alt-tab window

diff --git a/src/gtk/gtkutils.c b/src/gtk/gtkutils.c
index 3bb9141..dbe9c7f 100644
--- a/src/gtk/gtkutils.c
+++ b/src/gtk/gtkutils.c
@@ -716,15 +716,21 @@ void gtkut_widget_init(void)
 
 void gtkut_widget_set_app_icon(GtkWidget *widget)
 {
-	static GdkPixbuf *icon = NULL;
-	
+	static GList *icon_list = NULL;
+
 	cm_return_if_fail(widget != NULL);
 	cm_return_if_fail(gtk_widget_get_window(widget) != NULL);
-	if (!icon) {
+	if (!icon_list) {
+		GdkPixbuf *icon = NULL, *big_icon = NULL;
 		stock_pixbuf_gdk(widget, STOCK_PIXMAP_CLAWS_MAIL_ICON, &icon);
-	}		
-	if (icon)
-		gtk_window_set_icon(GTK_WINDOW(widget), icon);
+		stock_pixbuf_gdk(widget, STOCK_PIXMAP_CLAWS_MAIL_LOGO, &big_icon);
+		if (icon)
+			icon_list = g_list_append(icon_list, icon);
+		if (big_icon)
+			icon_list = g_list_append(icon_list, big_icon);
+	}
+	if (icon_list)
+		gtk_window_set_icon_list(GTK_WINDOW(widget), icon_list);
 }
 
 void gtkut_widget_set_composer_icon(GtkWidget *widget)

-----------------------------------------------------------------------

Summary of changes:
 src/gtk/gtkutils.c |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list