aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-01-20 19:03:33 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-01-20 19:03:33 +0800
commit87fedfa33149a1bbe09daad734a3fac6d349a4f0 (patch)
treee88e1318b5a208d08ae9966b3588aa102be8cf03 /calendar/gui
parentf75371a9f2c86b648d1da413eff2bed1e6b6a221 (diff)
downloadgsoc2013-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/gui')
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c15
1 files changed, 10 insertions, 5 deletions
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