String fixes
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 25 Jan 2008 06:10:29 +0000 (06:10 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 25 Jan 2008 06:10:29 +0000 (06:10 +0000)
svn path=/trunk/; revision=6370

gio/ChangeLog
gio/gbufferedinputstream.c
gio/ginputstream.c
gio/glocalfile.c
gio/goutputstream.c

index c763c9e..ff898de 100644 (file)
@@ -1,3 +1,11 @@
+2008-01-25  Matthias Clasen  <mclasen@redhat.com>
+
+       * ginputstream.c:
+       * goutputstream.c:
+       * gbufferedinputstream.c:
+       * glocalfile.c: String improvements.  (#511966, 
+        Theppitak Karoonboonyanan)
+
 2008-01-24  Matthias Clasen  <mclasen@redhat.com>
 
        * gioscheduler.h: Expand docs a bit.
index 6cc537e..f011be5 100644 (file)
@@ -480,7 +480,8 @@ g_buffered_input_stream_fill_async (GBufferedInputStream *stream,
                                           callback,
                                           user_data,
                                           G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                                          _("Too large count value passed to g_input_stream_read_async"));
+                                          _("Too large count value passed to %s"),
+                                          G_GNUC_PRETTY_FUNCTION);
       return;
     }
   
index 33497a9..5c0da37 100644 (file)
@@ -183,7 +183,8 @@ g_input_stream_read  (GInputStream  *stream,
   if (((gssize) count) < 0)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                  _("Too large count value passed to g_input_stream_read"));
+                  _("Too large count value passed to %s"), 
+                   G_GNUC_PRETTY_FUNCTION);
       return -1;
     }
 
@@ -315,7 +316,8 @@ g_input_stream_skip (GInputStream  *stream,
   if (((gssize) count) < 0)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                  _("Too large count value passed to g_input_stream_skip"));
+                  _("Too large count value passed to %s"),
+                  G_GNUC_PRETTY_FUNCTION);
       return -1;
     }
   
@@ -556,7 +558,8 @@ g_input_stream_read_async (GInputStream        *stream,
                                           callback,
                                           user_data,
                                           G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                                          _("Too large count value passed to g_input_stream_read_async"));
+                                          _("Too large count value passed to %s"),
+                                          G_GNUC_PRETTY_FUNCTION);
       return;
     }
 
@@ -680,7 +683,8 @@ g_input_stream_skip_async (GInputStream        *stream,
                                           callback,
                                           user_data,
                                           G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                                          _("Too large count value passed to g_input_stream_skip_async"));
+                                          _("Too large count value passed to %s"),
+                                          G_GNUC_PRETTY_FUNCTION);
       return;
     }
 
index ae856b6..29b1891 100644 (file)
@@ -1626,7 +1626,7 @@ g_local_file_trash (GFile         *file,
       
       g_set_error (error, G_IO_ERROR,
                   g_io_error_from_errno (errno),
-                  _("Unable to create trashed file: %s"),
+                  _("Unable to create trashing info file: %s"),
                   g_strerror (errno));
       return FALSE;
     }
index bf9e82a..c1bb8b2 100644 (file)
@@ -190,7 +190,8 @@ g_output_stream_write (GOutputStream  *stream,
   if (((gssize) count) < 0)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                  _("Too large count value passed to g_output_stream_write"));
+                  _("Too large count value passed to %s"),
+                  G_GNUC_PRETTY_FUNCTION);
       return -1;
     }
 
@@ -644,7 +645,8 @@ g_output_stream_write_async (GOutputStream       *stream,
                                           callback,
                                           user_data,
                                           G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                                          _("Too large count value passed to g_output_stream_write_async"));
+                                          _("Too large count value passed to %s"),
+                                          G_GNUC_PRETTY_FUNCTION);
       return;
     }