summaryrefslogtreecommitdiff
path: root/extra/mail-notification/mail-notification-5.4-add-fallback-icon.patch
blob: 41c28e870fdc7159ef36a5fdf1e6eb8cabc4e6e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- src/mn-stock.c.orig	2011-02-17 17:42:39.886767087 +0100
+++ src/mn-stock.c	2011-02-17 17:49:37.415541177 +0100
@@ -86,6 +86,13 @@
 	  gtk_icon_source_set_icon_name(icon_source, icons[i].icon_name);
 	  gtk_icon_set_add_source(icon_set, icon_source);
 	  gtk_icon_source_free(icon_source);
+
+          /* Add a fallback icon */
+          icon_source = gtk_icon_source_new();
+          gtk_icon_source_set_icon_name(icon_source, "mail-notification");
+          gtk_icon_source_set_state_wildcarded(icon_source, TRUE);
+          gtk_icon_set_add_source(icon_set, icon_source);
+          gtk_icon_source_free(icon_source);
 	}
       else if (icons[i].source_stock_id)
 	{