[tracker/gdbus-porting] Implement Associated property of tracker-miner-web.c
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus-porting] Implement Associated property of tracker-miner-web.c
- Date: Thu, 30 Dec 2010 16:34:18 +0000 (UTC)
commit f3c857ef4826b3c0f9d77a3dfe1b0c82008c368b
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Dec 30 17:14:21 2010 +0100
Implement 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 b655513..6ffcdea 100644
--- a/src/libtracker-miner/tracker-miner-web.c
+++ b/src/libtracker-miner/tracker-miner-web.c
@@ -389,8 +389,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]