aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-17 20:31:48 -0600
committerTed Gould <ted@gould.cx>2010-02-17 20:31:48 -0600
commit0d8b02c5c23e4e66d99481888e8e82baa937ce8f (patch)
treee5189cef654c572ec38ad10f66a3eea92f3a4c5d
parentbcc596a2912f66658058d14f8e30b04cb67915e5 (diff)
downloadayatana-indicator-messages-0d8b02c5c23e4e66d99481888e8e82baa937ce8f.tar.gz
ayatana-indicator-messages-0d8b02c5c23e4e66d99481888e8e82baa937ce8f.tar.bz2
ayatana-indicator-messages-0d8b02c5c23e4e66d99481888e8e82baa937ce8f.zip
If we already have children, make sure to process them right away.
-rw-r--r--src/app-menu-item.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index 57a4e6a..19179c8 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -432,12 +432,18 @@ root_changed (DbusmenuClient * client, DbusmenuMenuitem * newroot, gpointer data
static void
menu_cb (IndicateListener * listener, IndicateListenerServer * server, gchar * menupath, gpointer data)
{
+ g_debug("Got Menu: %s", menupath);
AppMenuItem * self = APP_MENU_ITEM(data);
AppMenuItemPrivate * priv = APP_MENU_ITEM_GET_PRIVATE(self);
priv->client = dbusmenu_client_new(indicate_listener_server_get_dbusname(server), menupath);
g_signal_connect(G_OBJECT(priv->client), DBUSMENU_CLIENT_SIGNAL_ROOT_CHANGED, G_CALLBACK(root_changed), self);
+ DbusmenuMenuitem * root = dbusmenu_client_get_root(priv->client);
+ if (root != NULL) {
+ root_changed(priv->client, root, self);
+ }
+
return;
}