diff options
Diffstat (limited to 'telepathy-glib/debug-sender.c')
-rw-r--r-- | telepathy-glib/debug-sender.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/telepathy-glib/debug-sender.c b/telepathy-glib/debug-sender.c index c5b190a66..14dc2c758 100644 --- a/telepathy-glib/debug-sender.c +++ b/telepathy-glib/debug-sender.c @@ -253,14 +253,6 @@ tp_debug_sender_class_init (TpDebugSenderClass *klass) { "Enabled", "enabled", "enabled" }, { NULL } }; - static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = { - { TP_IFACE_DEBUG1, - tp_dbus_properties_mixin_getter_gobject_properties, - tp_dbus_properties_mixin_setter_gobject_properties, - debug_props, - }, - { NULL } - }; g_type_class_add_private (klass, sizeof (TpDebugSenderPrivate)); @@ -283,9 +275,12 @@ tp_debug_sender_class_init (TpDebugSenderClass *klass) FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - klass->dbus_props_class.interfaces = prop_interfaces; - tp_dbus_properties_mixin_class_init (object_class, - G_STRUCT_OFFSET (TpDebugSenderClass, dbus_props_class)); + tp_dbus_properties_mixin_class_init (object_class, 0); + tp_dbus_properties_mixin_implement_interface (object_class, + TP_IFACE_QUARK_DEBUG1, + tp_dbus_properties_mixin_getter_gobject_properties, + tp_dbus_properties_mixin_setter_gobject_properties, + debug_props); } static void |