aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-model.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-04-17 00:23:58 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-04-17 00:23:58 +0800
commit8d2d08837d5e8969db0a62547124bab9c6507459 (patch)
treefd254a2a12316faa4f36f2bd3aea18646240d61e /calendar/gui/calendar-model.c
parent611fbb0443eb7a26a252ca4a706f9b592cdf0b98 (diff)
downloadgsoc2013-evolution-8d2d08837d5e8969db0a62547124bab9c6507459.tar.gz
gsoc2013-evolution-8d2d08837d5e8969db0a62547124bab9c6507459.tar.zst
gsoc2013-evolution-8d2d08837d5e8969db0a62547124bab9c6507459.zip
Fixes #39735 and 40257
2003-04-15 JP Rosevear <jpr@ximian.com> Fixes #39735 and 40257 * gui/gnome-cal.c: convert float pane positions to ints (setup_widgets): set the initial position after realization and track the drags to get the new position, pack the panes slightly differently (gnome_calendar_set_pane_positions): set purely pixel oriented positions (gnome_calendar_update_config_settings): no need to update quanta setting (gnome_calendar_hpane_realized): realization callback (gnome_calendar_vpane_realized): ditto (gnome_calendar_vpane_resized): resize callback, store new size (gnome_calendar_hpane_resized): ditto * gui/calendar-model.c (get_due_status): handle an error getting the timezone * gui/calendar-config.c (calendar_config_get_hpane_pos): return an int (calendar_config_set_hpane_pos): take an int (calendar_config_get_vpane_pos): return an int (calendar_config_set_vpane_pos): take an int * gui/calendar-config.h: update protos * gui/apps_evolution_calendar.schemas: update defaults for pane positions svn path=/trunk/; revision=20863
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r--calendar/gui/calendar-model.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c
index ebe38ab6a3..9ee184cee6 100644
--- a/calendar/gui/calendar-model.c
+++ b/calendar/gui/calendar-model.c
@@ -673,9 +673,13 @@ get_due_status (CalendarModel *model, CalComponent *comp)
retval = CALENDAR_MODEL_DUE_FUTURE;
} else {
/* Get the current time in the same timezone as the DUE date.*/
- /* FIXME: TIMEZONES: Handle error. */
status = cal_client_get_timezone (model->priv->client, dt.tzid,
&zone);
+ if (status != CAL_CLIENT_GET_SUCCESS) {
+ retval = CALENDAR_MODEL_DUE_FUTURE;
+ goto out;
+ }
+
now_tt = icaltime_current_time_with_zone (zone);
if (icaltime_compare (*dt.value, now_tt) <= 0)