diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-20 19:03:33 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-20 19:03:33 +0800 |
commit | 87fedfa33149a1bbe09daad734a3fac6d349a4f0 (patch) | |
tree | e88e1318b5a208d08ae9966b3588aa102be8cf03 /calendar | |
parent | f75371a9f2c86b648d1da413eff2bed1e6b6a221 (diff) | |
download | gsoc2013-evolution-87fedfa33149a1bbe09daad734a3fac6d349a4f0.tar gsoc2013-evolution-87fedfa33149a1bbe09daad734a3fac6d349a4f0.tar.gz gsoc2013-evolution-87fedfa33149a1bbe09daad734a3fac6d349a4f0.tar.bz2 gsoc2013-evolution-87fedfa33149a1bbe09daad734a3fac6d349a4f0.tar.lz gsoc2013-evolution-87fedfa33149a1bbe09daad734a3fac6d349a4f0.tar.xz gsoc2013-evolution-87fedfa33149a1bbe09daad734a3fac6d349a4f0.tar.zst gsoc2013-evolution-87fedfa33149a1bbe09daad734a3fac6d349a4f0.zip |
fixes #327487
svn path=/trunk/; revision=31252
Diffstat (limited to 'calendar')
-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 |