Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
String fixes
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=6370
  • Loading branch information
Matthias Clasen committed Jan 25, 2008
1 parent c3d7de6 commit af7645a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
8 changes: 8 additions & 0 deletions gio/ChangeLog
@@ -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.
Expand Down
3 changes: 2 additions & 1 deletion gio/gbufferedinputstream.c
Expand Up @@ -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;
}

Expand Down
12 changes: 8 additions & 4 deletions gio/ginputstream.c
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion gio/glocalfile.c
Expand Up @@ -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;
}
Expand Down
6 changes: 4 additions & 2 deletions gio/goutputstream.c
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit af7645a

Please sign in to comment.