Mercurial > pidgin
comparison src/gtkconv.c @ 10845:3d7311bde284
[gaim-migrate @ 12517]
sf patch #1184976, from Richard Laager
"This contact-izes the View Log in the conversation window
correctly."
Richard, you may want to double-check my changes to the for loop.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 19 Apr 2005 03:52:18 +0000 |
parents | dd7f59f5252d |
children | bc92c35db3e7 |
comparison
equal
deleted
inserted
replaced
10844:d1f7821c09f4 | 10845:3d7311bde284 |
---|---|
909 GaimConvWindow *win = (GaimConvWindow *)data; | 909 GaimConvWindow *win = (GaimConvWindow *)data; |
910 GaimConversation *conv; | 910 GaimConversation *conv; |
911 GaimLogType type; | 911 GaimLogType type; |
912 const char *name; | 912 const char *name; |
913 GaimAccount *account; | 913 GaimAccount *account; |
914 GaimBuddy *buddy; | 914 GSList *buddies, *cur; |
915 | 915 |
916 conv = gaim_conv_window_get_active_conversation(win); | 916 conv = gaim_conv_window_get_active_conversation(win); |
917 | 917 |
918 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) | 918 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) |
919 type = GAIM_LOG_IM; | 919 type = GAIM_LOG_IM; |
923 return; | 923 return; |
924 | 924 |
925 name = gaim_conversation_get_name(conv); | 925 name = gaim_conversation_get_name(conv); |
926 account = gaim_conversation_get_account(conv); | 926 account = gaim_conversation_get_account(conv); |
927 | 927 |
928 buddy = gaim_find_buddy(account, name); | 928 buddies = gaim_find_buddies(account, name); |
929 if (buddy != NULL && | 929 for (cur = buddies; cur != NULL; cur = cur->next) |
930 buddy->node.parent != NULL && | 930 { |
931 GAIM_BLIST_NODE_IS_CONTACT(buddy->node.parent)) { | 931 GaimBlistNode *node = cur->data; |
932 | 932 if ((node != NULL) && (node->next != NULL)) |
933 gaim_gtk_log_show_contact((GaimContact *)buddy->node.parent); | 933 { |
934 return; | 934 gaim_gtk_log_show_contact((GaimContact *)node->parent); |
935 } | 935 g_slist_free(buddies); |
936 return; | |
937 } | |
938 } | |
939 g_slist_free(buddies); | |
936 | 940 |
937 gaim_gtk_log_show(type, name, account); | 941 gaim_gtk_log_show(type, name, account); |
938 } | 942 } |
939 | 943 |
940 static void | 944 static void |