From 278c2e0bf810089e1df7a85022cc1b77f198105e Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sat, 10 Aug 2019 13:36:46 +0200 Subject: ev-form-field-accessible: avoid 'g_type_class_add_private' --- libview/ev-form-field-accessible.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libview') diff --git a/libview/ev-form-field-accessible.c b/libview/ev-form-field-accessible.c index 2daeceda..e5c3c325 100644 --- a/libview/ev-form-field-accessible.c +++ b/libview/ev-form-field-accessible.c @@ -33,6 +33,7 @@ struct _EvFormFieldAccessiblePrivate { static void ev_form_field_accessible_component_iface_init (AtkComponentIface *iface); G_DEFINE_TYPE_WITH_CODE (EvFormFieldAccessible, ev_form_field_accessible, ATK_TYPE_OBJECT, + G_ADD_PRIVATE (EvFormFieldAccessible) G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, ev_form_field_accessible_component_iface_init)) static void @@ -215,14 +216,12 @@ ev_form_field_accessible_class_init (EvFormFieldAccessibleClass *klass) atk_class->get_parent = ev_form_field_accessible_get_parent; atk_class->get_role = ev_form_field_accessible_get_role; atk_class->ref_state_set = ev_form_field_accessible_ref_state_set; - - g_type_class_add_private (klass, sizeof (EvFormFieldAccessiblePrivate)); } static void ev_form_field_accessible_init (EvFormFieldAccessible *accessible) { - accessible->priv = G_TYPE_INSTANCE_GET_PRIVATE (accessible, EV_TYPE_FORM_FIELD_ACCESSIBLE, EvFormFieldAccessiblePrivate); + accessible->priv = ev_form_field_accessible_get_instance_private (accessible); } EvFormFieldAccessible* -- cgit v1.2.1