diff options
author | JP Rosevear <jpr@ximian.com> | 2004-04-21 23:00:16 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-04-21 23:00:16 +0800 |
commit | 93da748e15a23843bdafbff7f2b08c621fd275b3 (patch) | |
tree | 087958589de290eec54fe8e415e81d5744c6e3f7 /calendar/gui/e-tasks.c | |
parent | d68f2316c6cb24dfdabe29c1d640f1929832a52b (diff) | |
download | gsoc2013-evolution-93da748e15a23843bdafbff7f2b08c621fd275b3.tar.gz gsoc2013-evolution-93da748e15a23843bdafbff7f2b08c621fd275b3.tar.zst gsoc2013-evolution-93da748e15a23843bdafbff7f2b08c621fd275b3.zip |
only set the preview zone if the preview has been created (setup_widgets):
2004-04-21 JP Rosevear <jpr@ximian.com>
* gui/e-tasks.c (set_timezone): only set the preview zone if the
preview has been created
(setup_widgets): set the default zone for the preview pane
svn path=/trunk/; revision=25562
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r-- | calendar/gui/e-tasks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 9d383f7366..dbee3dab4c 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -216,7 +216,8 @@ set_timezone (ETasks *tasks) e_cal_set_default_timezone (client, zone, NULL); } - e_cal_component_preview_set_default_timezone (E_CAL_COMPONENT_PREVIEW (priv->preview), zone); + if (priv->preview) + e_cal_component_preview_set_default_timezone (E_CAL_COMPONENT_PREVIEW (priv->preview), zone); } static void @@ -353,9 +354,8 @@ setup_widgets (ETasks *tasks) g_signal_connect (etable, "selection_change", G_CALLBACK (table_selection_change_cb), tasks); /* create the task detail */ -// gtk_widget_pop_colormap (); - priv->preview = e_cal_component_preview_new (); + e_cal_component_preview_set_default_timezone (E_CAL_COMPONENT_PREVIEW (priv->preview), calendar_config_get_icaltimezone ()); gtk_paned_add2 (GTK_PANED (paned), priv->preview); gtk_widget_show (priv->preview); |