[tracker/gdbus-porting: 47/65] tracker-miner-fs: 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-porting: 47/65] tracker-miner-fs: Move interface_vtable into function it is used in
- Date: Wed, 5 Jan 2011 16:37:05 +0000 (UTC)
commit a2b8e03e6590774d09a79cf57ba2830f34454183
Author: Martyn Russell <martyn lanedo com>
Date: Tue Jan 4 15:25:50 2011 +0000
tracker-miner-fs: Move interface_vtable into function it is used in
src/miners/fs/tracker-miner-files-index.c | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files-index.c b/src/miners/fs/tracker-miner-files-index.c
index de4629a..8a5b339 100644
--- a/src/miners/fs/tracker-miner-files-index.c
+++ b/src/miners/fs/tracker-miner-files-index.c
@@ -515,18 +515,17 @@ handle_set_property (GDBusConnection *connection,
return TRUE;
}
-static const GDBusInterfaceVTable interface_vtable = {
- handle_method_call,
- handle_get_property,
- handle_set_property
-};
-
static void
index_constructed (GObject *miner)
{
TrackerMinerFilesIndexPrivate *priv;
gchar *full_path, *full_name;
GError *error = NULL;
+ GDBusInterfaceVTable interface_vtable = {
+ handle_method_call,
+ handle_get_property,
+ handle_set_property
+ };
priv = TRACKER_MINER_FILES_INDEX_GET_PRIVATE (miner);
@@ -558,12 +557,12 @@ index_constructed (GObject *miner)
priv->registration_id =
g_dbus_connection_register_object (priv->d_connection,
- full_path,
- priv->introspection_data->interfaces[0],
- &interface_vtable,
- miner,
- NULL,
- &error);
+ full_path,
+ priv->introspection_data->interfaces[0],
+ &interface_vtable,
+ miner,
+ NULL,
+ &error);
if (error) {
g_critical ("Could not register the D-Bus object %s, %s",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]