summaryrefslogtreecommitdiff
path: root/gtk/gtkaccessible.c
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2010-03-11 00:02:57 +0100
committerJavier Jardón <jjardon@gnome.org>2010-04-14 03:49:26 +0200
commit9b34203cb6b384448ba1f48c196c4af27ea56ddd (patch)
treecaeaafaacdf706ea91ce387c9df65b974edbd914 /gtk/gtkaccessible.c
parent7dcb7ec35750c04f350ed7d51152eb3c07cbdd2a (diff)
downloadgtk+-9b34203cb6b384448ba1f48c196c4af27ea56ddd.tar.gz
No accessor for GtkAccessible.widget
Add gtk_accessible_get_widget(). Fixes https://bugzilla.gnome.org/show_bug.cgi?id=612509
Diffstat (limited to 'gtk/gtkaccessible.c')
-rw-r--r--gtk/gtkaccessible.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index e3d6ea3c14..aa3b260894 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -48,6 +48,26 @@ gtk_accessible_class_init (GtkAccessibleClass *klass)
}
/**
+ * gtk_accessible_get_widget:
+ * @accessible: a #GtkAccessible
+ *
+ * Gets the #GtkWidget corresponding to the #GtkAccessible. The returned widget
+ * does not have a reference added, so you do not need to unref it.
+ *
+ * Returns: (transfer none): pointer to the #GtkWidget corresponding to
+ * the #GtkAccessible, or %NULL.
+ *
+ * Since: 2.22
+ **/
+GtkWidget*
+gtk_accessible_get_widget (GtkAccessible *accessible)
+{
+ g_return_val_if_fail (GTK_IS_ACCESSIBLE (accessible), NULL);
+
+ return accessible->widget;
+}
+
+/**
* gtk_accessible_connect_widget_destroyed
* @accessible: a #GtkAccessible
*