From 4a8f8e895d1562f182c23714e77a0fb46257ed54 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Tue, 26 Dec 2017 14:41:24 -0500 Subject: status-notifier: load icons specified by path Fix for https://github.com/mate-desktop/mate-panel/issues/695 and similar failures to load icons when the application calls for a path and not an icon name --- applets/notification_area/status-notifier/sn-item-v0.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'applets') diff --git a/applets/notification_area/status-notifier/sn-item-v0.c b/applets/notification_area/status-notifier/sn-item-v0.c index cd8ba017..e01d624d 100644 --- a/applets/notification_area/status-notifier/sn-item-v0.c +++ b/applets/notification_area/status-notifier/sn-item-v0.c @@ -253,6 +253,10 @@ update (SnItemV0 *v0) { GdkPixbuf *pixbuf; pixbuf = get_icon_by_name (v0->icon_name, icon_size); + if (!pixbuf){ + /*try to find icons specified by path and filename*/ + pixbuf = gdk_pixbuf_new_from_file(v0->icon_name, NULL); + } if (!pixbuf){ /*deal with missing icon or failure to load icon*/ pixbuf = get_icon_by_name ("image-missing", icon_size); -- cgit v1.2.1