Make new strings reuse old ones.

2008-02-25  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
	Make new strings reuse old ones.


svn path=/trunk/; revision=6581
This commit is contained in:
Alexander Larsson 2008-02-25 09:11:09 +00:00 committed by Alexander Larsson
parent 96b70c129a
commit 493cbfa607
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-02-25 Alexander Larsson <alexl@redhat.com>
* glocalfile.c:
Make new strings reuse old ones.
2008-02-25 Alexander Larsson <alexl@redhat.com> 2008-02-25 Alexander Larsson <alexl@redhat.com>
* glocalfile.c: * glocalfile.c:

View File

@ -1853,14 +1853,14 @@ g_local_file_trash (GFile *file,
g_set_error (error, G_IO_ERROR, g_set_error (error, G_IO_ERROR,
G_IO_ERROR_CANCELLED, G_IO_ERROR_CANCELLED,
_("Unable to trash file: %s"), _("Unable to trash file: %s"),
_("cancelled")); _("Operation was cancelled"));
success = FALSE; success = FALSE;
} }
else if (!success) else if (!success)
g_set_error (error, G_IO_ERROR, g_set_error (error, G_IO_ERROR,
G_IO_ERROR_FAILED, G_IO_ERROR_FAILED,
_("Unable to trash file: %s"), _("Unable to trash file: %s"),
_("failed")); _("internal error"));
g_free (wfilename); g_free (wfilename);
return success; return success;