diff options
author | Sam Yang <sam.yang@sun.com> | 2005-12-21 12:13:41 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-12-21 12:13:41 +0800 |
commit | d8a33568cdda1df74fe2c01241e52f800c6f25a7 (patch) | |
tree | 91eefdd232eaa3070fb8ba6533d7a17f04580f21 | |
parent | b393538946d96bd741104c8e42850af9c1aefe55 (diff) | |
download | gsoc2013-evolution-d8a33568cdda1df74fe2c01241e52f800c6f25a7.tar.gz gsoc2013-evolution-d8a33568cdda1df74fe2c01241e52f800c6f25a7.tar.zst gsoc2013-evolution-d8a33568cdda1df74fe2c01241e52f800c6f25a7.zip |
Fixes #323984 Invoke task_page_set_show_timezone() to check whether to
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.
svn path=/trunk/; revision=30910
-rw-r--r-- | calendar/ChangeLog | 11 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 18 |
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; } |