Mercurial > gftp.yaz
diff src/gtk/view_dialog.c @ 677:8990a8a26ccf
2005-1-24 Brian Masney <masneyb@gftp.org>
* lib/protocols.c lib/rfc959.c src/gtk/dnd.c src/gtk/gftp-gtk.c
src/gtk/gtkui.c src/gtk/menu-items.c src/gtk/misc-gtk.c
src/gtk/transfer.c src/gtk/view-dialog.c src/uicommon/gftpui.c - make
sure the logging level gftp_logging_error is used for all error messages
author | masneyb |
---|---|
date | Tue, 25 Jan 2005 02:34:19 +0000 |
parents | fa0838b22b14 |
children | 49cfbe02926b |
line wrap: on
line diff
--- a/src/gtk/view_dialog.c Tue Jan 25 01:55:01 2005 +0000 +++ b/src/gtk/view_dialog.c Tue Jan 25 02:34:19 2005 +0000 @@ -44,7 +44,7 @@ if (S_ISDIR (curfle->st_mode)) { - ftp_log (gftp_logging_misc, NULL, + ftp_log (gftp_logging_error, NULL, _("View: %s is a directory. Cannot view it.\n"), curfle->file); return; } @@ -72,7 +72,7 @@ if (new_fle->fd < 0) { - ftp_log (gftp_logging_misc, NULL, + ftp_log (gftp_logging_error, NULL, _("Error: Cannot open %s for writing: %s\n"), new_fle->destfile, g_strerror (errno)); gftp_file_destroy (new_fle, 1); @@ -110,7 +110,7 @@ if (*edit_program == '\0') { - ftp_log (gftp_logging_misc, NULL, + ftp_log (gftp_logging_error, NULL, _("Edit: You must specify an editor in the options dialog\n")); return; } @@ -123,7 +123,7 @@ if (S_ISDIR (curfle->st_mode)) { - ftp_log (gftp_logging_misc, NULL, + ftp_log (gftp_logging_error, NULL, _("Edit: %s is a directory. Cannot edit it.\n"), curfle->file); return; } @@ -151,7 +151,7 @@ if (new_fle->fd < 0) { - ftp_log (gftp_logging_misc, NULL, + ftp_log (gftp_logging_error, NULL, _("Error: Cannot open %s for writing: %s\n"), new_fle->destfile, g_strerror (errno)); gftp_file_destroy (new_fle, 1); @@ -309,7 +309,7 @@ { if ((fd = open (filename, O_RDONLY)) < 0) { - ftp_log (gftp_logging_misc, NULL, + ftp_log (gftp_logging_error, NULL, _("View: Cannot open file %s: %s\n"), filename, g_strerror (errno)); return;