From f4c9af70e64c365e16326aa710af0f24e1a95d46 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 17 Dec 2009 10:02:02 -0600 Subject: Only build a dbusmenu server if we don't have one. --- src/libappindicator/app-indicator.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } /** -- cgit v1.2.3