From 5b029371a79ba91901cf88f7362f86632e94e223 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 5 Jul 2010 16:48:41 +0200 Subject: Add option to disable displaying events in the notif area (#585914) --- src/empathy-preferences.c | 8 ++++++++ src/empathy-preferences.ui | 17 ++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) (limited to 'src') 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, diff --git a/src/empathy-preferences.ui b/src/empathy-preferences.ui index e39d36d8a..822e89db7 100644 --- a/src/empathy-preferences.ui +++ b/src/empathy-preferences.ui @@ -104,6 +104,21 @@ 0 + + + Display incoming events in the notification area + True + True + False + True + True + + + False + False + 1 + + _Automatically connect on startup @@ -115,7 +130,7 @@ True - 1 + 2 -- cgit v1.2.3