diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-04 00:08:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-04 01:29:20 +0800 |
commit | 9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1 (patch) | |
tree | aa1d53c8cedef6dc09455fbadd4b63216f9b7228 /modules/calendar/e-cal-shell-view.c | |
parent | c9c3c3be92f3dbf133a5b1b42fb55905a1060d0e (diff) | |
download | gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.tar gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.tar.gz gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.tar.bz2 gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.tar.lz gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.tar.xz gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.tar.zst gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'modules/calendar/e-cal-shell-view.c')
-rw-r--r-- | modules/calendar/e-cal-shell-view.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/calendar/e-cal-shell-view.c b/modules/calendar/e-cal-shell-view.c index f9985f5f6a..6aafdc82a6 100644 --- a/modules/calendar/e-cal-shell-view.c +++ b/modules/calendar/e-cal-shell-view.c @@ -63,7 +63,10 @@ cal_shell_view_execute_search (EShellView *shell_view) EActionComboBox *combo_box; GnomeCalendar *calendar; ECalendar *date_navigator; + ECalModel *model; GtkRadioAction *action; + icaltimezone *timezone; + struct icaltimetype current_time; time_t start_range; time_t end_range; time_t now_time; @@ -83,7 +86,10 @@ cal_shell_view_execute_search (EShellView *shell_view) searchbar = e_cal_shell_content_get_searchbar (cal_shell_content); calendar = e_cal_shell_content_get_calendar (cal_shell_content); - now_time = time_day_begin (icaltime_as_timet (icaltime_current_time_with_zone (e_cal_model_get_timezone (gnome_calendar_get_model (calendar))))); + model = gnome_calendar_get_model (calendar); + timezone = e_cal_model_get_timezone (model); + current_time = icaltime_current_time_with_zone (timezone); + now_time = time_day_begin (icaltime_as_timet (current_time)); action = GTK_RADIO_ACTION (ACTION (CALENDAR_SEARCH_ANY_FIELD_CONTAINS)); value = gtk_radio_action_get_current_value (action); |