diff options
author | Abderaouf Bencherait <kenshin@collabora.co.uk> | 2009-06-27 07:38:37 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-06-30 17:15:49 +0800 |
commit | 6a1b1c8baf4c30fabd76395e6ff81fd3b7cd621d (patch) | |
tree | 16e3d5d40727c79750f797b5ac759acb60c776f5 /src/empathy-status-icon.c | |
parent | bd2d05811e85a43bc960da36483c315f83e4ac31 (diff) | |
download | gsoc2013-empathy-6a1b1c8baf4c30fabd76395e6ff81fd3b7cd621d.tar gsoc2013-empathy-6a1b1c8baf4c30fabd76395e6ff81fd3b7cd621d.tar.gz gsoc2013-empathy-6a1b1c8baf4c30fabd76395e6ff81fd3b7cd621d.tar.bz2 gsoc2013-empathy-6a1b1c8baf4c30fabd76395e6ff81fd3b7cd621d.tar.lz gsoc2013-empathy-6a1b1c8baf4c30fabd76395e6ff81fd3b7cd621d.tar.xz gsoc2013-empathy-6a1b1c8baf4c30fabd76395e6ff81fd3b7cd621d.tar.zst gsoc2013-empathy-6a1b1c8baf4c30fabd76395e6ff81fd3b7cd621d.zip |
fixed libnotify crashing if icon doesn't exist
Diffstat (limited to 'src/empathy-status-icon.c')
-rw-r--r-- | src/empathy-status-icon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index d6520ff7c..a4b01b7c0 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -153,7 +153,9 @@ status_icon_update_notification (EmpathyStatusIcon *icon) G_CALLBACK (status_icon_notification_closed_cb), icon); } - notify_notification_set_icon_from_pixbuf (priv->notification, + /* if icon doesn't exist libnotify will crash */ + if (pixbuf != NULL) + notify_notification_set_icon_from_pixbuf (priv->notification, pixbuf); notify_notification_show (priv->notification, NULL); |