diff options
-rw-r--r-- | calendar/ChangeLog | 9 | ||||
-rw-r--r-- | calendar/gui/dialogs/cal-prefs-dialog.c | 15 |
2 files changed, 19 insertions, 5 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index c931e8d5a2..787a9f2a71 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,12 @@ +2006-01-19 Johnny Jacob <johnnyjacob@gmail.com> + + Fixes #327487 + * gui/dialogs/cal-prefs-dialog.c (default_reminder_units_changed), + (time_divisions_changed), (week_start_day_changed) : Use + e_dialog_combo_box functions to access the widgets. + (default_reminder_interval_changed): Hack to update the spin + button value + 2006-01-19 Chenthill Palanisamy <pchenthill@novell.com> Fixes #327293 diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index a626ce8f1d..4bd19b15e2 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -188,7 +188,7 @@ week_start_day_changed (GtkWidget *widget, CalendarPrefsDialog *prefs) { int week_start_day; - week_start_day = e_dialog_option_menu_get (prefs->week_start_day, week_start_day_map); + week_start_day = e_dialog_combo_box_get (prefs->week_start_day, week_start_day_map); calendar_config_set_week_start_day (week_start_day); } @@ -210,7 +210,7 @@ time_divisions_changed (GtkWidget *widget, CalendarPrefsDialog *prefs) { int time_divisions; - time_divisions = e_dialog_option_menu_get (prefs->time_divisions, time_division_map); + time_divisions = e_dialog_combo_box_get (prefs->time_divisions, time_division_map); calendar_config_set_time_divisions (time_divisions); } @@ -285,15 +285,20 @@ default_reminder_toggled (GtkToggleButton *toggle, CalendarPrefsDialog *prefs) static void default_reminder_interval_changed (GtkWidget *widget, CalendarPrefsDialog *prefs) { - calendar_config_set_default_reminder_interval ( - e_dialog_spin_get_int (prefs->default_reminder_interval)); + const gchar *str; + gdouble value; + + str = gtk_entry_get_text (GTK_ENTRY (widget)); + value = g_ascii_strtod (str, NULL); + + calendar_config_set_default_reminder_interval (value); } static void default_reminder_units_changed (GtkWidget *widget, CalendarPrefsDialog *prefs) { calendar_config_set_default_reminder_units ( - e_dialog_option_menu_get (prefs->default_reminder_units, default_reminder_units_map)); + e_dialog_combo_box_get (prefs->default_reminder_units, default_reminder_units_map)); } static void |