aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-17 20:31:16 -0600
committerTed Gould <ted@gould.cx>2010-02-17 20:31:16 -0600
commitbcc596a2912f66658058d14f8e30b04cb67915e5 (patch)
treea2ea5fefd163358297c18c84d32cb5cae51e8b73
parent09c3405e449b936d3fce4fd85618dd4e60aaa77c (diff)
downloadayatana-indicator-messages-bcc596a2912f66658058d14f8e30b04cb67915e5.tar.gz
ayatana-indicator-messages-bcc596a2912f66658058d14f8e30b04cb67915e5.tar.bz2
ayatana-indicator-messages-bcc596a2912f66658058d14f8e30b04cb67915e5.zip
Adding some debug messages
-rw-r--r--src/app-menu-item.c2
-rw-r--r--src/messages-service.c3
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);
}