[tracker/gdbus: 47/101] libtracker-miner: Move interface_vtable into function it is used in



commit 38820c67a68e1a63298f99f20f20d3356bfa9bfd
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Jan 4 12:29:48 2011 +0000

    libtracker-miner: Move interface_vtable into function it is used in

 src/libtracker-miner/tracker-miner-web.c |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-web.c b/src/libtracker-miner/tracker-miner-web.c
index 5a1d481..70fb9fa 100644
--- a/src/libtracker-miner/tracker-miner-web.c
+++ b/src/libtracker-miner/tracker-miner-web.c
@@ -394,18 +394,17 @@ handle_set_property (GDBusConnection  *connection,
 	return TRUE;
 }
 
-static const GDBusInterfaceVTable interface_vtable = {
-	handle_method_call,
-	handle_get_property,
-	handle_set_property
-};
-
 static void
 miner_web_constructed (GObject *miner)
 {
 	TrackerMinerWebPrivate *priv;
 	gchar *name, *full_path, *full_name;
 	GError *error = NULL;
+	GDBusInterfaceVTable interface_vtable = {
+		handle_method_call,
+		handle_get_property,
+		handle_set_property
+	};
 
 	priv = TRACKER_MINER_WEB_GET_PRIVATE (miner);
 
@@ -445,12 +444,12 @@ miner_web_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]