mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-24 18:25:50 +00:00
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:
parent
d81d318135
commit
27a025f096
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue