diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-06-24 19:13:44 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-07-09 09:28:49 +0100 |
commit | 365919d5f6da0a8648815ca5cf5805fb88c9be16 (patch) | |
tree | 049d41189c1f3f2cde136e923de33cda7c851d2f /gtk/a11y/gtkarrowaccessible.c | |
parent | 9f2ca8d851342c815dde4baefd77b05dffd209d4 (diff) | |
download | gtk+-365919d5f6da0a8648815ca5cf5805fb88c9be16.tar.gz |
a11y: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/a11y/gtkarrowaccessible.c')
-rw-r--r-- | gtk/a11y/gtkarrowaccessible.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/a11y/gtkarrowaccessible.c b/gtk/a11y/gtkarrowaccessible.c index 00f401ece1..fb1fdfc819 100644 --- a/gtk/a11y/gtkarrowaccessible.c +++ b/gtk/a11y/gtkarrowaccessible.c @@ -28,6 +28,7 @@ struct _GtkArrowAccessiblePrivate static void atk_image_interface_init (AtkImageIface *iface); G_DEFINE_TYPE_WITH_CODE (GtkArrowAccessible, gtk_arrow_accessible, GTK_TYPE_WIDGET_ACCESSIBLE, + G_ADD_PRIVATE (GtkArrowAccessible) G_IMPLEMENT_INTERFACE (ATK_TYPE_IMAGE, atk_image_interface_init)) static void @@ -58,16 +59,12 @@ gtk_arrow_accessible_class_init (GtkArrowAccessibleClass *klass) atk_object_class->initialize = gtk_arrow_accessible_initialize; gobject_class->finalize = gtk_arrow_accessible_finalize; - - g_type_class_add_private (klass, sizeof (GtkArrowAccessiblePrivate)); } static void gtk_arrow_accessible_init (GtkArrowAccessible *arrow) { - arrow->priv = G_TYPE_INSTANCE_GET_PRIVATE (arrow, - GTK_TYPE_ARROW_ACCESSIBLE, - GtkArrowAccessiblePrivate); + arrow->priv = gtk_arrow_accessible_get_instance_private (arrow); } static const gchar * |