From f1de7218621b82fe0622aa04f380445150af39fc Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 30 Jan 2009 17:08:04 +0000 Subject: Move empathy_notification_is_enabled () to src/ svn path=/trunk/; revision=2294 --- src/empathy-chat-window.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/empathy-chat-window.c') diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 31a2866a6..cbb6c085c 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -55,6 +55,7 @@ #include "empathy-chat-window.h" #include "empathy-about-dialog.h" +#include "empathy-misc.h" #define DEBUG_FLAG EMPATHY_DEBUG_CHAT #include @@ -868,9 +869,16 @@ chat_window_show_or_update_notification (EmpathyMessage *message, const char *body; GdkPixbuf *pixbuf; EmpathyChatWindowPriv *priv = GET_PRIV (window); + gboolean res; - if (!empathy_notification_should_show (TRUE)) { + if (!empathy_notification_is_enabled ()) { return; + } else { + empathy_conf_get_bool (empathy_conf_get (), + EMPATHY_PREFS_NOTIFICATIONS_FOCUS, &res); + if (!res) { + return; + } } sender = empathy_message_get_sender (message); -- cgit v1.2.3