aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-04-15 16:46:43 -0500
committerTed Gould <ted@gould.cx>2010-04-15 16:46:43 -0500
commitcb9d4b2785340cc00a0c08f46c6afc3176d0641d (patch)
treec368ba51a554419cc4d9bb66045c5d45e8c0d4b8
parent292ef7667393edf5611ff24814b822ca736bd6ef (diff)
downloadayatana-indicator-messages-cb9d4b2785340cc00a0c08f46c6afc3176d0641d.tar.gz
ayatana-indicator-messages-cb9d4b2785340cc00a0c08f46c6afc3176d0641d.tar.bz2
ayatana-indicator-messages-cb9d4b2785340cc00a0c08f46c6afc3176d0641d.zip
Some debugging messages
-rw-r--r--src/messages-service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index c56016e..059ec89 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -765,11 +765,13 @@ server_removed (IndicateListener * listener, IndicateListenerServer * server, gc
/* If there are shortcuts remove them */
GList * shortcuts = app_menu_item_get_items(sltp->menuitem);
while (shortcuts != NULL) {
+ g_debug("\tRemoving shortcut: %s", dbusmenu_menuitem_property_get(DBUSMENU_MENUITEM(shortcuts->data), DBUSMENU_MENUITEM_PROP_LABEL));
dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(shortcuts->data), DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
dbusmenu_menuitem_child_delete(DBUSMENU_MENUITEM(data), DBUSMENU_MENUITEM(shortcuts->data));
shortcuts = g_list_next(shortcuts);
}
+ g_debug("\tRemoving item");
dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(sltp->menuitem), DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
dbusmenu_menuitem_child_delete(DBUSMENU_MENUITEM(data), DBUSMENU_MENUITEM(sltp->menuitem));
g_object_unref(G_OBJECT(sltp->menuitem));
@@ -777,6 +779,7 @@ server_removed (IndicateListener * listener, IndicateListenerServer * server, gc
/* If there is a separator, let's get rid of it. */
if (sltp->separator != NULL) {
+ g_debug("\tRemoving separator");
dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(sltp->separator), DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
dbusmenu_menuitem_child_delete(DBUSMENU_MENUITEM(data), DBUSMENU_MENUITEM(sltp->separator));
g_object_unref(G_OBJECT(sltp->separator));