aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-04 10:25:36 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-03-04 10:25:36 +0000
commit17068224006bda5a994a7fb2f9c1e4e7dda2e540 (patch)
tree1e9aa8d1e0e147a7339c385452a4fda2ba1d4b31 /src
parent4af06d0358a5d260461a224069fa3b7667e0a67a (diff)
downloadayatana-indicator-datetime-17068224006bda5a994a7fb2f9c1e4e7dda2e540.tar.gz
ayatana-indicator-datetime-17068224006bda5a994a7fb2f9c1e4e7dda2e540.tar.bz2
ayatana-indicator-datetime-17068224006bda5a994a7fb2f9c1e4e7dda2e540.zip
Few more minor cleanups
Diffstat (limited to 'src')
-rw-r--r--src/datetime-service.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index eff3bf6..21c91df 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -605,11 +605,10 @@ update_appointment_menu_items (gpointer user_data)
continue;
}
- g_debug("Generating instances");
e_cal_generate_instances (ecal, t1, t2, (ECalRecurInstanceFn) populate_appointment_instances, (gpointer) source);
- g_debug("Number of objects returned: %d", g_list_length(comp_instances));
}
}
+ g_debug("Number of ECalComponents returned: %d", g_list_length(comp_instances));
GList *sorted_comp_instances = g_list_sort(comp_instances, compare_comp_instances);
comp_instances = NULL;
@@ -659,13 +658,9 @@ update_appointment_menu_items (gpointer user_data)
int year = today->tm_year;
struct tm *due;
- g_debug("Start time %s", ctime(&ci->start));
if (vtype == E_CAL_COMPONENT_EVENT) due = localtime(&ci->start);
else if (vtype == E_CAL_COMPONENT_TODO) due = localtime(&ci->end);
else continue;
-
- strftime(right, 20, "%a %l:%M %p", due);
- g_debug("Start time %s -> %s", asctime(due), right);
int dmday = due->tm_mday;
int dmon = due->tm_mon;
@@ -698,7 +693,7 @@ update_appointment_menu_items (gpointer user_data)
// Fixme causes segfault, but we have colours now yay!
GdkColor color;
gdk_color_parse (color_spec, &color);
- g_debug("Creating a cairo surface of size, %d by %d", width, height);
+ g_debug("Creating a cairo surface\n size, %d by %d", width, height);
cairo_surface_t *surface = cairo_image_surface_create( CAIRO_FORMAT_ARGB32, width, height );
cairo_t *cr = cairo_create(surface);
@@ -743,7 +738,7 @@ update_appointment_menu_items (gpointer user_data)
dbusmenu_menuitem_property_set_image (item, APPOINTMENT_MENUITEM_PROP_ICON, pixbuf);
} else {
- g_debug("Creating pixbuf from surface failed, couldn't create new pixbuf for size, %d by %d", width, height);
+ g_debug("Creating pixbuf from surface failed\n Couldn't create new pixbuf for size, %d by %d", width, height);
}
cairo_surface_destroy (surface);
cairo_destroy(cr);