comparison 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
comparison
equal deleted inserted replaced
5497:3c7748b24410 5498:cce2d7868c78
27 #include <unistd.h> 27 #include <unistd.h>
28 #include <string.h> 28 #include <string.h>
29 #include "gtkcellrendererprogress.h" 29 #include "gtkcellrendererprogress.h"
30 #include "gaim-disclosure.h" 30 #include "gaim-disclosure.h"
31 #include "notify.h" 31 #include "notify.h"
32 #include "request.h"
32 33
33 #define GAIM_GTKXFER(xfer) \ 34 #define GAIM_GTKXFER(xfer) \
34 (struct gaim_gtkxfer_ui_data *)(xfer)->ui_data 35 (struct gaim_gtkxfer_ui_data *)(xfer)->ui_data
35 36
36 struct gaim_gtkxfer_dialog 37 struct gaim_gtkxfer_dialog
1025 gaim_xfer_request_denied(xfer); 1026 gaim_xfer_request_denied(xfer);
1026 } 1027 }
1027 else if (gaim_xfer_get_type(xfer) == GAIM_XFER_RECEIVE) { 1028 else if (gaim_xfer_get_type(xfer) == GAIM_XFER_RECEIVE) {
1028 data->name = g_strdup(name); 1029 data->name = g_strdup(name);
1029 1030
1030 do_ask_dialog(_("That file already exists. " 1031 gaim_request_yes_no(NULL, NULL,
1031 "Would you like to overwrite it?"), 1032 _("That file already exists."),
1032 NULL, xfer, 1033 _("Would you like to overwrite it?"),
1033 _("Yes"), do_overwrite_cb, 1034 1, xfer,
1034 _("No"), dont_overwrite_cb, 1035 G_CALLBACK(do_overwrite_cb),
1035 NULL, FALSE); 1036 G_CALLBACK(dont_overwrite_cb));
1036 } 1037 }
1037 else { 1038 else {
1038 gaim_xfer_request_accepted(xfer, g_strdup(name)); 1039 gaim_xfer_request_accepted(xfer, g_strdup(name));
1039 } 1040 }
1040 } 1041 }
1105 buf = g_strdup_printf(_("%s wants to send you %s (%s)"), 1106 buf = g_strdup_printf(_("%s wants to send you %s (%s)"),
1106 xfer->who, gaim_xfer_get_filename(xfer), size_buf); 1107 xfer->who, gaim_xfer_get_filename(xfer), size_buf);
1107 1108
1108 g_free(size_buf); 1109 g_free(size_buf);
1109 1110
1110 do_ask_dialog(buf, NULL, xfer, 1111 gaim_request_accept_cancel(NULL, NULL, buf, NULL, 0, xfer,
1111 _("Accept"), choose_file, 1112 G_CALLBACK(choose_file),
1112 _("Cancel"), cancel_recv_cb, 1113 G_CALLBACK(cancel_recv_cb));
1113 NULL, FALSE);
1114 1114
1115 g_free(buf); 1115 g_free(buf);
1116 } 1116 }
1117 1117
1118 static void 1118 static void