aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r--src/indicator-session.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 184a335..55579b9 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -167,6 +167,14 @@ indicator_session_finalize (GObject *object)
static void
icon_name_get_cb (DBusGProxy *proxy, char * OUT_name, GError *error, gpointer userdata)
{
+ if (error != NULL) {
+ return;
+ }
+
+ if (OUT_name == NULL || OUT_name[0] == '\0') {
+ return;
+ }
+
IndicatorSession * self = INDICATOR_SESSION(userdata);
gtk_image_set_from_icon_name(self->status_image, OUT_name, GTK_ICON_SIZE_MENU);
return;