diff src/gtk/menu-items.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 2366865be140
children 49cfbe02926b
line wrap: on
line diff
--- a/src/gtk/menu-items.c	Tue Jan 25 01:55:01 2005 +0000
+++ b/src/gtk/menu-items.c	Tue Jan 25 02:34:19 2005 +0000
@@ -33,7 +33,7 @@
   edttext = gtk_entry_get_text (GTK_ENTRY (ddata->edit));
   if (*edttext == '\0')
     {
-      ftp_log (gftp_logging_misc, NULL,
+      ftp_log (gftp_logging_error, NULL,
                _("Change Filespec: Operation canceled...you must enter a string\n"));
       return;
     }
@@ -101,7 +101,7 @@
   filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (str->filew));
   if ((fd = fopen (filename, "w")) == NULL)
     {
-      ftp_log (gftp_logging_misc, NULL, 
+      ftp_log (gftp_logging_error, NULL, 
                _("Error: Cannot open %s for writing: %s\n"), filename, 
                g_strerror (errno));
       return;
@@ -309,7 +309,7 @@
   tempstr = g_strconcat (g_get_tmp_dir (), "/gftp-view.XXXXXXXXXX", NULL);
   if ((fd = mkstemp (tempstr)) < 0)
     {
-      ftp_log (gftp_logging_misc, NULL, 
+      ftp_log (gftp_logging_error, NULL, 
                _("Error: Cannot open %s for writing: %s\n"), tempstr, 
                g_strerror (errno));
       g_free (tempstr); 
@@ -337,7 +337,7 @@
     {
       if ((len = write (fd, pos, textlen)) == -1)
         { 
-          ftp_log (gftp_logging_misc, NULL, 
+          ftp_log (gftp_logging_error, NULL, 
                    _("Error: Error writing to %s: %s\n"), 
                    tempstr, g_strerror (errno));
           break;
@@ -373,7 +373,7 @@
   filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs));
   if ((fd = fopen (filename, "w")) == NULL)
     {
-      ftp_log (gftp_logging_misc, NULL, 
+      ftp_log (gftp_logging_error, NULL, 
                _("Error: Cannot open %s for writing: %s\n"), filename, 
                g_strerror (errno));
       return;
@@ -401,7 +401,7 @@
       if ((len = write (fileno (fd), pos, textlen)) == -1)
         {
           ok = 0;
-          ftp_log (gftp_logging_misc, NULL, 
+          ftp_log (gftp_logging_error, NULL, 
                    _("Error: Error writing to %s: %s\n"), 
                    filename, g_strerror (errno));
           break;