diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-31 01:07:23 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-31 01:07:23 +0800 |
commit | 973bc4d1197ab108f0236ac2baf48678f20fb2aa (patch) | |
tree | b51c4e05f6c10d59e06693c9b036b746d550b0a2 /src/empathy-preferences.c | |
parent | 11cd817399ed680de67d840c913607b518c49429 (diff) | |
download | gsoc2013-empathy-973bc4d1197ab108f0236ac2baf48678f20fb2aa.tar gsoc2013-empathy-973bc4d1197ab108f0236ac2baf48678f20fb2aa.tar.gz gsoc2013-empathy-973bc4d1197ab108f0236ac2baf48678f20fb2aa.tar.bz2 gsoc2013-empathy-973bc4d1197ab108f0236ac2baf48678f20fb2aa.tar.lz gsoc2013-empathy-973bc4d1197ab108f0236ac2baf48678f20fb2aa.tar.xz gsoc2013-empathy-973bc4d1197ab108f0236ac2baf48678f20fb2aa.tar.zst gsoc2013-empathy-973bc4d1197ab108f0236ac2baf48678f20fb2aa.zip |
Modify code to handle new preferences.
svn path=/trunk/; revision=2281
Diffstat (limited to 'src/empathy-preferences.c')
-rw-r--r-- | src/empathy-preferences.c | 24 |
1 files changed, 24 insertions, 0 deletions
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; @@ -186,6 +190,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); preferences_hookup_toggle_button (preferences, @@ -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, |