Mercurial > pidgin.yaz
diff src/protocols/toc/toc.c @ 3730:a20bf3d247ff
[gaim-migrate @ 3868]
Pretty do_ask_dialog. I also "fixed" the "hitting yes calls the 'no' function
anyway" behavior.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 17 Oct 2002 21:29:53 +0000 |
parents | da6e3c984985 |
children | 43e396e94095 |
line wrap: on
line diff
--- a/src/protocols/toc/toc.c Thu Oct 17 21:23:09 2002 +0000 +++ b/src/protocols/toc/toc.c Thu Oct 17 21:29:53 2002 +0000 @@ -1919,7 +1919,7 @@ } } -static void toc_accept_ft(gpointer a, struct ft_request *fr) { +static void toc_accept_ft(struct ft_request *fr) { GtkWidget *window; char buf[BUF_LEN]; @@ -1947,9 +1947,10 @@ GTK_SIGNAL_FUNC(toc_get_file), ft); gtk_widget_show(window); + toc_reject_ft(ft); } -static void toc_reject_ft(gpointer a, struct ft_request *ft) { +static void toc_reject_ft(struct ft_request *ft) { g_free(ft->user); g_free(ft->filename); g_free(ft->ip); @@ -1980,5 +1981,5 @@ } else { g_snprintf(buf, sizeof(buf), _("%s requests you to send them a file"), ft->user); } - do_ask_dialog(buf, ft, toc_accept_ft, toc_reject_ft); + do_ask_dialog(buf, NULL, ft, _("Accept"), toc_accept_ft, _("Cancel"), toc_reject_ft); }