aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/gossip-chat-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-09 19:48:33 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-09 19:48:33 +0800
commitbeb301da43c57e64e781b7f5c69b2bc667f46b1d (patch)
tree32e373f5960cf673297b6162ccc039c25007e9aa /libempathy-gtk/gossip-chat-window.c
parent6c4424425443b85e2bc14ee430fb8ec78521b074 (diff)
downloadgsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.gz
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.bz2
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.lz
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.xz
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.zst
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.zip
[darcs-to-svn @ sync with Gossip SVN 2323]
svn path=/trunk/; revision=38
Diffstat (limited to 'libempathy-gtk/gossip-chat-window.c')
-rw-r--r--libempathy-gtk/gossip-chat-window.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/libempathy-gtk/gossip-chat-window.c b/libempathy-gtk/gossip-chat-window.c
index feeda5e00..62ace37b4 100644
--- a/libempathy-gtk/gossip-chat-window.c
+++ b/libempathy-gtk/gossip-chat-window.c
@@ -177,6 +177,7 @@ static void chat_window_composing_cb (GossipChat *
GossipChatWindow *window);
static void chat_window_new_message_cb (GossipChat *chat,
GossipMessage *message,
+ gboolean is_backlog,
GossipChatWindow *window);
static GtkNotebook* chat_window_detach_hook (GtkNotebook *source,
GtkWidget *page,
@@ -1339,6 +1340,7 @@ chat_window_composing_cb (GossipChat *chat,
static void
chat_window_new_message_cb (GossipChat *chat,
GossipMessage *message,
+ gboolean is_backlog,
GossipChatWindow *window)
{
GossipChatWindowPriv *priv;
@@ -1358,7 +1360,8 @@ chat_window_new_message_cb (GossipChat *chat,
needs_urgency = FALSE;
if (gossip_chat_is_group_chat (chat)) {
- if (gossip_chat_should_highlight_nick (message)) {
+ if (!is_backlog &&
+ gossip_chat_should_highlight_nick (message)) {
gossip_debug (DEBUG_DOMAIN, "Highlight this nick");
needs_urgency = TRUE;
}
@@ -1370,7 +1373,8 @@ chat_window_new_message_cb (GossipChat *chat,
chat_window_set_urgency_hint (window, TRUE);
}
- if (!g_list_find (priv->chats_new_msg, chat)) {
+ if (!is_backlog &&
+ !g_list_find (priv->chats_new_msg, chat)) {
priv->chats_new_msg = g_list_prepend (priv->chats_new_msg, chat);
chat_window_update_status (window, chat);
}
@@ -1476,16 +1480,16 @@ chat_window_page_added_cb (GtkNotebook *notebook,
gossip_chat_set_window (chat, window);
/* Connect chat signals for this window */
- g_signal_connect (chat, "status_changed",
+ g_signal_connect (chat, "status-changed",
G_CALLBACK (chat_window_status_changed_cb),
window);
- g_signal_connect (chat, "name_changed",
+ g_signal_connect (chat, "name-changed",
G_CALLBACK (chat_window_name_changed_cb),
window);
g_signal_connect (chat, "composing",
G_CALLBACK (chat_window_composing_cb),
window);
- g_signal_connect (chat, "new_message",
+ g_signal_connect (chat, "new-message",
G_CALLBACK (chat_window_new_message_cb),
window);