diff options
author | Pablo Barciela <[email protected]> | 2019-08-10 12:15:31 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-08-16 20:47:41 +0000 |
commit | 1cf7ae8b89199359fa1f245cacb2844de6c21ba9 (patch) | |
tree | ae4f3f157795e819f86668e6168dcf236d92da42 /libview/ev-page-accessible.c | |
parent | 02a0755f1c5fb98c05cb997a1e0cece4e7511148 (diff) | |
download | atril-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.c | 5 |
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 |