gimp r28234 - in trunk: . plug-ins/file-uri
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r28234 - in trunk: . plug-ins/file-uri
- Date: Tue, 31 Mar 2009 09:52:59 +0000 (UTC)
Author: neo
Date: Tue Mar 31 09:52:58 2009
New Revision: 28234
URL: http://svn.gnome.org/viewvc/gimp?rev=28234&view=rev
Log:
2009-03-31 Sven Neumann <sven gimp org>
* plug-ins/file-uri/uri-backend-gvfs.c (copy_uri): simplified the
code.
Modified:
trunk/ChangeLog
trunk/plug-ins/file-uri/uri-backend-gvfs.c
Modified: trunk/plug-ins/file-uri/uri-backend-gvfs.c
==============================================================================
--- trunk/plug-ins/file-uri/uri-backend-gvfs.c (original)
+++ trunk/plug-ins/file-uri/uri-backend-gvfs.c Tue Mar 31 09:52:58 2009
@@ -274,28 +274,18 @@
GimpRunMode run_mode,
GError **error)
{
- GVfs *vfs;
GFile *src_file;
GFile *dest_file;
UriProgress progress = { 0, };
gboolean success;
- vfs = g_vfs_get_default ();
-
- if (! g_vfs_is_active (vfs))
- {
- g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- "Initialization of GVfs failed");
- return FALSE;
- }
-
- src_file = g_vfs_get_file_for_uri (vfs, src_uri);
- dest_file = g_vfs_get_file_for_uri (vfs, dest_uri);
-
gimp_progress_init (_("Connecting to server"));
progress.mode = mode;
+ src_file = g_file_new_for_uri (src_uri);
+ dest_file = g_file_new_for_uri (dest_uri);
+
success = g_file_copy (src_file, dest_file, G_FILE_COPY_OVERWRITE, NULL,
uri_progress_callback, &progress,
error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]