summaryrefslogtreecommitdiff
path: root/libview/ev-page-accessible.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-10 12:15:31 +0200
committerlukefromdc <[email protected]>2019-08-16 20:47:41 +0000
commit1cf7ae8b89199359fa1f245cacb2844de6c21ba9 (patch)
treeae4f3f157795e819f86668e6168dcf236d92da42 /libview/ev-page-accessible.c
parent02a0755f1c5fb98c05cb997a1e0cece4e7511148 (diff)
downloadatril-1cf7ae8b89199359fa1f245cacb2844de6c21ba9.tar.bz2
atril-1cf7ae8b89199359fa1f245cacb2844de6c21ba9.tar.xz
ev-page-accessible: avoid 'g_type_class_add_private'
Diffstat (limited to 'libview/ev-page-accessible.c')
-rw-r--r--libview/ev-page-accessible.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libview/ev-page-accessible.c b/libview/ev-page-accessible.c
index 8d07a31c..fba189c5 100644
--- a/libview/ev-page-accessible.c
+++ b/libview/ev-page-accessible.c
@@ -49,6 +49,7 @@ static void ev_page_accessible_hypertext_iface_init (AtkHypertextIface *iface);
static void ev_page_accessible_text_iface_init (AtkTextIface *iface);
G_DEFINE_TYPE_WITH_CODE (EvPageAccessible, ev_page_accessible, ATK_TYPE_OBJECT,
+ G_ADD_PRIVATE (EvPageAccessible)
G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, ev_page_accessible_component_iface_init)
G_IMPLEMENT_INTERFACE (ATK_TYPE_HYPERTEXT, ev_page_accessible_hypertext_iface_init)
G_IMPLEMENT_INTERFACE (ATK_TYPE_TEXT, ev_page_accessible_text_iface_init))
@@ -349,8 +350,6 @@ ev_page_accessible_class_init (EvPageAccessibleClass *klass)
GObjectClass *g_object_class = G_OBJECT_CLASS (klass);
AtkObjectClass *atk_class = ATK_OBJECT_CLASS (klass);
- g_type_class_add_private (klass, sizeof (EvPageAccessiblePrivate));
-
atk_class->get_parent = ev_page_accessible_get_parent;
atk_class->ref_relation_set = ev_page_accessible_ref_relation_set;
atk_class->ref_state_set = ev_page_accessible_ref_state_set;
@@ -1050,7 +1049,7 @@ ev_page_accessible_init (EvPageAccessible *page)
{
atk_object_set_role (ATK_OBJECT (page), ATK_ROLE_PAGE);
- page->priv = G_TYPE_INSTANCE_GET_PRIVATE (page, EV_TYPE_PAGE_ACCESSIBLE, EvPageAccessiblePrivate);
+ page->priv = ev_page_accessible_get_instance_private (page);
}
static void