[totem-pl-parser] Remove deprecated Glib symbols



commit 4ee3fbc5cfe266858a950820bd23befc3518aab4
Author: Andre Klapper <a9016009 gmx de>
Date:   Fri Jan 8 16:42:39 2010 +0100

    Remove deprecated Glib symbols
    
    Replace g_mount_unmount_finish() with g_mount_unmount_with_operation_finish()
    and g_mount_unmount() with g_mount_unmount_with_operation()
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=602550

 plparse/totem-disc.c |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/plparse/totem-disc.c b/plparse/totem-disc.c
index 35085ce..5b71923 100644
--- a/plparse/totem-disc.c
+++ b/plparse/totem-disc.c
@@ -523,8 +523,8 @@ cd_cache_unmount_callback (GObject *source_object,
 			   GAsyncResult *res,
 			   CdCacheCallbackData *data)
 {
-  data->result = g_mount_unmount_finish (G_MOUNT (source_object),
-					 res, NULL);
+  data->result = g_mount_unmount_with_operation_finish (G_MOUNT (source_object),
+                                                        res, NULL);
   data->called = TRUE;
 }
 
@@ -543,11 +543,13 @@ cd_cache_free (CdCache *cache)
 
       memset (&data, 0, sizeof(data));
 
-      g_mount_unmount (mount,
-		       G_MOUNT_UNMOUNT_NONE,
-		       NULL,
-		      (GAsyncReadyCallback) cd_cache_unmount_callback,
-		      &data);
+      g_mount_unmount_with_operation (mount,
+                                      G_MOUNT_UNMOUNT_NONE,
+                                      NULL,
+                                      NULL,
+                                      (GAsyncReadyCallback) cd_cache_unmount_callback,
+                                      &data);
+
       while (!data.called) g_main_context_iteration (NULL, TRUE);
       g_object_unref (mount);
     }



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