aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-17 02:35:12 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-17 07:57:10 +0800
commita592d2f3eb30a38191e6e71bcbe8e0af7584778d (patch)
treef36a91f506862044e58458aeb45c337fcc1a7121 /modules
parentb9ab776bc280f158db4581b88aa82848cff2d65d (diff)
downloadgsoc2013-evolution-a592d2f3eb30a38191e6e71bcbe8e0af7584778d.tar
gsoc2013-evolution-a592d2f3eb30a38191e6e71bcbe8e0af7584778d.tar.gz
gsoc2013-evolution-a592d2f3eb30a38191e6e71bcbe8e0af7584778d.tar.bz2
gsoc2013-evolution-a592d2f3eb30a38191e6e71bcbe8e0af7584778d.tar.lz
gsoc2013-evolution-a592d2f3eb30a38191e6e71bcbe8e0af7584778d.tar.xz
gsoc2013-evolution-a592d2f3eb30a38191e6e71bcbe8e0af7584778d.tar.zst
gsoc2013-evolution-a592d2f3eb30a38191e6e71bcbe8e0af7584778d.zip
Remove e_task_shell_view_update_timezone().
Thanks to the "default-timezone" property binding created by ESettingsClientCache, changes to the "cal-timezone" setting are automatically propagated to all ECalClient instances created by EClientCache.
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar/e-task-shell-view-private.c31
-rw-r--r--modules/calendar/e-task-shell-view-private.h2
2 files changed, 0 insertions, 33 deletions
diff --git a/modules/calendar/e-task-shell-view-private.c b/modules/calendar/e-task-shell-view-private.c
index 3803e51881..1ee793146c 100644
--- a/modules/calendar/e-task-shell-view-private.c
+++ b/modules/calendar/e-task-shell-view-private.c
@@ -111,7 +111,6 @@ task_shell_view_selector_client_added_cb (ETaskShellView *task_shell_view,
model = e_task_table_get_model (task_table);
e_cal_model_add_client (model, client);
- e_task_shell_view_update_timezone (task_shell_view);
}
static void
@@ -306,11 +305,6 @@ e_task_shell_view_private_constructed (ETaskShellView *task_shell_view)
priv->backend_error_handler_id = handler_id;
g_signal_connect_object (
- model, "notify::timezone",
- G_CALLBACK (e_task_shell_view_update_timezone),
- task_shell_view, G_CONNECT_SWAPPED);
-
- g_signal_connect_object (
model, "row-appended",
G_CALLBACK (task_shell_view_model_row_appended_cb),
task_shell_view, G_CONNECT_SWAPPED);
@@ -414,7 +408,6 @@ e_task_shell_view_private_constructed (ETaskShellView *task_shell_view)
e_task_shell_view_actions_init (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. */
@@ -662,27 +655,3 @@ e_task_shell_view_update_sidebar (ETaskShellView *task_shell_view)
g_string_free (string, TRUE);
}
-void
-e_task_shell_view_update_timezone (ETaskShellView *task_shell_view)
-{
- ETaskShellContent *task_shell_content;
- ETaskShellSidebar *task_shell_sidebar;
- icaltimezone *timezone;
- ECalModel *model;
- GList *clients, *iter;
-
- task_shell_content = task_shell_view->priv->task_shell_content;
- model = e_task_shell_content_get_task_model (task_shell_content);
- timezone = e_cal_model_get_timezone (model);
-
- task_shell_sidebar = task_shell_view->priv->task_shell_sidebar;
- clients = e_task_shell_sidebar_get_clients (task_shell_sidebar);
-
- for (iter = clients; iter != NULL; iter = iter->next) {
- ECalClient *client = iter->data;
-
- e_cal_client_set_default_timezone (client, timezone);
- }
-
- g_list_free (clients);
-}
diff --git a/modules/calendar/e-task-shell-view-private.h b/modules/calendar/e-task-shell-view-private.h
index 14cb4c50a2..8906215221 100644
--- a/modules/calendar/e-task-shell-view-private.h
+++ b/modules/calendar/e-task-shell-view-private.h
@@ -123,8 +123,6 @@ void e_task_shell_view_update_sidebar
(ETaskShellView *task_shell_view);
void e_task_shell_view_update_search_filter
(ETaskShellView *task_shell_view);
-void e_task_shell_view_update_timezone
- (ETaskShellView *task_shell_view);
G_END_DECLS