Commit 25698bb0 authored by Zeeshan Ali's avatar Zeeshan Ali

service-client: Export rather than register the object

Turns out that only registering the object does not mean that it will
not be visible to the public. Also not exporting breaks signals.
parent 2271347f
......@@ -173,16 +173,12 @@ gclue_service_client_initable_init (GInitable *initable,
GCancellable *cancellable,
GError **error)
{
GDBusInterfaceSkeleton *skeleton = G_DBUS_INTERFACE_SKELETON (initable);
return (g_dbus_connection_register_object
(GCLUE_SERVICE_CLIENT (initable)->priv->connection,
GCLUE_SERVICE_CLIENT (initable)->priv->path,
g_dbus_interface_skeleton_get_info (skeleton),
g_dbus_interface_skeleton_get_vtable (skeleton),
initable,
NULL,
error) != 0);
return g_dbus_interface_skeleton_export
(G_DBUS_INTERFACE_SKELETON (initable),
GCLUE_SERVICE_CLIENT (initable)->priv->connection,
GCLUE_SERVICE_CLIENT (initable)->priv->path,
error);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment