summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-07-13 22:46:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-07-13 23:02:25 -0400
commit9a212b31205e5c2566f2fc946812609b688c19ce (patch)
treee39bfa5579cf4d3e62e84af6af0163daece6c8e5 /gtk/gtkwidget.c
parentb53f60289169077f3a0c5a08ab6baaf13cc62d0c (diff)
downloadgtk+-9a212b31205e5c2566f2fc946812609b688c19ce.tar.gz
Add a getter for the accessible type of a widget class
This will be necessary to port out-of-tree a11y implementations from the atk object factory approach to this new way of doing things.
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r--gtk/gtkwidget.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 5491107caa..d529bba9ba 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11943,6 +11943,29 @@ gtk_widget_class_set_accessible_type (GtkWidgetClass *widget_class,
}
/**
+ * gtk_widget_class_get_accessible_type:
+ * @widget_class: class to query the accessible type for
+ *
+ * Returns the #GType for accessibles for widgets of the given
+ * class. See gtk_widget_class_set_accessible_type().
+ *
+ * Returns: the accessible type for @widget_class
+ *
+ * Since: 3.2
+ */
+GType
+gtk_widget_class_get_accessible_type (GtkWidgetClass *widget_class)
+{
+ GtkWidgetClassPrivate *priv;
+
+ g_return_if_fail (GTK_IS_WIDGET_CLASS (widget_class));
+
+ priv = widget_class->priv;
+
+ return priv->accessible_type;
+}
+
+/**
* gtk_widget_get_accessible:
* @widget: a #GtkWidget
*