use g_set_error_literal() where appropriate. Patch by Christian Persch

2009-02-13  Cosimo Cecchi  <cosimoc@gnome.org>

	* libnautilus-private/nautilus-file.c: (nautilus_file_mount):
	* libnautilus-private/nautilus-vfs-file.c: (vfs_file_mount):
	use g_set_error_literal() where appropriate.
	Patch by Christian Persch (#570537).

svn path=/trunk/; revision=14941
This commit is contained in:
Cosimo Cecchi 2009-02-13 14:43:04 +00:00 committed by Cosimo Cecchi
parent d81d318135
commit 27a025f096
3 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2009-02-13 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-file.c: (nautilus_file_mount):
* libnautilus-private/nautilus-vfs-file.c: (vfs_file_mount):
use g_set_error_literal() where appropriate.
Patch by Christian Persch (#570537).
2009-02-13 Cosimo Cecchi <cosimoc@gnome.org>
* configure.in: require intltool 0.40.1.

View file

@ -881,8 +881,8 @@ nautilus_file_mount (NautilusFile *file,
if (NAUTILUS_FILE_GET_CLASS (file)->mount == NULL) {
if (callback) {
error = NULL;
g_set_error (&error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
_("This file cannot be mounted"));
g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
_("This file cannot be mounted"));
callback (file, NULL, error, callback_data);
g_error_free (error);
}

View file

@ -260,8 +260,8 @@ vfs_file_mount (NautilusFile *file,
if (file->details->type != G_FILE_TYPE_MOUNTABLE) {
if (callback) {
error = NULL;
g_set_error (&error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
_("This file cannot be mounted"));
g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
_("This file cannot be mounted"));
callback (file, NULL, error, callback_data);
g_error_free (error);
}