summaryrefslogtreecommitdiff
path: root/gtk/a11y/gtkmenuaccessible.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-12-27 01:04:46 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-12-27 11:23:22 -0500
commite4b5e94eb9500a83769771e6132f9abb08badb32 (patch)
tree5dea6143e46d636c3aa0faed50cf12db7b4b1715 /gtk/a11y/gtkmenuaccessible.c
parent853b5e5fa2bd0c5f5260cb566470310fb72d8596 (diff)
downloadgtk+-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/gtkmenuaccessible.c')
-rw-r--r--gtk/a11y/gtkmenuaccessible.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk/a11y/gtkmenuaccessible.c b/gtk/a11y/gtkmenuaccessible.c
index 4a07f13bf4..3935e6a0b1 100644
--- a/gtk/a11y/gtkmenuaccessible.c
+++ b/gtk/a11y/gtkmenuaccessible.c
@@ -18,16 +18,17 @@
#include "config.h"
#include "gtkmenuaccessible.h"
+#include "gtkwidgetaccessibleprivate.h"
#include <gtk/gtk.h>
-G_DEFINE_TYPE (GtkMenuAccessible, _gtk_menu_accessible, GTK_TYPE_MENU_SHELL_ACCESSIBLE)
+G_DEFINE_TYPE (GtkMenuAccessible, gtk_menu_accessible, GTK_TYPE_MENU_SHELL_ACCESSIBLE)
static void
gtk_menu_accessible_initialize (AtkObject *obj,
gpointer data)
{
- ATK_OBJECT_CLASS (_gtk_menu_accessible_parent_class)->initialize (obj, data);
+ ATK_OBJECT_CLASS (gtk_menu_accessible_parent_class)->initialize (obj, data);
obj->role = ATK_ROLE_MENU;
@@ -79,11 +80,11 @@ gtk_menu_accessible_get_index_in_parent (AtkObject *accessible)
if (gtk_menu_get_attach_widget (GTK_MENU (widget)))
return 0;
- return ATK_OBJECT_CLASS (_gtk_menu_accessible_parent_class)->get_index_in_parent (accessible);
+ return ATK_OBJECT_CLASS (gtk_menu_accessible_parent_class)->get_index_in_parent (accessible);
}
static void
-_gtk_menu_accessible_class_init (GtkMenuAccessibleClass *klass)
+gtk_menu_accessible_class_init (GtkMenuAccessibleClass *klass)
{
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
@@ -93,6 +94,6 @@ _gtk_menu_accessible_class_init (GtkMenuAccessibleClass *klass)
}
static void
-_gtk_menu_accessible_init (GtkMenuAccessible *accessible)
+gtk_menu_accessible_init (GtkMenuAccessible *accessible)
{
}