From 3b0699fc304d0f4aecb261d19869de221f5d6abf Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 7 Aug 2009 21:43:09 -0400 Subject: More refactoring of settings management. --- calendar/gui/e-memo-table.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'calendar/gui/e-memo-table.c') diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c index a7f2508b3f..e23f82108b 100644 --- a/calendar/gui/e-memo-table.c +++ b/calendar/gui/e-memo-table.c @@ -48,7 +48,6 @@ #include #include -#include "calendar-config.h" #include "dialogs/delete-comp.h" #include "dialogs/delete-error.h" #include "dialogs/memo-editor.h" @@ -1243,12 +1242,15 @@ e_memo_table_save_state (EMemoTable *memo_table, static struct tm e_memo_table_get_current_time (ECellDateEdit *ecde, gpointer data) { + EMemoTable *memo_table = data; + ECalModel *model; icaltimezone *zone; struct tm tmp_tm = { 0 }; struct icaltimetype tt; /* Get the current timezone. */ - zone = calendar_config_get_icaltimezone (); + model = e_memo_table_get_model (memo_table); + zone = e_cal_model_get_timezone (model); tt = icaltime_from_timet_with_zone (time (NULL), FALSE, zone); -- cgit v1.2.3