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 | |
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')
-rw-r--r-- | src/empathy-preferences.c | 24 | ||||
-rw-r--r-- | src/empathy-preferences.glade | 2 |
2 files changed, 25 insertions, 1 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, diff --git a/src/empathy-preferences.glade b/src/empathy-preferences.glade index e5dd04510..b794a2047 100644 --- a/src/empathy-preferences.glade +++ b/src/empathy-preferences.glade @@ -269,7 +269,7 @@ <property name="visible">True</property> <property name="spacing">6</property> <child> - <widget class="GtkCheckButton" id="checkbutton_notifications_away"> + <widget class="GtkCheckButton" id="checkbutton_notifications_disabled_away"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Disable notifications when _away or busy</property> |