[tracker/libtracker-miner] TrackerMiner: emit Progress signals through DBus.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-miner] TrackerMiner: emit Progress signals through DBus.
- Date: Tue, 1 Sep 2009 16:00:22 +0000 (UTC)
commit 761c6cd7f67f0cb52800a91cd4b678aeab5a7a35
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Sep 1 13:46:23 2009 +0200
TrackerMiner: emit Progress signals through DBus.
src/libtracker-miner/tracker-miner.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner.c b/src/libtracker-miner/tracker-miner.c
index bf19b1b..bf2998a 100644
--- a/src/libtracker-miner/tracker-miner.c
+++ b/src/libtracker-miner/tracker-miner.c
@@ -219,6 +219,14 @@ tracker_miner_init (TrackerMiner *miner)
}
static void
+miner_update_progress (TrackerMiner *miner)
+{
+ g_signal_emit (miner, signals[PROGRESS], 0,
+ miner->private->status,
+ miner->private->progress);
+}
+
+static void
miner_set_property (GObject *object,
guint prop_id,
const GValue *value,
@@ -238,10 +246,11 @@ miner_set_property (GObject *object,
case PROP_STATUS:
g_free (miner->private->status);
miner->private->status = g_value_dup_string (value);
+ miner_update_progress (miner);
break;
case PROP_PROGRESS:
miner->private->progress = g_value_get_double (value);
- /* Do we signal here? */
+ miner_update_progress (miner);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]