From b9560276d56772baff98a4b93c0be34c19936527 Mon Sep 17 00:00:00 2001 From: letoh Date: Sun, 9 Jun 2013 04:59:50 +0800 Subject: [PATCH] ensure that the indicator will be created properly this patch will fixes #256 #327 #464, and maybe #432 (i can't reproduce this issue) --- src/tray-appindicator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tray-appindicator.c b/src/tray-appindicator.c index 5620e465..9c3eaa6e 100644 --- a/src/tray-appindicator.c +++ b/src/tray-appindicator.c @@ -173,6 +173,9 @@ gboolean tray_appindicator_create(gpointer data) return FALSE; tray_appindicator = app_indicator_new_with_path ("hime", iconame, APP_INDICATOR_CATEGORY_APPLICATION_STATUS, icondir); + if(tray_appindicator == NULL) + return TRUE; + app_indicator_set_status (tray_appindicator, APP_INDICATOR_STATUS_ACTIVE); GtkWidget *menu = NULL; menu = create_tray_menu(mitems);