Mercurial > pidgin
comparison src/account.c @ 12975:e0c9d63ad4a0
[gaim-migrate @ 15328]
I'm sure this will be a billion times more efficient. Ok, maybe not that
much but it doesn't make sense to call gaim_account_get_connection just for
fun.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 21 Jan 2006 01:58:13 +0000 |
parents | e5f780a6137b |
children | fcde3faa1f57 |
comparison
equal
deleted
inserted
replaced
12974:7080dfef2077 | 12975:e0c9d63ad4a0 |
---|---|
1149 gaim_account_set_user_info(account, user_info); | 1149 gaim_account_set_user_info(account, user_info); |
1150 | 1150 |
1151 gc = gaim_account_get_connection(account); | 1151 gc = gaim_account_get_connection(account); |
1152 | 1152 |
1153 if (gc != NULL) | 1153 if (gc != NULL) |
1154 serv_set_info(gaim_account_get_connection(account), user_info); | 1154 serv_set_info(gc, user_info); |
1155 } | 1155 } |
1156 | 1156 |
1157 void | 1157 void |
1158 gaim_account_request_change_user_info(GaimAccount *account) | 1158 gaim_account_request_change_user_info(GaimAccount *account) |
1159 { | 1159 { |
1167 | 1167 |
1168 g_snprintf(primary, sizeof(primary), | 1168 g_snprintf(primary, sizeof(primary), |
1169 _("Change user information for %s"), | 1169 _("Change user information for %s"), |
1170 gaim_account_get_username(account)); | 1170 gaim_account_get_username(account)); |
1171 | 1171 |
1172 gaim_request_input(gaim_account_get_connection(account), | 1172 gaim_request_input(gc, NULL, primary, NULL, |
1173 NULL, primary, NULL, | |
1174 gaim_account_get_user_info(account), | 1173 gaim_account_get_user_info(account), |
1175 TRUE, FALSE, ((gc != NULL) && | 1174 TRUE, FALSE, ((gc != NULL) && |
1176 (gc->flags & GAIM_CONNECTION_HTML) ? "html" : NULL), | 1175 (gc->flags & GAIM_CONNECTION_HTML) ? "html" : NULL), |
1177 _("Save"), G_CALLBACK(set_user_info_cb), | 1176 _("Save"), G_CALLBACK(set_user_info_cb), |
1178 _("Cancel"), NULL, account); | 1177 _("Cancel"), NULL, account); |
2074 g_return_val_if_fail(buddy, FALSE); | 2073 g_return_val_if_fail(buddy, FALSE); |
2075 | 2074 |
2076 gc = gaim_account_get_connection(account); | 2075 gc = gaim_account_get_connection(account); |
2077 if (gc == NULL) | 2076 if (gc == NULL) |
2078 return FALSE; | 2077 return FALSE; |
2079 | 2078 |
2080 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 2079 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
2081 | 2080 |
2082 if (!prpl_info || !prpl_info->offline_message) | 2081 if (!prpl_info || !prpl_info->offline_message) |
2083 return FALSE; | 2082 return FALSE; |
2084 return prpl_info->offline_message(buddy); | 2083 return prpl_info->offline_message(buddy); |