aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-02-25 15:43:41 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-02-25 15:43:41 +0000
commitd0e5a69a026bc879759cde57f8ba324c67b6b37a (patch)
tree95ecc70756b0f75a167e5c29c67565b7c8fc3546
parent03eafa311a71cacae4ecca3f198ea7131f33dbb7 (diff)
downloadayatana-indicator-datetime-d0e5a69a026bc879759cde57f8ba324c67b6b37a.tar.gz
ayatana-indicator-datetime-d0e5a69a026bc879759cde57f8ba324c67b6b37a.tar.bz2
ayatana-indicator-datetime-d0e5a69a026bc879759cde57f8ba324c67b6b37a.zip
Updated to free errors just in case(tm) at dbarths request
shortened the update time to 5 minutes for calendars
-rw-r--r--src/datetime-service.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 6a9575e..a3e45bf 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -218,6 +218,7 @@ update_current_timezone (void) {
check_timezone_sync();
+ if (error != NULL) g_error_free(error);
return;
}
@@ -335,9 +336,9 @@ check_for_calendar (gpointer user_data)
g_signal_connect(G_OBJECT(add_appointment), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(activate_cb), "evolution -c calendar");
dbusmenu_menuitem_child_add_position (root, add_appointment, 3);
- // Update the calendar items every 30 minutes if it updates the first time
+ // Update the calendar items every 5 minutes if it updates the first time
if (update_appointment_menu_items(NULL))
- g_timeout_add_seconds(60*30, update_appointment_menu_items, NULL);
+ g_timeout_add_seconds(60*5, update_appointment_menu_items, NULL);
// Connect to event::month-changed
g_signal_connect(calendar, "event::month-changed", G_CALLBACK(month_changed_cb), NULL);
@@ -710,6 +711,8 @@ update_appointment_menu_items (gpointer user_data) {
if (i == 4) break; // See above FIXME regarding query result limit
i++;
}
+
+ if (gerror != NULL) g_error_free(gerror);
g_object_unref(allobjects);
g_debug("End of objects");
return TRUE;