summaryrefslogtreecommitdiff
path: root/applets/notification_area/status-notifier/sn-item-v0.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-07-25 12:39:14 -0400
committerVictor Kareh <[email protected]>2018-07-25 14:23:47 -0400
commitf2f4d84492425428806e0b2d940b6b270c0d3bd5 (patch)
tree40bc79e25ee0c01561653781844fcd6fa44e4e58 /applets/notification_area/status-notifier/sn-item-v0.c
parentb37f24ea4aabd954b7c7810a681ec8fc62c65631 (diff)
downloadmate-panel-f2f4d84492425428806e0b2d940b6b270c0d3bd5.tar.bz2
mate-panel-f2f4d84492425428806e0b2d940b6b270c0d3bd5.tar.xz
applets: Fix runtime error messages
Diffstat (limited to 'applets/notification_area/status-notifier/sn-item-v0.c')
-rw-r--r--applets/notification_area/status-notifier/sn-item-v0.c2
1 files changed, 1 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 46a4c064..509b153e 100644
--- a/applets/notification_area/status-notifier/sn-item-v0.c
+++ b/applets/notification_area/status-notifier/sn-item-v0.c
@@ -256,7 +256,7 @@ update (SnItemV0 *v0)
if (!pixbuf){
/*try to find icons specified by path and filename*/
pixbuf = gdk_pixbuf_new_from_file(v0->icon_name, NULL);
- if (pixbuf){
+ if (pixbuf && icon_size > 1) {
/*An icon specified by path and filename may be the wrong size for the tray */
pixbuf=gdk_pixbuf_scale_simple(pixbuf, icon_size-2, icon_size-2,GDK_INTERP_BILINEAR);
}