nautilus r14941 - in trunk: . libnautilus-private



Author: cosimoc
Date: Fri Feb 13 14:43:04 2009
New Revision: 14941
URL: http://svn.gnome.org/viewvc/nautilus?rev=14941&view=rev

Log:
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).


Modified:
   trunk/ChangeLog
   trunk/libnautilus-private/nautilus-file.c
   trunk/libnautilus-private/nautilus-vfs-file.c

Modified: trunk/libnautilus-private/nautilus-file.c
==============================================================================
--- trunk/libnautilus-private/nautilus-file.c	(original)
+++ trunk/libnautilus-private/nautilus-file.c	Fri Feb 13 14:43:04 2009
@@ -881,8 +881,8 @@
 	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);
 		}

Modified: trunk/libnautilus-private/nautilus-vfs-file.c
==============================================================================
--- trunk/libnautilus-private/nautilus-vfs-file.c	(original)
+++ trunk/libnautilus-private/nautilus-vfs-file.c	Fri Feb 13 14:43:04 2009
@@ -260,8 +260,8 @@
 	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);
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]