[tracker/gdbus: 33/74] libtracker-miner: Move interface_vtable into function it is used in
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus: 33/74] libtracker-miner: Move interface_vtable into function it is used in
- Date: Fri, 14 Jan 2011 13:07:28 +0000 (UTC)
commit 6912444becb93e14a07334c513f04b1804ce267b
Author: Martyn Russell <martyn lanedo com>
Date: Tue Jan 4 11:11:11 2011 +0000
libtracker-miner: Move interface_vtable into function it is used in
src/libtracker-miner/tracker-miner-object.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-object.c b/src/libtracker-miner/tracker-miner-object.c
index 4fc4bea..14d0c05 100644
--- a/src/libtracker-miner/tracker-miner-object.c
+++ b/src/libtracker-miner/tracker-miner-object.c
@@ -931,12 +931,6 @@ handle_set_property (GDBusConnection *connection,
return TRUE;
}
-static const GDBusInterfaceVTable interface_vtable = {
- handle_method_call,
- handle_get_property,
- handle_set_property
-};
-
static void
on_tracker_store_appeared (GDBusConnection *connection,
const gchar *name,
@@ -995,10 +989,16 @@ on_tracker_store_disappeared (GDBusConnection *connection,
static void
miner_constructed (GObject *object)
{
- TrackerMiner *miner = TRACKER_MINER (object);
+ TrackerMiner *miner;
gchar *name, *full_path, *full_name;
GError *error = NULL;
+ GDBusInterfaceVTable interface_vtable = {
+ handle_method_call,
+ handle_get_property,
+ handle_set_property
+ };
+ miner = TRACKER_MINER (object);
miner->private->d_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
if (!miner->private->d_connection) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]