aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator/app-indicator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r--src/libappindicator/app-indicator.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 791f9ff..8efd3e2 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -754,8 +754,13 @@ setup_dbusmenu (AppIndicator *self)
container_iterate,
root);
- priv->menuservice = dbusmenu_server_new ("/need/a/menu/path");
+ if (priv->menuservice == NULL) {
+ priv->menuservice = dbusmenu_server_new ("/need/a/menu/path");
+ }
+
dbusmenu_server_set_root (priv->menuservice, root);
+
+ return;
}
/**