aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/empathy-preferences.c24
-rw-r--r--src/empathy-preferences.glade2
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>