diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-12-27 01:04:46 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-12-27 11:23:22 -0500 |
commit | e4b5e94eb9500a83769771e6132f9abb08badb32 (patch) | |
tree | 5dea6143e46d636c3aa0faed50cf12db7b4b1715 /gtk/a11y/gtkarrowaccessible.c | |
parent | 853b5e5fa2bd0c5f5260cb566470310fb72d8596 (diff) | |
download | gtk+-e4b5e94eb9500a83769771e6132f9abb08badb32.tar.gz |
Make accessible implementations public
This commit exposes the get_type() functions and standard
headers for accessible implementations. This makes it possible
to derive from the GTK accessible implementations without
GType magic tricks. This is necessary, because we require the
a11y type hierarchy to be parallel to the widget type hierarchy.
So, if you derive a widget and need to adjust its a11y implementation,
you have to be able to derive its accessible implementation.
This commit probably exposes more than is absolutely necessary,
it also exposes accessibles of widgets that are unlikely candidates
for deriving from.
Diffstat (limited to 'gtk/a11y/gtkarrowaccessible.c')
-rw-r--r-- | gtk/a11y/gtkarrowaccessible.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/a11y/gtkarrowaccessible.c b/gtk/a11y/gtkarrowaccessible.c index 9950158a6a..3d4a44ddae 100644 --- a/gtk/a11y/gtkarrowaccessible.c +++ b/gtk/a11y/gtkarrowaccessible.c @@ -27,14 +27,14 @@ struct _GtkArrowAccessiblePrivate static void atk_image_interface_init (AtkImageIface *iface); -G_DEFINE_TYPE_WITH_CODE (GtkArrowAccessible, _gtk_arrow_accessible, GTK_TYPE_WIDGET_ACCESSIBLE, +G_DEFINE_TYPE_WITH_CODE (GtkArrowAccessible, gtk_arrow_accessible, GTK_TYPE_WIDGET_ACCESSIBLE, G_IMPLEMENT_INTERFACE (ATK_TYPE_IMAGE, atk_image_interface_init)) static void gtk_arrow_accessible_initialize (AtkObject *accessible, gpointer data) { - ATK_OBJECT_CLASS (_gtk_arrow_accessible_parent_class)->initialize (accessible, data); + ATK_OBJECT_CLASS (gtk_arrow_accessible_parent_class)->initialize (accessible, data); accessible->role = ATK_ROLE_ICON; } @@ -46,11 +46,11 @@ gtk_arrow_accessible_finalize (GObject *object) g_free (arrow->priv->image_description); - G_OBJECT_CLASS (_gtk_arrow_accessible_parent_class)->finalize (object); + G_OBJECT_CLASS (gtk_arrow_accessible_parent_class)->finalize (object); } static void -_gtk_arrow_accessible_class_init (GtkArrowAccessibleClass *klass) +gtk_arrow_accessible_class_init (GtkArrowAccessibleClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); AtkObjectClass *atk_object_class = ATK_OBJECT_CLASS (klass); @@ -63,7 +63,7 @@ _gtk_arrow_accessible_class_init (GtkArrowAccessibleClass *klass) } static void -_gtk_arrow_accessible_init (GtkArrowAccessible *arrow) +gtk_arrow_accessible_init (GtkArrowAccessible *arrow) { arrow->priv = G_TYPE_INSTANCE_GET_PRIVATE (arrow, GTK_TYPE_ARROW_ACCESSIBLE, |