summaryrefslogtreecommitdiff
path: root/libview/ev-form-field-accessible.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-10 13:36:46 +0200
committerlukefromdc <[email protected]>2019-08-16 20:47:41 +0000
commit278c2e0bf810089e1df7a85022cc1b77f198105e (patch)
treee3b243cb1729875de12c1ebc2b21adf5b4b9b17b /libview/ev-form-field-accessible.c
parentae96197d910d90fe8729b8fbcdd2841c99874660 (diff)
downloadatril-278c2e0bf810089e1df7a85022cc1b77f198105e.tar.bz2
atril-278c2e0bf810089e1df7a85022cc1b77f198105e.tar.xz
ev-form-field-accessible: avoid 'g_type_class_add_private'
Diffstat (limited to 'libview/ev-form-field-accessible.c')
-rw-r--r--libview/ev-form-field-accessible.c5
1 files changed, 2 insertions, 3 deletions
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*