diff options
Diffstat (limited to 'applets/notification_area')
-rw-r--r-- | applets/notification_area/status-notifier/sn-item-v0.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/applets/notification_area/status-notifier/sn-item-v0.c b/applets/notification_area/status-notifier/sn-item-v0.c index cd0694a2..cd8ba017 100644 --- a/applets/notification_area/status-notifier/sn-item-v0.c +++ b/applets/notification_area/status-notifier/sn-item-v0.c @@ -252,8 +252,11 @@ update (SnItemV0 *v0) if (v0->icon_name != NULL && v0->icon_name[0] != '\0') { GdkPixbuf *pixbuf; - pixbuf = get_icon_by_name (v0->icon_name, icon_size); + if (!pixbuf){ + /*deal with missing icon or failure to load icon*/ + pixbuf = get_icon_by_name ("image-missing", icon_size); + } gtk_image_set_from_pixbuf (image, pixbuf); g_object_unref (pixbuf); } |