Mercurial > pidgin
diff src/gtkconv.c @ 5881:cc7870e1e3b3
[gaim-migrate @ 6313]
Added the protocol icons to the Join Chat dialog. Unfortunately, we
couldn't use my new function, because it must check if a prpl function is
set before deciding whether or not to display it.
Also, fixed some calls to chats that should only be called on IMs.
Harmless, but generated run-time warnings.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sun, 15 Jun 2003 05:41:27 +0000 |
| parents | 059d95c67cda |
| children | 74e273e22f94 |
line wrap: on
line diff
--- a/src/gtkconv.c Sun Jun 15 05:24:57 2003 +0000 +++ b/src/gtkconv.c Sun Jun 15 05:41:27 2003 +0000 @@ -3677,7 +3677,8 @@ focus_gtkconv = GAIM_GTK_CONVERSATION(focus_conv); gtk_widget_grab_focus(focus_gtkconv->entry); - gaim_gtkconv_update_buddy_icon(conv); + if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) + gaim_gtkconv_update_buddy_icon(conv); if (!new_ui) g_object_unref(gtkconv->tab_cont); @@ -4432,7 +4433,10 @@ if (type == GAIM_CONV_UPDATE_ACCOUNT) { gaim_conversation_autoset_title(conv); - gaim_gtkconv_update_buddy_icon(conv); + + if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) + gaim_gtkconv_update_buddy_icon(conv); + gaim_gtkconv_update_buttons_by_protocol(conv); g_timeout_add(0, (GSourceFunc)update_send_as_selection, win); @@ -5300,7 +5304,14 @@ show_buddy_icons_pref_cb(const char *name, GaimPrefType type, gpointer value, gpointer data) { - gaim_conversation_foreach(gaim_gtkconv_update_buddy_icon); + GList *l; + + for (l = gaim_get_conversations(); l != NULL; l = l->next) { + GaimConversation *conv = l->data; + + if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) + gaim_conversation_foreach(gaim_gtkconv_update_buddy_icon); + } } static void
