diff options
author | Milan Crha <mcrha@redhat.com> | 2008-10-17 13:03:48 +0800 |
---|---|---|
committer | Bharath Acharya <abharath@src.gnome.org> | 2008-10-17 13:03:48 +0800 |
commit | 5c1db15ac3ada99f5757634ee27e9974458e7a9f (patch) | |
tree | 0abd098e45af6c37989657bcd30b6f04f1a6df83 | |
parent | 0dc7bf6a24aacd749cb39b3607adb49c66c4e0d8 (diff) | |
download | gsoc2013-evolution-5c1db15ac3ada99f5757634ee27e9974458e7a9f.tar gsoc2013-evolution-5c1db15ac3ada99f5757634ee27e9974458e7a9f.tar.gz gsoc2013-evolution-5c1db15ac3ada99f5757634ee27e9974458e7a9f.tar.bz2 gsoc2013-evolution-5c1db15ac3ada99f5757634ee27e9974458e7a9f.tar.lz gsoc2013-evolution-5c1db15ac3ada99f5757634ee27e9974458e7a9f.tar.xz gsoc2013-evolution-5c1db15ac3ada99f5757634ee27e9974458e7a9f.tar.zst gsoc2013-evolution-5c1db15ac3ada99f5757634ee27e9974458e7a9f.zip |
** Fix for bug #553609
2008-10-17 Milan Crha <mcrha@redhat.com>
** Fix for bug #553609
* gui/e-week-view.c: (e_week_view_set_selected_time_range):
Do not do any changes when the view has not been shown yet.
svn path=/branches/gnome-2-24/; revision=36628
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/e-week-view.c | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 81d8d3f06e..7a3c8401a0 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,12 @@ 2008-10-17 Milan Crha <mcrha@redhat.com> + ** Fix for bug #553609 + + * gui/e-week-view.c: (e_week_view_set_selected_time_range): + Do not do any changes when the view has not been shown yet. + +2008-10-17 Milan Crha <mcrha@redhat.com> + ** Fix for bug #530872 * gui/e-calendar-table.c: (e_calendar_table_on_open_task): diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 621c28bdf8..5e9a88c782 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -1403,6 +1403,11 @@ e_week_view_set_selected_time_range (ECalendarView *cal_view, g_return_if_fail (E_IS_WEEK_VIEW (week_view)); + if (!g_date_valid (&week_view->base_date)) { + /* This view has not been initialized/shown yet, thus skip this. */ + return; + } + time_to_gdate_with_zone (&date, start_time, e_calendar_view_get_timezone (E_CALENDAR_VIEW (week_view))); /* Set the selection to the given days. */ |