aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-preferences.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-07-05 22:48:41 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-07-07 16:45:04 +0800
commit5b029371a79ba91901cf88f7362f86632e94e223 (patch)
tree829ec56ae6de17472a3dcf96306d5f280d3b10ac /src/empathy-preferences.c
parentdbf13d34105beedc112b8d6005c0b8ff0646aa0f (diff)
downloadgsoc2013-empathy-5b029371a79ba91901cf88f7362f86632e94e223.tar
gsoc2013-empathy-5b029371a79ba91901cf88f7362f86632e94e223.tar.gz
gsoc2013-empathy-5b029371a79ba91901cf88f7362f86632e94e223.tar.bz2
gsoc2013-empathy-5b029371a79ba91901cf88f7362f86632e94e223.tar.lz
gsoc2013-empathy-5b029371a79ba91901cf88f7362f86632e94e223.tar.xz
gsoc2013-empathy-5b029371a79ba91901cf88f7362f86632e94e223.tar.zst
gsoc2013-empathy-5b029371a79ba91901cf88f7362f86632e94e223.zip
Add option to disable displaying events in the notif area (#585914)
Diffstat (limited to 'src/empathy-preferences.c')
-rw-r--r--src/empathy-preferences.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index e45e5405d..8714aced0 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -58,6 +58,7 @@ struct _EmpathyPreferencesPriv {
GtkWidget *checkbutton_show_contacts_in_rooms;
GtkWidget *combobox_chat_theme;
GtkWidget *checkbutton_separate_chat_windows;
+ GtkWidget *checkbutton_events_notif_area;
GtkWidget *checkbutton_autoconnect;
GtkWidget *checkbutton_sounds_enabled;
@@ -221,6 +222,12 @@ preferences_setup_widgets (EmpathyPreferences *preferences)
"active",
G_SETTINGS_BIND_DEFAULT);
+ g_settings_bind (priv->gsettings_ui,
+ EMPATHY_PREFS_UI_EVENTS_NOTIFY_AREA,
+ priv->checkbutton_events_notif_area,
+ "active",
+ G_SETTINGS_BIND_DEFAULT);
+
g_settings_bind (priv->gsettings_chat,
EMPATHY_PREFS_CHAT_SHOW_SMILEYS,
priv->checkbutton_show_smileys,
@@ -877,6 +884,7 @@ empathy_preferences_init (EmpathyPreferences *preferences)
"checkbutton_show_contacts_in_rooms", &priv->checkbutton_show_contacts_in_rooms,
"combobox_chat_theme", &priv->combobox_chat_theme,
"checkbutton_separate_chat_windows", &priv->checkbutton_separate_chat_windows,
+ "checkbutton_events_notif_area", &priv->checkbutton_events_notif_area,
"checkbutton_autoconnect", &priv->checkbutton_autoconnect,
"checkbutton_notifications_enabled", &priv->checkbutton_notifications_enabled,
"checkbutton_notifications_disabled_away", &priv->checkbutton_notifications_disabled_away,