From f127e56c1b1f27bf7b8be219e13a7c71ffdb63ec Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 18 Oct 2010 11:23:29 +0200 Subject: empathy_notify_manager_notification_is_enabled: properly check the EMPATHY_PREFS_NOTIFICATIONS_DISABLED_AWAY preference If this key is set, that means we do NOT want the notification when being away/busy. --- libempathy-gtk/empathy-notify-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libempathy-gtk/empathy-notify-manager.c') diff --git a/libempathy-gtk/empathy-notify-manager.c b/libempathy-gtk/empathy-notify-manager.c index d0e0aadec..803839755 100644 --- a/libempathy-gtk/empathy-notify-manager.c +++ b/libempathy-gtk/empathy-notify-manager.c @@ -207,7 +207,7 @@ empathy_notify_manager_notification_is_enabled (EmpathyNotifyManager *self) if (presence != TP_CONNECTION_PRESENCE_TYPE_AVAILABLE && presence != TP_CONNECTION_PRESENCE_TYPE_UNSET) { - if (!g_settings_get_boolean (gsettings, + if (g_settings_get_boolean (gsettings, EMPATHY_PREFS_NOTIFICATIONS_DISABLED_AWAY)) goto finally; } -- cgit v1.2.3