aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-18 05:50:00 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-18 05:50:00 +0800
commita92c3b945d26bf8080adcda3286fbd7cb48de125 (patch)
tree864a2234845c70a00f62aa7cdfb743bafb91a34e /src/empathy-chat-window.c
parentff728e13b1293c1a4ffa0bc5f772b544b5b780fd (diff)
downloadgsoc2013-empathy-a92c3b945d26bf8080adcda3286fbd7cb48de125.tar
gsoc2013-empathy-a92c3b945d26bf8080adcda3286fbd7cb48de125.tar.gz
gsoc2013-empathy-a92c3b945d26bf8080adcda3286fbd7cb48de125.tar.bz2
gsoc2013-empathy-a92c3b945d26bf8080adcda3286fbd7cb48de125.tar.lz
gsoc2013-empathy-a92c3b945d26bf8080adcda3286fbd7cb48de125.tar.xz
gsoc2013-empathy-a92c3b945d26bf8080adcda3286fbd7cb48de125.tar.zst
gsoc2013-empathy-a92c3b945d26bf8080adcda3286fbd7cb48de125.zip
Always set urgency hint on p2p chat windows when receiving a message.
svn path=/trunk/; revision=962
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r--src/empathy-chat-window.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 9316d9868..b841506ba 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -757,12 +757,16 @@ chat_window_new_message_cb (EmpathyChat *chat,
priv = GET_PRIV (window);
has_focus = empathy_chat_window_has_focus (window);
-
+
if (has_focus && priv->current_chat == chat) {
return;
}
- needs_urgency = empathy_message_should_highlight (message);
+ if (empathy_chat_get_members_count (chat) > 2) {
+ needs_urgency = empathy_message_should_highlight (message);
+ } else {
+ needs_urgency = TRUE;
+ }
if (needs_urgency && !has_focus) {
chat_window_set_urgency_hint (window, TRUE);