From 04776cb50759931dde13c9bcfa0d200fd7c77a5a 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(-) 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