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/gtktreeviewaccessible.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/gtktreeviewaccessible.c')
-rw-r--r-- | gtk/a11y/gtktreeviewaccessible.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c index 31032b2305..fb9e2ce211 100644 --- a/gtk/a11y/gtktreeviewaccessible.c +++ b/gtk/a11y/gtktreeviewaccessible.c @@ -82,6 +82,7 @@ static void atk_component_interface_init (AtkComponentIface static void gtk_cell_accessible_parent_interface_init (GtkCellAccessibleParentIface *iface); G_DEFINE_TYPE_WITH_CODE (GtkTreeViewAccessible, gtk_tree_view_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE, + G_ADD_PRIVATE (GtkTreeViewAccessible) G_IMPLEMENT_INTERFACE (ATK_TYPE_TABLE, atk_table_interface_init) G_IMPLEMENT_INTERFACE (ATK_TYPE_SELECTION, atk_selection_interface_init) G_IMPLEMENT_INTERFACE (ATK_TYPE_COMPONENT, atk_component_interface_init) @@ -529,16 +530,12 @@ gtk_tree_view_accessible_class_init (GtkTreeViewAccessibleClass *klass) container_class->remove_gtk = NULL; gobject_class->finalize = gtk_tree_view_accessible_finalize; - - g_type_class_add_private (klass, sizeof (GtkTreeViewAccessiblePrivate)); } static void gtk_tree_view_accessible_init (GtkTreeViewAccessible *view) { - view->priv = G_TYPE_INSTANCE_GET_PRIVATE (view, - GTK_TYPE_TREE_VIEW_ACCESSIBLE, - GtkTreeViewAccessiblePrivate); + view->priv = gtk_tree_view_accessible_get_instance_private (view); } /* atkcomponent.h */ |