diff options
author | Vincent Untz <vuntz@gnome.org> | 2010-06-22 12:24:38 +0200 |
---|---|---|
committer | Federico Mena Quintero <federico@novell.com> | 2010-06-22 12:14:38 -0500 |
commit | abfc6f8f07ada02b20f7596918b2a08016f2c9dd (patch) | |
tree | 59070f6608dcbd4bf48dac13a01d2270ef2280ab /gtk/gtkaccessible.c | |
parent | 078da34a26d4bb0e971789866829133d8dd881be (diff) | |
download | gtk+-abfc6f8f07ada02b20f7596918b2a08016f2c9dd.tar.gz |
bgo#622371 - Add gtk_accessible_set_widget() - the widget field was GSEAL()ed.
https://bugzilla.gnome.org/show_bug.cgi?id=622371
Diffstat (limited to 'gtk/gtkaccessible.c')
-rw-r--r-- | gtk/gtkaccessible.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c index aa3b260894..a80e98ef4c 100644 --- a/gtk/gtkaccessible.c +++ b/gtk/gtkaccessible.c @@ -48,6 +48,25 @@ gtk_accessible_class_init (GtkAccessibleClass *klass) } /** + * gtk_accessible_set_widget: + * @accessible: a #GtkAccessible + * @widget: a #GtkWidget + * + * Sets the #GtkWidget corresponding to the #GtkAccessible. + * + * Since: 2.22 + **/ +void +gtk_accessible_set_widget (GtkAccessible *accessible, + GtkWidget *widget) +{ + g_return_val_if_fail (GTK_IS_ACCESSIBLE (accessible), NULL); + g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); + + accessible->widget = widget; +} + +/** * gtk_accessible_get_widget: * @accessible: a #GtkAccessible * |