diff options
author | Pablo Barciela <[email protected]> | 2019-08-10 13:34:18 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-08-16 20:47:41 +0000 |
commit | ae96197d910d90fe8729b8fbcdd2841c99874660 (patch) | |
tree | fbbf45cec53b6686f78467ae9f7e02e9e6f46147 /libview/ev-image-accessible.c | |
parent | 520b76a2f8489709e0d35a3f3fe8f8e4c701d9e9 (diff) | |
download | atril-ae96197d910d90fe8729b8fbcdd2841c99874660.tar.bz2 atril-ae96197d910d90fe8729b8fbcdd2841c99874660.tar.xz |
ev-image-accessible: avoid 'g_type_class_add_private'
Diffstat (limited to 'libview/ev-image-accessible.c')
-rw-r--r-- | libview/ev-image-accessible.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libview/ev-image-accessible.c b/libview/ev-image-accessible.c index c07e7cc9..fddf2bca 100644 --- a/libview/ev-image-accessible.c +++ b/libview/ev-image-accessible.c @@ -34,6 +34,7 @@ static void ev_image_accessible_component_iface_init (AtkComponentIface *iface); static void ev_image_accessible_image_iface_init (AtkImageIface *iface); G_DEFINE_TYPE_WITH_CODE (EvImageAccessible, ev_image_accessible, ATK_TYPE_OBJECT, + G_ADD_PRIVATE (EvImageAccessible) G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, ev_image_accessible_component_iface_init) G_IMPLEMENT_INTERFACE (ATK_TYPE_IMAGE, ev_image_accessible_image_iface_init)) @@ -171,8 +172,6 @@ ev_image_accessible_class_init (EvImageAccessibleClass *klass) object_class->finalize = ev_image_accessible_finalize; atk_class->get_parent = ev_image_accessible_get_parent; atk_class->ref_state_set = ev_image_accessible_ref_state_set; - - g_type_class_add_private (klass, sizeof (EvImageAccessiblePrivate)); } static void @@ -180,7 +179,7 @@ ev_image_accessible_init (EvImageAccessible *image) { atk_object_set_role (ATK_OBJECT (image), ATK_ROLE_IMAGE); - image->priv = G_TYPE_INSTANCE_GET_PRIVATE (image, EV_TYPE_IMAGE_ACCESSIBLE, EvImageAccessiblePrivate); + image->priv = ev_image_accessible_get_instance_private (image); } static void |