# HG changeset patch # User Richard Laager # Date 1137019925 0 # Node ID 1bb4837b527e39fea16d9b82a00dce8a574d2c85 # Parent 3b4a6e426b9953760c1fad6ae609ae91c0fb744b [gaim-migrate @ 15179] I think we should be setting the protocol name on both imhtmls in a gtkconv and I think we should be doing it in gaim_gtkconv_set_active_conversation(). committer: Tailor Script diff -r 3b4a6e426b99 -r 1bb4837b527e src/gtkconv.c --- a/src/gtkconv.c Wed Jan 11 21:36:26 2006 +0000 +++ b/src/gtkconv.c Wed Jan 11 22:52:05 2006 +0000 @@ -1986,6 +1986,7 @@ gaim_gtkconv_set_active_conversation(GaimConversation *conv) { GaimGtkConversation *gtkconv; + const char *protocol_name; g_return_if_fail(conv != NULL); @@ -2001,6 +2002,10 @@ gaim_conversation_set_logging(conv, gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtkconv->win->menu.logging))); + protocol_name = gaim_account_get_protocol_name(conv->account); + gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->entry), protocol_name); + gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->imhtml), protocol_name); + gaim_signal_emit(gaim_gtk_conversations_get_handle(), "conversation-switched", conv); } @@ -2020,9 +2025,6 @@ gtk_window_set_title(GTK_WINDOW(gtkconv->win->window), gtk_label_get_text(GTK_LABEL(gtkconv->tab_label))); - - gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->entry), - gaim_account_get_protocol_name(conv->account)); } static void