Mercurial > pidgin.yaz
comparison src/gtkft.c @ 5436:ad445074d239
[gaim-migrate @ 5818]
Another big commit. Ugh. I need a very smart regexp.
Core/UI split do_error_dialog(), and soon the mail dialogs! Yay! This
should work without problems at all, but standard disclaimer..
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 18 May 2003 19:59:02 +0000 |
parents | 71927464a1db |
children | cce2d7868c78 |
comparison
equal
deleted
inserted
replaced
5435:a2f26666de42 | 5436:ad445074d239 |
---|---|
26 #include <sys/stat.h> | 26 #include <sys/stat.h> |
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 | 32 |
32 #define GAIM_GTKXFER(xfer) \ | 33 #define GAIM_GTKXFER(xfer) \ |
33 (struct gaim_gtkxfer_ui_data *)(xfer)->ui_data | 34 (struct gaim_gtkxfer_ui_data *)(xfer)->ui_data |
34 | 35 |
35 struct gaim_gtkxfer_dialog | 36 struct gaim_gtkxfer_dialog |
1004 /* File not found. */ | 1005 /* File not found. */ |
1005 if (gaim_xfer_get_type(xfer) == GAIM_XFER_RECEIVE) { | 1006 if (gaim_xfer_get_type(xfer) == GAIM_XFER_RECEIVE) { |
1006 gaim_xfer_request_accepted(xfer, g_strdup(name)); | 1007 gaim_xfer_request_accepted(xfer, g_strdup(name)); |
1007 } | 1008 } |
1008 else { | 1009 else { |
1009 do_error_dialog(_("That file does not exist."), | 1010 gaim_notify_error(NULL, NULL, |
1010 NULL, GAIM_ERROR); | 1011 _("That file does not exist."), NULL); |
1011 | 1012 |
1012 gaim_xfer_request_denied(xfer); | 1013 gaim_xfer_request_denied(xfer); |
1013 } | 1014 } |
1014 } | 1015 } |
1015 else if ((gaim_xfer_get_type(xfer) == GAIM_XFER_SEND) && (st.st_size == 0)) { | 1016 else if ((gaim_xfer_get_type(xfer) == GAIM_XFER_SEND) && (st.st_size == 0)) { |
1016 do_error_dialog(_("Can not send a file of 0 bytes."), NULL, GAIM_ERROR); | 1017 gaim_notify_error(NULL, NULL, |
1018 _("Cannot send a file of 0 bytes."), NULL); | |
1017 | 1019 |
1018 gaim_xfer_request_denied(xfer); | 1020 gaim_xfer_request_denied(xfer); |
1019 } | 1021 } |
1020 else { | 1022 else { |
1021 if (S_ISDIR(st.st_mode)) { | 1023 if (S_ISDIR(st.st_mode)) { |