diff options
-rw-r--r-- | src/app-menu-item.c | 2 | ||||
-rw-r--r-- | src/messages-service.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c index 53d4afa..57a4e6a 100644 --- a/src/app-menu-item.c +++ b/src/app-menu-item.c @@ -384,6 +384,7 @@ child_moved_cb (DbusmenuMenuitem * root, DbusmenuMenuitem * child, guint newpos, static void root_changed (DbusmenuClient * client, DbusmenuMenuitem * newroot, gpointer data) { + g_debug("Root Changed"); AppMenuItem * self = APP_MENU_ITEM(data); AppMenuItemPrivate * priv = APP_MENU_ITEM_GET_PRIVATE(self); gboolean change_time = FALSE; @@ -412,6 +413,7 @@ root_changed (DbusmenuClient * client, DbusmenuMenuitem * newroot, gpointer data GList * children = dbusmenu_menuitem_get_children(DBUSMENU_MENUITEM(priv->root)); if (children != NULL) { change_time = TRUE; + g_debug("\tProcessing %d children", g_list_length(children)); while (children != NULL) { DbusmenuMenuitemProxy * mip = dbusmenu_menuitem_proxy_new(DBUSMENU_MENUITEM(children->data)); priv->shortcuts = g_list_append(priv->shortcuts, mip); diff --git a/src/messages-service.c b/src/messages-service.c index c1af270..0cbb91a 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -594,6 +594,7 @@ server_added (IndicateListener * listener, IndicateListenerServer * server, gcha GList * shortcuts = app_menu_item_get_items(sl_item->menuitem); while (shortcuts != NULL) { DbusmenuMenuitem * mi = DBUSMENU_MENUITEM(shortcuts->data); + g_debug("\tAdding shortcut: %s", dbusmenu_menuitem_property_get(mi, DBUSMENU_MENUITEM_PROP_LABEL)); dbusmenu_menuitem_child_append(menushell, mi); shortcuts = g_list_next(shortcuts); } @@ -611,6 +612,7 @@ server_added (IndicateListener * listener, IndicateListenerServer * server, gcha static void server_shortcuts_changed (AppMenuItem * appitem, gpointer data) { + g_debug("Application Shortcuts changed"); DbusmenuMenuitem * shell = DBUSMENU_MENUITEM(data); gboolean appitemfound = FALSE; GList * children = dbusmenu_menuitem_get_children(shell); @@ -639,6 +641,7 @@ server_shortcuts_changed (AppMenuItem * appitem, gpointer data) GList * shortcuts = app_menu_item_get_items(appitem); while (shortcuts != NULL) { DbusmenuMenuitem * mi = DBUSMENU_MENUITEM(shortcuts->data); + g_debug("\tAdding shortcut: %s", dbusmenu_menuitem_property_get(mi, DBUSMENU_MENUITEM_PROP_LABEL)); dbusmenu_menuitem_child_append(shell, mi); shortcuts = g_list_next(shortcuts); } |