comparison src/gtk/menu-items.c @ 186:13ca1defdc75

2003-6-16 Brian Masney <masneyb@gftp.org> * lib/gftp.h src/text/gftp-text.c src/gtk/misc-gtk.c - changed 2nd parameter of logging function to be a request structure, instead of request->user_data. In the logging functions, if the string isn't in UTF-8, convert it with gftp_string_to_utf8() * lib/bookmark.c lib/cache.c lib/gftp.h lib/https.c lib/local.c lib/protocols.c lib/rfc2068.c lib/rfc959.c lib/sshv2.c lib/sslcommon.c src/gtk/chmod_dialog.c src/gtk/delete_dialog.c src/gtk/gftp-gtk.h src/gtk/menu-items.c src/gtk/misc-gtk.c src/gtk/mkdir_dialog.c src/gtk/rename_dialog.c src/gtk/transfer.c src/text/gftp-text.c src/gtk/gftp-gtk.h src/text/gftp-text.h - pass request structure to logging function instead of request->user_data
author masneyb
date Tue, 17 Jun 2003 10:49:16 +0000
parents 33b394ebba68
children 3fa7b4f4ab78
comparison
equal deleted inserted replaced
185:cc94bd62d290 186:13ca1defdc75
424 } 424 }
425 else 425 else
426 { 426 {
427 gftp_disconnect (wdata->request); 427 gftp_disconnect (wdata->request);
428 wdata->request->logging_function (gftp_logging_error, 428 wdata->request->logging_function (gftp_logging_error,
429 wdata->request->user_data, 429 wdata->request,
430 _("Operation canceled\n")); 430 _("Operation canceled\n"));
431 } 431 }
432 432
433 if (wdata->request->use_threads) 433 if (wdata->request->use_threads)
434 use_jmp_environment = 0; 434 use_jmp_environment = 0;
614 pos = txt; 614 pos = txt;
615 do 615 do
616 { 616 {
617 if ((len = write (fd, pos, textlen)) == -1) 617 if ((len = write (fd, pos, textlen)) == -1)
618 { 618 {
619 ftp_log (gftp_logging_misc, NULL, _("Error: Error writing to %s: %s\n"), tempstr, g_strerror (errno)); 619 ftp_log (gftp_logging_misc, NULL,
620 _("Error: Error writing to %s: %s\n"),
621 tempstr, g_strerror (errno));
620 break; 622 break;
621 } 623 }
622 textlen -= len; 624 textlen -= len;
623 pos += len; 625 pos += len;
624 } while (textlen > 0); 626 } while (textlen > 0);
670 do 672 do
671 { 673 {
672 if ((len = write (fileno (fd), pos, textlen)) == -1) 674 if ((len = write (fileno (fd), pos, textlen)) == -1)
673 { 675 {
674 ok = 0; 676 ok = 0;
675 ftp_log (gftp_logging_misc, NULL, _("Error: Error writing to %s: %s\n"), filename, g_strerror (errno)); 677 ftp_log (gftp_logging_misc, NULL,
678 _("Error: Error writing to %s: %s\n"),
679 filename, g_strerror (errno));
676 break; 680 break;
677 } 681 }
678 682
679 textlen -= len; 683 textlen -= len;
680 pos += len; 684 pos += len;