# HG changeset patch # User Luke Schierer # Date 1113180424 0 # Node ID f9e01ccd60468dd8156cb2c12377c6f36ca5b4bf # Parent dcfb8d8784e6cdf873d1e17e20b42db5da80c8e2 [gaim-migrate @ 12461] sean asked that the conversation view log option be contact aware as well, rlaager did the leg work involved. committer: Tailor Script diff -r dcfb8d8784e6 -r f9e01ccd6046 src/gtkconv.c --- a/src/gtkconv.c Mon Apr 11 00:19:40 2005 +0000 +++ b/src/gtkconv.c Mon Apr 11 00:47:04 2005 +0000 @@ -900,6 +900,9 @@ GaimConvWindow *win = (GaimConvWindow *)data; GaimConversation *conv; GaimLogType type; + const char *name; + GaimAccount *account; + GaimBuddy *buddy; conv = gaim_conv_window_get_active_conversation(win); @@ -910,8 +913,19 @@ else return; - gaim_gtk_log_show(type, gaim_conversation_get_name(conv), - gaim_conversation_get_account(conv)); + name = gaim_conversation_get_name(conv); + account = gaim_conversation_get_account(conv); + + buddy = gaim_find_buddy(account, name); + if (buddy != NULL && + buddy->node.parent != NULL && + GAIM_BLIST_NODE_IS_CONTACT(buddy->node.parent)) { + + gaim_gtk_log_show_contact((GaimContact *)buddy->node.parent); + return; + } + + gaim_gtk_log_show(type, name, account); } static void @@ -3608,6 +3622,7 @@ gtkwin->menu.view_log = gtk_item_factory_get_widget(gtkwin->menu.item_factory, N_("/Conversation/View Log")); + /* --- */ gtkwin->menu.send_file =