comparison src/protocols/toc/toc.c @ 7063:7fdac700deb1

[gaim-migrate @ 7627] show_change_pass, or whatever it was called, is now core/UI split. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 30 Sep 2003 07:47:38 +0000
parents 86ed8b2aa665
children 71e0da45abe6
comparison
equal deleted inserted replaced
7062:86ed8b2aa665 7063:7fdac700deb1
1512 static GList *toc_away_states(GaimConnection *gc) 1512 static GList *toc_away_states(GaimConnection *gc)
1513 { 1513 {
1514 return g_list_append(NULL, GAIM_AWAY_CUSTOM); 1514 return g_list_append(NULL, GAIM_AWAY_CUSTOM);
1515 } 1515 }
1516 1516
1517 static void
1518 change_pass(GaimConnection *gc)
1519 {
1520 gaim_account_request_change_password(gaim_connection_get_account(gc));
1521 }
1522
1517 static GList *toc_actions(GaimConnection *gc) 1523 static GList *toc_actions(GaimConnection *gc)
1518 { 1524 {
1519 GList *m = NULL; 1525 GList *m = NULL;
1520 struct proto_actions_menu *pam; 1526 struct proto_actions_menu *pam;
1521 1527
1531 pam->gc = gc; 1537 pam->gc = gc;
1532 m = g_list_append(m, pam); 1538 m = g_list_append(m, pam);
1533 1539
1534 pam = g_new0(struct proto_actions_menu, 1); 1540 pam = g_new0(struct proto_actions_menu, 1);
1535 pam->label = _("Change Password"); 1541 pam->label = _("Change Password");
1536 pam->callback = show_change_passwd; 1542 pam->callback = change_pass;
1537 pam->gc = gc; 1543 pam->gc = gc;
1538 m = g_list_append(m, pam); 1544 m = g_list_append(m, pam);
1539 1545
1540 return m; 1546 return m;
1541 } 1547 }