[tracker/gdbus-porting: 9/65] libtracker-miner: Fix tracker-thumbnailer.c GDBus port



commit 1cb42956f151240fef34c11a7b16d5228fd4398b
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Dec 30 12:05:28 2010 +0100

    libtracker-miner: Fix tracker-thumbnailer.c GDBus port

 src/libtracker-miner/tracker-thumbnailer.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-thumbnailer.c b/src/libtracker-miner/tracker-thumbnailer.c
index 857238b..c19e55a 100644
--- a/src/libtracker-miner/tracker-thumbnailer.c
+++ b/src/libtracker-miner/tracker-thumbnailer.c
@@ -206,7 +206,7 @@ error_handler:
 		GStrv mime_types = NULL;
 		GStrv uri_schemes = NULL;
 
-		g_variant_get (v, "asas", &mime_types, &uri_schemes);
+		g_variant_get (v, "(^as^as)", &uri_schemes, &mime_types);
 
 		if (mime_types) {
 			GHashTable *hash;
@@ -240,6 +240,9 @@ error_handler:
 			private->service_is_available = TRUE;
 		}
 
+		g_strfreev (mime_types);
+		g_strfreev (uri_schemes);
+
 		g_variant_unref (v);
 	}
 
@@ -400,7 +403,7 @@ tracker_thumbnailer_send (void)
 
 		g_dbus_proxy_call (private->cache_proxy,
 		                   "Move",
-		                   g_variant_new ("asas", from_strv, to_strv),
+		                   g_variant_new ("(asas)", from_strv, to_strv),
 		                   G_DBUS_CALL_FLAGS_NONE,
 		                   -1,
 		                   NULL,



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