From cb9d4b2785340cc00a0c08f46c6afc3176d0641d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 15 Apr 2010 16:46:43 -0500 Subject: Some debugging messages --- src/messages-service.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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)); -- cgit v1.2.3