comparison src/account.c @ 7067:71e0da45abe6

[gaim-migrate @ 7631] Core/UI split show_set_info(). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 30 Sep 2003 08:08:34 +0000
parents 7fdac700deb1
children 9220c7490cd1
comparison
equal deleted inserted replaced
7066:87bfe52a4099 7067:71e0da45abe6
275 } 275 }
276 276
277 serv_change_passwd(gaim_account_get_connection(account), 277 serv_change_passwd(gaim_account_get_connection(account),
278 orig_pass, new_pass_1); 278 orig_pass, new_pass_1);
279 gaim_account_set_password(account, new_pass_1); 279 gaim_account_set_password(account, new_pass_1);
280
281 } 280 }
282 281
283 void 282 void
284 gaim_account_request_change_password(GaimAccount *account) 283 gaim_account_request_change_password(GaimAccount *account)
285 { 284 {
323 "new password."), 322 "new password."),
324 fields, 323 fields,
325 _("OK"), G_CALLBACK(change_password_cb), 324 _("OK"), G_CALLBACK(change_password_cb),
326 _("Cancel"), NULL, 325 _("Cancel"), NULL,
327 account); 326 account);
327 }
328
329 static void
330 set_user_info_cb(GaimAccount *account, const char *user_info)
331 {
332 GaimConnection *gc;
333
334 gaim_account_set_user_info(account, user_info);
335
336 gc = gaim_account_get_connection(account);
337
338 if (gc != NULL)
339 serv_set_info(gaim_account_get_connection(account), user_info);
340 }
341
342 void
343 gaim_account_request_change_user_info(GaimAccount *account)
344 {
345 char primary[256];
346
347 g_return_if_fail(account != NULL);
348 g_return_if_fail(gaim_account_is_connected(account));
349
350 g_snprintf(primary, sizeof(primary),
351 _("Change user information for %s"),
352 gaim_account_get_username(account));
353
354 gaim_request_input(gaim_account_get_connection(account),
355 NULL, primary, NULL,
356 gaim_account_get_user_info(account),
357 TRUE, FALSE,
358 _("Save"), G_CALLBACK(set_user_info_cb),
359 _("Cancel"), NULL, account);
328 } 360 }
329 361
330 void 362 void
331 gaim_account_set_username(GaimAccount *account, const char *username) 363 gaim_account_set_username(GaimAccount *account, const char *username)
332 { 364 {