aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-preferences.c
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@0d.be>2009-06-15 22:53:48 +0800
committerFrédéric Péters <fpeters@0d.be>2009-06-23 18:08:50 +0800
commita51deb704aa36bc8b6d02be102f90b666397ff16 (patch)
treef0b87e583fa3db162b0aef3e338f4de62585f8aa /src/empathy-preferences.c
parentd38da38d45d13ca4a85456609abacec17d01a6eb (diff)
downloadgsoc2013-empathy-a51deb704aa36bc8b6d02be102f90b666397ff16.tar
gsoc2013-empathy-a51deb704aa36bc8b6d02be102f90b666397ff16.tar.gz
gsoc2013-empathy-a51deb704aa36bc8b6d02be102f90b666397ff16.tar.bz2
gsoc2013-empathy-a51deb704aa36bc8b6d02be102f90b666397ff16.tar.lz
gsoc2013-empathy-a51deb704aa36bc8b6d02be102f90b666397ff16.tar.xz
gsoc2013-empathy-a51deb704aa36bc8b6d02be102f90b666397ff16.tar.zst
gsoc2013-empathy-a51deb704aa36bc8b6d02be102f90b666397ff16.zip
Show a notification when a contact goes offline or online
Diffstat (limited to 'src/empathy-preferences.c')
-rw-r--r--src/empathy-preferences.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index cb087cb30..d91dc9817 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -69,6 +69,8 @@ typedef struct {
GtkWidget *checkbutton_notifications_enabled;
GtkWidget *checkbutton_notifications_disabled_away;
GtkWidget *checkbutton_notifications_focus;
+ GtkWidget *checkbutton_notifications_contact_signin;
+ GtkWidget *checkbutton_notifications_contact_signout;
GtkWidget *treeview_spell_checker;
@@ -200,6 +202,12 @@ preferences_setup_widgets (EmpathyPreferences *preferences)
preferences_hookup_toggle_button (preferences,
EMPATHY_PREFS_NOTIFICATIONS_FOCUS,
preferences->checkbutton_notifications_focus);
+ preferences_hookup_toggle_button (preferences,
+ EMPATHY_PREFS_NOTIFICATIONS_CONTACT_SIGNIN,
+ preferences->checkbutton_notifications_contact_signin);
+ preferences_hookup_toggle_button (preferences,
+ EMPATHY_PREFS_NOTIFICATIONS_CONTACT_SIGNOUT,
+ preferences->checkbutton_notifications_contact_signout);
preferences_hookup_sensitivity (preferences,
EMPATHY_PREFS_NOTIFICATIONS_ENABLED,
@@ -207,6 +215,12 @@ preferences_setup_widgets (EmpathyPreferences *preferences)
preferences_hookup_sensitivity (preferences,
EMPATHY_PREFS_NOTIFICATIONS_ENABLED,
preferences->checkbutton_notifications_focus);
+ preferences_hookup_sensitivity (preferences,
+ EMPATHY_PREFS_NOTIFICATIONS_ENABLED,
+ preferences->checkbutton_notifications_contact_signin);
+ preferences_hookup_sensitivity (preferences,
+ EMPATHY_PREFS_NOTIFICATIONS_ENABLED,
+ preferences->checkbutton_notifications_contact_signout);
preferences_hookup_toggle_button (preferences,
EMPATHY_PREFS_SOUNDS_ENABLED,
@@ -1207,6 +1221,8 @@ empathy_preferences_show (GtkWindow *parent)
"checkbutton_notifications_enabled", &preferences->checkbutton_notifications_enabled,
"checkbutton_notifications_disabled_away", &preferences->checkbutton_notifications_disabled_away,
"checkbutton_notifications_focus", &preferences->checkbutton_notifications_focus,
+ "checkbutton_notifications_contact_signin", &preferences->checkbutton_notifications_contact_signin,
+ "checkbutton_notifications_contact_signout", &preferences->checkbutton_notifications_contact_signout,
"checkbutton_sounds_enabled", &preferences->checkbutton_sounds_enabled,
"checkbutton_sounds_disabled_away", &preferences->checkbutton_sounds_disabled_away,
"treeview_sounds", &preferences->treeview_sounds,