[empathy] Cope with status icon begin NULL
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Cope with status icon begin NULL
- Date: Sat, 30 May 2009 17:49:15 -0400 (EDT)
commit a38c0151eeb417d4d4068d018450757d34aa327f
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Sat May 30 22:48:46 2009 +0100
Cope with status icon begin NULL
---
src/empathy-status-icon.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index cca2557..9c21948 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -201,7 +201,8 @@ status_icon_update_icon (EmpathyStatusIcon *icon)
icon_name = empathy_icon_name_for_presence (state);
}
- gtk_status_icon_set_from_icon_name (priv->icon, icon_name);
+ if (icon_name != NULL)
+ gtk_status_icon_set_from_icon_name (priv->icon, icon_name);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]