diff src/gtkft.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 ad445074d239
children bb8f0a149831
line wrap: on
line diff
--- a/src/gtkft.c	Fri May 23 01:45:17 2003 +0000
+++ b/src/gtkft.c	Fri May 23 02:42:52 2003 +0000
@@ -29,6 +29,7 @@
 #include "gtkcellrendererprogress.h"
 #include "gaim-disclosure.h"
 #include "notify.h"
+#include "request.h"
 
 #define GAIM_GTKXFER(xfer) \
 	(struct gaim_gtkxfer_ui_data *)(xfer)->ui_data
@@ -1027,12 +1028,12 @@
 		else if (gaim_xfer_get_type(xfer) == GAIM_XFER_RECEIVE) {
 			data->name = g_strdup(name);
 
-			do_ask_dialog(_("That file already exists. "
-							"Would you like to overwrite it?"),
-						  NULL, xfer,
-						  _("Yes"), do_overwrite_cb,
-						  _("No"), dont_overwrite_cb,
-						  NULL, FALSE);
+			gaim_request_yes_no(NULL, NULL,
+								_("That file already exists."),
+								_("Would you like to overwrite it?"),
+								1, xfer,
+								G_CALLBACK(do_overwrite_cb),
+								G_CALLBACK(dont_overwrite_cb));
 		}
 		else {
 			gaim_xfer_request_accepted(xfer, g_strdup(name));
@@ -1107,10 +1108,9 @@
 
 	g_free(size_buf);
 
-	do_ask_dialog(buf, NULL, xfer,
-				  _("Accept"), choose_file,
-				  _("Cancel"), cancel_recv_cb,
-				  NULL, FALSE);
+	gaim_request_accept_cancel(NULL, NULL, buf, NULL, 0, xfer,
+							   G_CALLBACK(choose_file),
+							   G_CALLBACK(cancel_recv_cb));
 
 	g_free(buf);
 }