[tracker/gdbus-porting: 64/65] libtracker-miner: Fix tracker_miner_manager_pause



commit 2b675a99040bac7bb2d5c50ff659b1799a0531ec
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jan 5 17:19:19 2011 +0100

    libtracker-miner: Fix tracker_miner_manager_pause

 src/libtracker-miner/tracker-miner-manager.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-manager.c b/src/libtracker-miner/tracker-miner-manager.c
index 78b1037..987fc2c 100644
--- a/src/libtracker-miner/tracker-miner-manager.c
+++ b/src/libtracker-miner/tracker-miner-manager.c
@@ -687,7 +687,7 @@ tracker_miner_manager_pause (TrackerMinerManager *manager,
 
 	v = g_dbus_proxy_call_sync (proxy,
 	                            "Pause",
-	                            g_variant_new ("(ssi)", app_name, reason, (gint) cookie),
+	                            g_variant_new ("(ss)", app_name, reason),
 	                            G_DBUS_CALL_FLAGS_NONE,
 	                            -1,
 	                            NULL,
@@ -699,6 +699,10 @@ tracker_miner_manager_pause (TrackerMinerManager *manager,
 		return FALSE;
 	}
 
+	if (cookie) {
+		g_variant_get (v, "(i)", cookie);
+	}
+
 	g_variant_unref (v);
 
 	return TRUE;



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