From 5cbd8e635954b1ce6c115757cb241a6138228ad3 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 20 Nov 2009 11:32:32 +0100 Subject: Bug #602081 - Runtime warnings when going to Tasks --- modules/calendar/e-task-shell-view-private.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'modules/calendar') diff --git a/modules/calendar/e-task-shell-view-private.c b/modules/calendar/e-task-shell-view-private.c index 80a68729b0..532b357b02 100644 --- a/modules/calendar/e-task-shell-view-private.c +++ b/modules/calendar/e-task-shell-view-private.c @@ -331,12 +331,6 @@ e_task_shell_view_private_constructed (ETaskShellView *task_shell_view) (GHookFunc) e_task_shell_view_update_search_filter, task_shell_view); - task_shell_view_update_timeout_cb (task_shell_view); - priv->update_timeout = g_timeout_add_full ( - G_PRIORITY_LOW, 60000, (GSourceFunc) - task_shell_view_update_timeout_cb, - task_shell_view, NULL); - /* Listen for configuration changes. */ e_mutual_binding_new ( @@ -361,6 +355,13 @@ e_task_shell_view_private_constructed (ETaskShellView *task_shell_view) e_task_shell_view_update_sidebar (task_shell_view); e_task_shell_view_update_search_filter (task_shell_view); e_task_shell_view_update_timezone (task_shell_view); + + /* call this when everything is ready, like actions in action groups and such */ + task_shell_view_update_timeout_cb (task_shell_view); + priv->update_timeout = g_timeout_add_full ( + G_PRIORITY_LOW, 60000, (GSourceFunc) + task_shell_view_update_timeout_cb, + task_shell_view, NULL); } void -- cgit v1.2.3