summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-10 12:12:45 +0200
committerlukefromdc <[email protected]>2019-08-16 20:47:41 +0000
commit02a0755f1c5fb98c05cb997a1e0cece4e7511148 (patch)
treecc30f8ee4a67748de4c32dfca8f3aa40ac623625 /libview
parent12feefb0edcb453724112fb626dee626b7f75079 (diff)
downloadatril-02a0755f1c5fb98c05cb997a1e0cece4e7511148.tar.bz2
atril-02a0755f1c5fb98c05cb997a1e0cece4e7511148.tar.xz
ev-view-accessible: avoid 'g_type_class_add_private'
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view-accessible.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libview/ev-view-accessible.c b/libview/ev-view-accessible.c
index b19e5120..f05c87a7 100644
--- a/libview/ev-view-accessible.c
+++ b/libview/ev-view-accessible.c
@@ -68,9 +68,9 @@ struct _EvViewAccessiblePrivate {
};
G_DEFINE_TYPE_WITH_CODE (EvViewAccessible, ev_view_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE,
+ G_ADD_PRIVATE (EvViewAccessible)
G_IMPLEMENT_INTERFACE (ATK_TYPE_ACTION, ev_view_accessible_action_iface_init)
- G_IMPLEMENT_INTERFACE (ATK_TYPE_DOCUMENT, ev_view_accessible_document_iface_init)
- )
+ G_IMPLEMENT_INTERFACE (ATK_TYPE_DOCUMENT, ev_view_accessible_document_iface_init))
static gint
get_relevant_page (EvView *view)
@@ -174,14 +174,12 @@ ev_view_accessible_class_init (EvViewAccessibleClass *klass)
atk_class->initialize = ev_view_accessible_initialize;
atk_class->get_n_children = ev_view_accessible_get_n_children;
atk_class->ref_child = ev_view_accessible_ref_child;
-
- g_type_class_add_private (klass, sizeof (EvViewAccessiblePrivate));
}
static void
ev_view_accessible_init (EvViewAccessible *accessible)
{
- accessible->priv = G_TYPE_INSTANCE_GET_PRIVATE (accessible, EV_TYPE_VIEW_ACCESSIBLE, EvViewAccessiblePrivate);
+ accessible->priv = ev_view_accessible_get_instance_private (accessible);
}
static gint