aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2009-12-17 17:27:03 +0100
committerCody Russell <crussell@canonical.com>2009-12-17 17:27:03 +0100
commit09c4ec291659b21d6e64ce271ea818cb13ec259b (patch)
tree990bf1bbdb162942cb0332638fa90eb844010df6 /src/libappindicator
parent4d95601ab8c0a97fff79b7362540664d200feb41 (diff)
downloadlibayatana-appindicator-09c4ec291659b21d6e64ce271ea818cb13ec259b.tar.gz
libayatana-appindicator-09c4ec291659b21d6e64ce271ea818cb13ec259b.tar.bz2
libayatana-appindicator-09c4ec291659b21d6e64ce271ea818cb13ec259b.zip
Only create the dbusmenu server if it doesn't exist
Diffstat (limited to 'src/libappindicator')
-rw-r--r--src/libappindicator/app-indicator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 791f9ff..cb74a83 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -754,7 +754,9 @@ setup_dbusmenu (AppIndicator *self)
container_iterate,
root);
- priv->menuservice = dbusmenu_server_new ("/need/a/menu/path");
+ if (!priv->menuservice)
+ priv->menuservice = dbusmenu_server_new ("/need/a/menu/path");
+
dbusmenu_server_set_root (priv->menuservice, root);
}