aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-17 10:02:02 -0600
committerTed Gould <ted@gould.cx>2009-12-17 10:02:02 -0600
commitf4c9af70e64c365e16326aa710af0f24e1a95d46 (patch)
treea4dbb4525ac8dbb829f96505acb894390f9a9339
parent4d95601ab8c0a97fff79b7362540664d200feb41 (diff)
downloadayatana-indicator-application-f4c9af70e64c365e16326aa710af0f24e1a95d46.tar.gz
ayatana-indicator-application-f4c9af70e64c365e16326aa710af0f24e1a95d46.tar.bz2
ayatana-indicator-application-f4c9af70e64c365e16326aa710af0f24e1a95d46.zip
Only build a dbusmenu server if we don't have one.
-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;
}
/**