Mercurial > pidgin
comparison src/conversation.c @ 4471:c43c91ecb261
[gaim-migrate @ 4746]
Using aim_user instead of gaim_connection.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Thu, 30 Jan 2003 09:47:01 +0000 |
| parents | c800ce24c571 |
| children | 62c1e5e656d0 |
comparison
equal
deleted
inserted
replaced
| 4470:c800ce24c571 | 4471:c43c91ecb261 |
|---|---|
| 1119 } | 1119 } |
| 1120 | 1120 |
| 1121 void | 1121 void |
| 1122 gaim_conversation_autoset_title(struct gaim_conversation *conv) | 1122 gaim_conversation_autoset_title(struct gaim_conversation *conv) |
| 1123 { | 1123 { |
| 1124 struct gaim_connection *gc; | 1124 struct aim_user *user; |
| 1125 struct buddy *b; | 1125 struct buddy *b; |
| 1126 const char *text, *name; | 1126 const char *text, *name; |
| 1127 | 1127 |
| 1128 if (conv == NULL) | 1128 if (conv == NULL) |
| 1129 return; | 1129 return; |
| 1130 | 1130 |
| 1131 gc = gaim_conversation_get_gc(conv); | 1131 user = gaim_conversation_get_user(conv); |
| 1132 name = gaim_conversation_get_name(conv); | 1132 name = gaim_conversation_get_name(conv); |
| 1133 | 1133 |
| 1134 if (((im_options & OPT_IM_ALIAS_TAB) == OPT_IM_ALIAS_TAB) && | 1134 if (((im_options & OPT_IM_ALIAS_TAB) == OPT_IM_ALIAS_TAB) && |
| 1135 gc != NULL && ((b = find_buddy(gc->user, name)) != NULL)) { | 1135 user != NULL && ((b = find_buddy(user, name)) != NULL)) { |
| 1136 | 1136 |
| 1137 text = get_buddy_alias(b); | 1137 text = get_buddy_alias(b); |
| 1138 } | 1138 } |
| 1139 else | 1139 else |
| 1140 text = name; | 1140 text = name; |
