diff options
Diffstat (limited to 'calendar/gui/alarm-notify/save.c')
-rw-r--r-- | calendar/gui/alarm-notify/save.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/alarm-notify/save.c b/calendar/gui/alarm-notify/save.c index d0b127fb99..5433cac806 100644 --- a/calendar/gui/alarm-notify/save.c +++ b/calendar/gui/alarm-notify/save.c @@ -78,14 +78,16 @@ time_t get_saved_notification_time (void) { GConfClient *conf_client; - long t; + GConfValue *value; if (!(conf_client = config_data_get_conf_client ())) return -1; - t = gconf_client_get_int (conf_client, KEY_LAST_NOTIFICATION_TIME, NULL); + value = gconf_client_get_without_default (conf_client, KEY_LAST_NOTIFICATION_TIME, NULL); + if (value) + return (time_t) gconf_value_get_int (value); - return (time_t) t; + return time (NULL); } /** |