Mercurial > pidgin.yaz
comparison src/list.c @ 4942:6a0b1eb407e5
[gaim-migrate @ 5276]
Tabs are now updated when an alias changes.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 01 Apr 2003 06:42:17 +0000 |
parents | d7a549ab95c2 |
children | e81625009ab3 |
comparison
equal
deleted
inserted
replaced
4941:d7a549ab95c2 | 4942:6a0b1eb407e5 |
---|---|
161 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); | 161 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); |
162 } | 162 } |
163 void gaim_blist_alias_buddy (struct buddy *buddy, const char *alias) | 163 void gaim_blist_alias_buddy (struct buddy *buddy, const char *alias) |
164 { | 164 { |
165 struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; | 165 struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; |
166 struct gaim_conversation *conv; | |
167 | |
166 g_free(buddy->alias); | 168 g_free(buddy->alias); |
169 | |
167 buddy->alias = g_strdup(alias); | 170 buddy->alias = g_strdup(alias); |
171 | |
168 if (ops) | 172 if (ops) |
169 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); | 173 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); |
170 } | 174 |
175 conv = gaim_find_conversation_with_account(buddy->name, buddy->account); | |
176 | |
177 if (conv) | |
178 gaim_conversation_autoset_title(conv); | |
179 } | |
180 | |
171 void gaim_blist_rename_group(struct group *group, const char *name) | 181 void gaim_blist_rename_group(struct group *group, const char *name) |
172 { | 182 { |
173 struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; | 183 struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; |
174 g_free(group->name); | 184 g_free(group->name); |
175 group->name = g_strdup(name); | 185 group->name = g_strdup(name); |