From 4edb23e4a529f287cec6bbc18153b2e65df11f32 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 12 Jul 2010 14:59:59 -0500 Subject: Adding some good debugging messages. --- src/datetime-service.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/datetime-service.c b/src/datetime-service.c index 6cbaf93..06b64c1 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -25,6 +25,7 @@ activate_cb (DbusmenuMenuitem * menuitem, guint timestamp, const gchar *command) { GError * error = NULL; + g_debug("Issuing command '%s'", command); if (!g_spawn_command_line_async(command, &error)) { g_warning("Unable to start %s: %s", (char *)command, error->message); g_error_free(error); @@ -40,10 +41,12 @@ check_for_calendar (gpointer user_data) gchar *evo = g_find_program_in_path("evolution"); if (evo != NULL) { + g_debug("Found the calendar application: %s", evo); dbusmenu_menuitem_property_set_bool(calendar, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE); dbusmenu_menuitem_property_set_bool(calendar, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE); g_free(evo); } else { + g_debug("Unable to find calendar app."); dbusmenu_menuitem_property_set_bool(calendar, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE); } @@ -56,6 +59,7 @@ check_for_calendar (gpointer user_data) static void build_menus (DbusmenuMenuitem * root) { + g_debug("Building Menus."); if (date == NULL) { date = dbusmenu_menuitem_new(); dbusmenu_menuitem_property_set (date, DBUSMENU_MENUITEM_PROP_LABEL, _("No date yet...")); -- cgit v1.2.3