aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libappindicator/app-indicator.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index cb74a83..bb68cb2 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -278,6 +278,7 @@ app_indicator_init (AppIndicator *self)
priv->icon_name = NULL;
priv->attention_icon_name = NULL;
priv->menu = NULL;
+ priv->menuservice = NULL;
priv->watcher_proxy = NULL;
priv->connection = NULL;
@@ -754,10 +755,13 @@ setup_dbusmenu (AppIndicator *self)
container_iterate,
root);
- if (!priv->menuservice)
+ if (priv->menuservice == NULL) {
priv->menuservice = dbusmenu_server_new ("/need/a/menu/path");
+ }
dbusmenu_server_set_root (priv->menuservice, root);
+
+ return;
}
/**