New big icon for compose windows, by Simon Steinbeiss
[claws.git] / src / gtk / gtkutils.c
index dbe9c7f2d63b64df86072509c03b9205a5f8184c..72dbf4b77704a10f8b711f9ae535e1f31566ca91 100644 (file)
@@ -735,15 +735,21 @@ void gtkut_widget_set_app_icon(GtkWidget *widget)
 
 void gtkut_widget_set_composer_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_MAIL_COMPOSE, &icon);
-       }               
-       if (icon)
-               gtk_window_set_icon(GTK_WINDOW(widget), icon);
+               stock_pixbuf_gdk(widget, STOCK_PIXMAP_MAIL_COMPOSE_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);
 }
 
 static gboolean move_bar = FALSE;