[Xfce4-commits] [apps/gigolo] 03/35: Use gtk_mount_operation_new() instead of our own wrapper

noreply at xfce.org noreply at xfce.org
Mon Oct 31 18:18:37 CET 2016


This is an automated email from the git hooks/post-receive script.

landry pushed a commit to branch master
in repository apps/gigolo.

commit fe55392049e4cc3b21cd43493ecdc84fae70ddf4
Author: Landry Breuil <landry at xfce.org>
Date:   Fri Jun 17 22:37:33 2016 +0200

    Use gtk_mount_operation_new() instead of our own wrapper
---
 src/backendgvfs.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/backendgvfs.c b/src/backendgvfs.c
index f52dce9..f2cc598 100644
--- a/src/backendgvfs.c
+++ b/src/backendgvfs.c
@@ -28,7 +28,6 @@
 #include "bookmark.h"
 #include "settings.h"
 #include "window.h"
-#include "mountoperation.h"
 
 typedef struct _GigoloBackendGVFSPrivate			GigoloBackendGVFSPrivate;
 
@@ -513,7 +512,7 @@ gboolean gigolo_backend_gvfs_mount_volume(GigoloBackendGVFS *backend, GtkWindow
 
 	if (! G_IS_MOUNT(vol) && G_IS_VOLUME(vol) && g_volume_can_mount(G_VOLUME(vol)))
 	{
-		GMountOperation *op = gigolo_mount_operation_new(window);
+		GMountOperation *op = gtk_mount_operation_new(window);
 
 		g_volume_mount(G_VOLUME(vol), G_MOUNT_MOUNT_NONE, op, NULL, volume_mount_finished_cb, backend);
 
@@ -535,7 +534,7 @@ void gigolo_backend_gvfs_unmount_mount(GigoloBackendGVFS *backend, gpointer moun
 	g_return_if_fail(mount != NULL);
 
 #if GLIB_CHECK_VERSION(2, 22, 0)
-	op = gigolo_mount_operation_new(parent);
+	op = gtk_mount_operation_new(parent);
 	g_mount_unmount_with_operation(
 		G_MOUNT(mount), G_MOUNT_UNMOUNT_NONE, op, NULL, unmount_finished_cb, backend);
 	g_object_unref(op);
@@ -593,7 +592,7 @@ void gigolo_backend_gvfs_mount_uri(GigoloBackendGVFS *backend, const gchar *uri,
 	g_return_if_fail(uri != NULL);
 	g_return_if_fail(backend != NULL);
 
-	op = gigolo_mount_operation_new(GTK_WINDOW(parent));
+	op = gtk_mount_operation_new(GTK_WINDOW(parent));
 	file = g_file_new_for_uri(uri);
 	mi = g_new0(MountInfo, 1);
 	mi->self = backend;
@@ -714,7 +713,7 @@ static void browse_network_real(BrowseData *bd)
 	{
 		if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_NOT_MOUNTED))
 		{
-			GMountOperation *op = gigolo_mount_operation_new(bd->parent);
+			GMountOperation *op = gtk_mount_operation_new(bd->parent);
 			/* if the URI wasn't mounted yet, mount it and try again from the mount ready callback */
 			g_file_mount_enclosing_volume(file, G_MOUNT_MOUNT_NONE, op, NULL,
 				(GAsyncReadyCallback) browse_network_mount_ready_cb, bd);
@@ -850,7 +849,7 @@ static void browse_host_real(BrowseData *bd)
 	{
 		if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_NOT_MOUNTED))
 		{
-			GMountOperation *op = gigolo_mount_operation_new(bd->parent);
+			GMountOperation *op = gtk_mount_operation_new(bd->parent);
 			/* if the URI wasn't mounted yet, mount it and try again from the mount ready callback */
 			g_file_mount_enclosing_volume(file, G_MOUNT_MOUNT_NONE, op, NULL,
 				(GAsyncReadyCallback) browse_network_mount_ready_cb, bd);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list