Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 11668:ae9d9e2add8e
[gaim-migrate @ 13953]
" A recent patch (#1326618) was applied to HEAD which
fixed tab highlighting for (un)seen messages by moving
the (un)seen stuff from core to ui. When this was done,
gaim_gtkconv_updated() was being called directly
instead of going through gaim_conversation_update().
This stopped the "conversation-updated" signal from
being emitted when the (un)seen state was changed.
In addition, I noticed another case in gtkconv.c where
gaim_gtkconv_updated() was being called directly and
two cases in conversation.c where ops->updated() was
called directly.
This patch fixes those cases by calling
gaim_conversation_update() which will emit the signal
and then call ops->updated()." -- Casey Harkins
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 15 Oct 2005 16:36:50 +0000 |
parents | 38bbb0f15453 |
children | 0940c0077b8c |
comparison
equal
deleted
inserted
replaced
11667:3c116b4e73b7 | 11668:ae9d9e2add8e |
---|---|
1908 gaim_conversation_is_logging(conv)); | 1908 gaim_conversation_is_logging(conv)); |
1909 | 1909 |
1910 gtk_window_set_title(GTK_WINDOW(gtkconv->win->window), | 1910 gtk_window_set_title(GTK_WINDOW(gtkconv->win->window), |
1911 gtk_label_get_text(GTK_LABEL(gtkconv->tab_label))); | 1911 gtk_label_get_text(GTK_LABEL(gtkconv->tab_label))); |
1912 | 1912 |
1913 gaim_gtkconv_updated(conv, GAIM_CONV_UPDATE_ACCOUNT); | 1913 gaim_conversation_update(conv, GAIM_CONV_UPDATE_ACCOUNT); |
1914 gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->entry), | 1914 gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->entry), |
1915 gaim_account_get_protocol_name(conv->account)); | 1915 gaim_account_get_protocol_name(conv->account)); |
1916 } | 1916 } |
1917 | 1917 |
1918 static void | 1918 static void |
5696 static void | 5696 static void |
5697 gtkconv_set_unseen(GaimGtkConversation *gtkconv, GaimUnseenState state) | 5697 gtkconv_set_unseen(GaimGtkConversation *gtkconv, GaimUnseenState state) |
5698 { | 5698 { |
5699 gtkconv->unseen_state = state; | 5699 gtkconv->unseen_state = state; |
5700 | 5700 |
5701 gaim_gtkconv_updated(gtkconv->active_conv, GAIM_CONV_UPDATE_UNSEEN); | 5701 gaim_conversation_update(gtkconv->active_conv, GAIM_CONV_UPDATE_UNSEEN); |
5702 } | 5702 } |
5703 /* | 5703 /* |
5704 * When a conversation window is focused, we know the user | 5704 * When a conversation window is focused, we know the user |
5705 * has looked at it so we know there are no longer unseen | 5705 * has looked at it so we know there are no longer unseen |
5706 * messages. | 5706 * messages. |