aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-12 14:59:59 -0500
committerTed Gould <ted@gould.cx>2010-07-12 14:59:59 -0500
commit4edb23e4a529f287cec6bbc18153b2e65df11f32 (patch)
tree00db6c5ee2108d218659b3feffc0180c4f142d73
parent03e448f0dfaf9c3a268b1b089563b7fd65252b09 (diff)
downloadayatana-indicator-datetime-4edb23e4a529f287cec6bbc18153b2e65df11f32.tar.gz
ayatana-indicator-datetime-4edb23e4a529f287cec6bbc18153b2e65df11f32.tar.bz2
ayatana-indicator-datetime-4edb23e4a529f287cec6bbc18153b2e65df11f32.zip
Adding some good debugging messages.
-rw-r--r--src/datetime-service.c4
1 files changed, 4 insertions, 0 deletions
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..."));