Commit 27a025f0 authored by Cosimo Cecchi's avatar Cosimo Cecchi Committed by Cosimo Cecchi

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
parent d81d3181
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.
......
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment