aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:08:04 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:08:04 +0800
commitf1de7218621b82fe0622aa04f380445150af39fc (patch)
tree8f113ca2346c0838fd62dad8201971327263807c /src/empathy-chat-window.c
parentc23031cdb33273d6396657f93d5daa064b7d7cac (diff)
downloadgsoc2013-empathy-f1de7218621b82fe0622aa04f380445150af39fc.tar
gsoc2013-empathy-f1de7218621b82fe0622aa04f380445150af39fc.tar.gz
gsoc2013-empathy-f1de7218621b82fe0622aa04f380445150af39fc.tar.bz2
gsoc2013-empathy-f1de7218621b82fe0622aa04f380445150af39fc.tar.lz
gsoc2013-empathy-f1de7218621b82fe0622aa04f380445150af39fc.tar.xz
gsoc2013-empathy-f1de7218621b82fe0622aa04f380445150af39fc.tar.zst
gsoc2013-empathy-f1de7218621b82fe0622aa04f380445150af39fc.zip
Move empathy_notification_is_enabled () to src/
svn path=/trunk/; revision=2294
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r--src/empathy-chat-window.c10
1 files changed, 9 insertions, 1 deletions
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 <libempathy/empathy-debug.h>
@@ -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);