diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2007-05-09 19:48:33 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2007-05-09 19:48:33 +0800 |
commit | 50549ef5a4df1be5877e340c0fd86453532b8088 (patch) | |
tree | 32e373f5960cf673297b6162ccc039c25007e9aa /libempathy-gtk/gossip-chat-window.c | |
parent | 15ded1fc39d2ec6b0912a719f69bacf7d7581238 (diff) | |
download | gsoc2013-empathy-50549ef5a4df1be5877e340c0fd86453532b8088.tar gsoc2013-empathy-50549ef5a4df1be5877e340c0fd86453532b8088.tar.gz gsoc2013-empathy-50549ef5a4df1be5877e340c0fd86453532b8088.tar.bz2 gsoc2013-empathy-50549ef5a4df1be5877e340c0fd86453532b8088.tar.lz gsoc2013-empathy-50549ef5a4df1be5877e340c0fd86453532b8088.tar.xz gsoc2013-empathy-50549ef5a4df1be5877e340c0fd86453532b8088.tar.zst gsoc2013-empathy-50549ef5a4df1be5877e340c0fd86453532b8088.zip |
[darcs-to-svn @ sync with Gossip SVN 2323]
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@38 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/gossip-chat-window.c')
-rw-r--r-- | libempathy-gtk/gossip-chat-window.c | 14 |
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); |