diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-05 09:18:15 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-05 09:18:15 +0800 |
commit | e9fe87ee9923aaa3bcb29e162d823267337ab274 (patch) | |
tree | 0d6c8e8c0a652c4f355a5ea7f203da52beb8747f /calendar/gui/dialogs/cal-prefs-dialog.c | |
parent | 54b282cf4fbac0d4dfbbe90caa2a206eb088f76d (diff) | |
download | gsoc2013-evolution-e9fe87ee9923aaa3bcb29e162d823267337ab274.tar.gz gsoc2013-evolution-e9fe87ee9923aaa3bcb29e162d823267337ab274.tar.zst gsoc2013-evolution-e9fe87ee9923aaa3bcb29e162d823267337ab274.zip |
Remove some obsolete utility functions.
Diffstat (limited to 'calendar/gui/dialogs/cal-prefs-dialog.c')
-rw-r--r-- | calendar/gui/dialogs/cal-prefs-dialog.c | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index d9bf73d5bf..e6023f94ed 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -271,7 +271,9 @@ hide_completed_tasks_toggled (GtkToggleButton *toggle, CalendarPrefsDialog *pref static void hide_completed_tasks_changed (GtkWidget *widget, CalendarPrefsDialog *prefs) { - calendar_config_set_hide_completed_tasks_value (e_dialog_spin_get_int (prefs->tasks_hide_completed_interval)); + calendar_config_set_hide_completed_tasks_value ( + gtk_spin_button_get_value_as_int ( + GTK_SPIN_BUTTON (prefs->tasks_hide_completed_interval))); } static void @@ -450,14 +452,18 @@ show_task_list_config (CalendarPrefsDialog *prefs) /* Hide Completed Tasks. */ hide_completed_tasks = calendar_config_get_hide_completed_tasks (); - e_dialog_toggle_set (prefs->tasks_hide_completed, hide_completed_tasks); + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (prefs->tasks_hide_completed), + hide_completed_tasks); /* Hide Completed Tasks Units. */ units = calendar_config_get_hide_completed_tasks_units (); e_dialog_combo_box_set (prefs->tasks_hide_completed_units, units, hide_completed_units_map); /* Hide Completed Tasks Value. */ - e_dialog_spin_set (prefs->tasks_hide_completed_interval, calendar_config_get_hide_completed_tasks_value ()); + gtk_spin_button_set_value ( + GTK_SPIN_BUTTON (prefs->tasks_hide_completed_interval), + calendar_config_get_hide_completed_tasks_value ()); gtk_widget_set_sensitive (prefs->tasks_hide_completed_interval, hide_completed_tasks); gtk_widget_set_sensitive (prefs->tasks_hide_completed_units, hide_completed_tasks); @@ -527,7 +533,9 @@ show_config (CalendarPrefsDialog *prefs) e_dialog_combo_box_set (prefs->time_divisions, time_divisions, time_division_map); /* Month View - Scroll by a week */ - e_dialog_toggle_set (prefs->month_scroll_by_week, calendar_config_get_month_scroll_by_week ()); + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (prefs->month_scroll_by_week), + calendar_config_get_month_scroll_by_week ()); /* Task list */ show_task_list_config (prefs); @@ -536,15 +544,21 @@ show_config (CalendarPrefsDialog *prefs) show_alarms_config (prefs); /* Other page */ - e_dialog_toggle_set (prefs->default_reminder, calendar_config_get_use_default_reminder ()); - e_dialog_spin_set (prefs->default_reminder_interval, calendar_config_get_default_reminder_interval ()); + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (prefs->default_reminder), + calendar_config_get_use_default_reminder ()); + gtk_spin_button_set_value ( + GTK_SPIN_BUTTON (prefs->default_reminder_interval), + calendar_config_get_default_reminder_interval ()); e_dialog_combo_box_set (prefs->default_reminder_units, calendar_config_get_default_reminder_units (), default_reminder_units_map); /* Birthdays & Anniversaries reminder */ set = calendar_config_get_ba_reminder (&interval, &units); - e_dialog_toggle_set (prefs->ba_reminder, set); - e_dialog_spin_set (prefs->ba_reminder_interval, interval); + gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (prefs->ba_reminder), set); + gtk_spin_button_set_value ( + GTK_SPIN_BUTTON (prefs->ba_reminder_interval), interval); e_dialog_combo_box_set (prefs->ba_reminder_units, units, default_reminder_units_map); } |