use-panel-icon.patch

Patch to enable panel icon - Julien Lavergne, 08/15/2012 10:45 PM

Download (663 Bytes)

View differences:

sylpheed-3.2.0/src/trayicon.c
108 108
	GdkPixbuf *pixbuf;
109 109

  
110 110
	stock_pixbuf_gdk(NULL, TRAYICON_IMAGE, &pixbuf);
111
	trayicon.status_icon = gtk_status_icon_new_from_pixbuf(pixbuf);
111
    if (gtk_icon_theme_has_icon(gtk_icon_theme_get_default(), "sylpheed-panel"))
112
    {
113
        trayicon.status_icon = gtk_status_icon_new_from_icon_name("sylpheed-panel");
114
    }
115
    else
116
    {
117
	    trayicon.status_icon = gtk_status_icon_new_from_pixbuf(pixbuf);
118
    }
112 119

  
113 120
	g_signal_connect(G_OBJECT(trayicon.status_icon), "activate",
114 121
			 G_CALLBACK(trayicon_activated), mainwin);