comparison src/multi.c @ 5498:cce2d7868c78

[gaim-migrate @ 5894] Bye bye do_ask_dialog()! Mwahahahahhaha! And wit -> with. What wit with the witty with wit comment, wit you jutht thaw. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 23 May 2003 02:42:52 +0000
parents df653f6f2978
children 2c4c975620f0
comparison
equal deleted inserted replaced
5497:3c7748b24410 5498:cce2d7868c78
1542 if (account != NULL) { 1542 if (account != NULL) {
1543 char buf[8192]; 1543 char buf[8192];
1544 1544
1545 g_snprintf(buf, sizeof(buf), 1545 g_snprintf(buf, sizeof(buf),
1546 _("Are you sure you want to delete %s?"), account->username); 1546 _("Are you sure you want to delete %s?"), account->username);
1547 do_ask_dialog(buf, NULL, account, _("Delete"), do_del_acct, _("Cancel"), NULL, NULL, FALSE); 1547
1548 gaim_request_action(NULL, NULL, buf, NULL, 1, account, 2,
1549 _("Delete"), G_CALLBACK(do_del_acct),
1550 _("Cancel"), NULL);
1548 } 1551 }
1549 } 1552 }
1550 1553
1551 static void del_acct(GtkWidget *w, gpointer d) 1554 static void del_acct(GtkWidget *w, gpointer d)
1552 { 1555 {
2123 struct gaim_window *win = (struct gaim_window *)wins->data; 2126 struct gaim_window *win = (struct gaim_window *)wins->data;
2124 gaim_conversation_update(gaim_window_get_conversation_at(win, 0), 2127 gaim_conversation_update(gaim_window_get_conversation_at(win, 0),
2125 GAIM_CONV_ACCOUNT_OFFLINE); 2128 GAIM_CONV_ACCOUNT_OFFLINE);
2126 } 2129 }
2127 2130
2131 gaim_request_close_with_handle(gc);
2132 gaim_notify_close_with_handle(gc);
2133
2128 update_privacy_connections(); 2134 update_privacy_connections();
2129 2135
2130 /* in, out, shake it all about */ 2136 /* in, out, shake it all about */
2131 if (connections) 2137 if (connections)
2132 return; 2138 return;