static void mojito_item_view_constructed (GObject *object) { MojitoItemView *item_view = MOJITO_ITEM_VIEW (object); MojitoItemViewPrivate *priv = GET_PRIVATE (object); MojitoCore *core; core = mojito_core_dup_singleton (); priv->object_path = _make_object_path (item_view); dbus_g_connection_register_g_object (mojito_core_get_connection (core), priv->object_path, G_OBJECT (item_view)); g_object_unref (core); if (G_OBJECT_CLASS (mojito_item_view_parent_class)->constructed) G_OBJECT_CLASS (mojito_item_view_parent_class)->constructed (object); }
static void sw_item_stream_constructed (GObject *object) { SwItemStream *item_stream = SW_ITEM_STREAM (object); SwItemStreamPrivate *priv = GET_PRIVATE (object); SwCore *core; core = sw_core_dup_singleton (); priv->object_path = _make_object_path (item_stream); dbus_g_connection_register_g_object (sw_core_get_connection (core), priv->object_path, G_OBJECT (item_stream)); g_object_unref (core); /* The only reference should be the one on the bus */ if (G_OBJECT_CLASS (sw_item_stream_parent_class)->constructed) G_OBJECT_CLASS (sw_item_stream_parent_class)->constructed (object); }