[tracker/gdbus: 25/92] libtracker-miner: Impl. 'Associated' property of tracker-miner-web.c



commit 22434ed3f87c15cbfae35438a5d6295f62de8da6
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Dec 30 17:14:21 2010 +0100

    libtracker-miner: Impl. 'Associated' property of tracker-miner-web.c

 src/libtracker-miner/tracker-miner-web.c |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-web.c b/src/libtracker-miner/tracker-miner-web.c
index e2c51c7..578bcea 100644
--- a/src/libtracker-miner/tracker-miner-web.c
+++ b/src/libtracker-miner/tracker-miner-web.c
@@ -364,8 +364,19 @@ handle_get_property (GDBusConnection  *connection,
                      GError          **error,
                      gpointer          user_data)
 {
-	g_assert_not_reached ();
-	return NULL;
+	GVariant *ret = NULL;
+	TrackerMinerWeb *miner = user_data;
+	TrackerMinerWebPrivate *priv;
+
+	priv = TRACKER_MINER_WEB_GET_PRIVATE (miner);
+
+	if (g_strcmp0 (property_name, "Associated") == 0) {
+		ret = g_variant_new ("(b)", priv->associated);
+	} else {
+		g_assert_not_reached ();
+	}
+
+	return ret;
 }
 
 static gboolean



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