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/gtknotebookaccessible.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/gtknotebookaccessible.c')
-rw-r--r-- | gtk/a11y/gtknotebookaccessible.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/a11y/gtknotebookaccessible.c b/gtk/a11y/gtknotebookaccessible.c index 77b8f1fdd5..a82cbc2aff 100644 --- a/gtk/a11y/gtknotebookaccessible.c +++ b/gtk/a11y/gtknotebookaccessible.c @@ -38,7 +38,7 @@ struct _GtkNotebookAccessiblePrivate static void atk_selection_interface_init (AtkSelectionIface *iface); -G_DEFINE_TYPE_WITH_CODE (GtkNotebookAccessible, _gtk_notebook_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE, +G_DEFINE_TYPE_WITH_CODE (GtkNotebookAccessible, gtk_notebook_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE, G_IMPLEMENT_INTERFACE (ATK_TYPE_SELECTION, atk_selection_interface_init)) static gboolean @@ -105,7 +105,7 @@ create_notebook_page_accessible (GtkNotebookAccessible *accessible, { AtkObject *obj; - obj = _gtk_notebook_page_accessible_new (accessible, child); + obj = gtk_notebook_page_accessible_new (accessible, child); g_hash_table_insert (accessible->priv->pages, child, obj); atk_object_set_parent (obj, ATK_OBJECT (accessible)); g_signal_emit_by_name (accessible, "children-changed::add", page_num, obj, NULL); @@ -140,7 +140,7 @@ page_removed_cb (GtkNotebook *notebook, g_return_if_fail (obj); g_signal_emit_by_name (accessible, "children-changed::remove", page_num, obj, NULL); - _gtk_notebook_page_accessible_invalidate (GTK_NOTEBOOK_PAGE_ACCESSIBLE (obj)); + gtk_notebook_page_accessible_invalidate (GTK_NOTEBOOK_PAGE_ACCESSIBLE (obj)); g_hash_table_remove (accessible->priv->pages, widget); } @@ -153,7 +153,7 @@ gtk_notebook_accessible_initialize (AtkObject *obj, GtkNotebook *notebook; gint i; - ATK_OBJECT_CLASS (_gtk_notebook_accessible_parent_class)->initialize (obj, data); + ATK_OBJECT_CLASS (gtk_notebook_accessible_parent_class)->initialize (obj, data); accessible = GTK_NOTEBOOK_ACCESSIBLE (obj); notebook = GTK_NOTEBOOK (data); @@ -186,7 +186,7 @@ gtk_notebook_accessible_finalize (GObject *object) if (accessible->priv->idle_focus_id) g_source_remove (accessible->priv->idle_focus_id); - G_OBJECT_CLASS (_gtk_notebook_accessible_parent_class)->finalize (object); + G_OBJECT_CLASS (gtk_notebook_accessible_parent_class)->finalize (object); } static AtkObject * @@ -280,7 +280,7 @@ gtk_notebook_accessible_notify_gtk (GObject *obj, } } else - GTK_WIDGET_ACCESSIBLE_CLASS (_gtk_notebook_accessible_parent_class)->notify_gtk (obj, pspec); + GTK_WIDGET_ACCESSIBLE_CLASS (gtk_notebook_accessible_parent_class)->notify_gtk (obj, pspec); } /* @@ -305,7 +305,7 @@ gtk_notebook_accessible_add_selection (AtkSelection *selection, } static void -_gtk_notebook_accessible_class_init (GtkNotebookAccessibleClass *klass) +gtk_notebook_accessible_class_init (GtkNotebookAccessibleClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); AtkObjectClass *class = ATK_OBJECT_CLASS (klass); @@ -327,7 +327,7 @@ _gtk_notebook_accessible_class_init (GtkNotebookAccessibleClass *klass) } static void -_gtk_notebook_accessible_init (GtkNotebookAccessible *notebook) +gtk_notebook_accessible_init (GtkNotebookAccessible *notebook) { notebook->priv = G_TYPE_INSTANCE_GET_PRIVATE (notebook, GTK_TYPE_NOTEBOOK_ACCESSIBLE, |