From 973bc4d1197ab108f0236ac2baf48678f20fb2aa Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 30 Jan 2009 17:07:23 +0000 Subject: Modify code to handle new preferences. svn path=/trunk/; revision=2281 --- src/empathy-preferences.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/empathy-preferences.c') diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c index 3fe949870..0ad8e9bdf 100644 --- a/src/empathy-preferences.c +++ b/src/empathy-preferences.c @@ -59,6 +59,10 @@ typedef struct { GtkWidget *checkbutton_sounds_disabled_away; GtkWidget *treeview_sounds; + GtkWidget *checkbutton_notifications_enabled; + GtkWidget *checkbutton_notifications_disabled_away; + GtkWidget *checkbutton_notifications_focus; + GtkWidget *treeview_spell_checker; GList *notify_ids; @@ -185,6 +189,23 @@ preferences_setup_widgets (EmpathyPreferences *preferences) { guint id; + preferences_hookup_toggle_button (preferences, + EMPATHY_PREFS_NOTIFICATIONS_ENABLED, + preferences->checkbutton_notifications_enabled); + preferences_hookup_toggle_button (preferences, + EMPATHY_PREFS_NOTIFICATIONS_DISABLED_AWAY, + preferences->checkbutton_notifications_disabled_away); + preferences_hookup_toggle_button (preferences, + EMPATHY_PREFS_NOTIFICATIONS_FOCUS, + preferences->checkbutton_notifications_focus); + + preferences_hookup_sensitivity (preferences, + EMPATHY_PREFS_NOTIFICATIONS_ENABLED, + preferences->checkbutton_notifications_disabled_away); + preferences_hookup_sensitivity (preferences, + EMPATHY_PREFS_NOTIFICATIONS_ENABLED, + preferences->checkbutton_notifications_focus); + preferences_hookup_toggle_button (preferences, EMPATHY_PREFS_SOUNDS_ENABLED, preferences->checkbutton_sounds_enabled); @@ -1061,6 +1082,9 @@ empathy_preferences_show (GtkWindow *parent) "checkbutton_autoconnect", &preferences->checkbutton_autoconnect, "radiobutton_contact_list_sort_by_name", &preferences->radiobutton_contact_list_sort_by_name, "radiobutton_contact_list_sort_by_state", &preferences->radiobutton_contact_list_sort_by_state, + "checkbutton_notifications_enabled", &preferences->checkbutton_notifications_enabled, + "checkbutton_notifications_disabled_away", &preferences->checkbutton_notifications_disabled_away, + "checkbutton_notifications_focus", &preferences->checkbutton_notifications_focus, "checkbutton_sounds_enabled", &preferences->checkbutton_sounds_enabled, "checkbutton_sounds_disabled_away", &preferences->checkbutton_sounds_disabled_away, "treeview_sounds", &preferences->treeview_sounds, -- cgit v1.2.3