aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog11
-rw-r--r--calendar/gui/dialogs/task-page.c18
2 files changed, 13 insertions, 16 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index dc84528d46..aa25a83a07 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -34,6 +34,17 @@
Renamed from prompt_to_save_changes. Check wheather the
summary is empty and prompt.
+2005-12-21 Sam Yang <sam.yang@sun.com>
+
+ Fixes #323984
+ * gui/dialogs/task-page.c: (task_page_fill_widgets): Invoke
+ task_page_set_show_timezone() to check whether to show timezone
+ widgets on task page. Just like what we did in init_widgets().
+ (init_widgets): Since we have called task_page_set_show_timezone()
+ before, remove its duplicate code. Invoke
+ task_page_set_show_categories() directly other than copy its code here.
+
+
2005-12-19 Chenthill Palanisamy <pchenthill@novell.com>
Committing for David Trowbridge <trowbrds cs colorado edu>
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 155d391de9..93386e9b6a 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -595,7 +595,7 @@ task_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
e_timezone_entry_set_timezone (E_TIMEZONE_ENTRY (priv->timezone),
zone ? zone : default_zone);
- gtk_widget_show_all (priv->timezone);
+ task_page_set_show_timezone (tpage, calendar_config_get_show_timezone());
if (!(COMP_EDITOR_PAGE (tpage)->flags & COMP_EDITOR_PAGE_NEW_ITEM) && !zone) {
task_page_set_show_timezone (tpage, FALSE);
@@ -1746,21 +1746,7 @@ init_widgets (TaskPage *tpage)
e_meeting_list_view_column_set_visible (priv->list_view, "Status", calendar_config_get_show_status());
e_meeting_list_view_column_set_visible (priv->list_view, "Type", calendar_config_get_show_type());
- if (!calendar_config_get_show_timezone()) {
- gtk_widget_hide (priv->timezone_label);
- gtk_widget_hide (priv->timezone);
- } else {
- gtk_widget_show (priv->timezone_label);
- gtk_widget_show_all (priv->timezone);
- }
-
- if (!calendar_config_get_show_categories()) {
- gtk_widget_hide (priv->categories_btn);
- gtk_widget_hide (priv->categories);
- } else {
- gtk_widget_show (priv->categories_btn);
- gtk_widget_show (priv->categories);
- }
+ task_page_set_show_categories (tpage, calendar_config_get_show_categories());
return TRUE;
}