[gtk+/gtk-2-22] bgo#622371 - Add gtk_accessible_set_widget() - the widget field was GSEAL()ed.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] bgo#622371 - Add gtk_accessible_set_widget() - the widget field was GSEAL()ed.
- Date: Tue, 22 Jun 2010 17:24:28 +0000 (UTC)
commit 49943be22b6a7267cbe92801a00eb317b34cda37
Author: Vincent Untz <vuntz gnome org>
Date: Tue Jun 22 12:24:38 2010 +0200
bgo#622371 - Add gtk_accessible_set_widget() - the widget field was GSEAL()ed.
https://bugzilla.gnome.org/show_bug.cgi?id=622371
gtk/gtkaccessible.c | 19 +++++++++++++++++++
gtk/gtkaccessible.h | 2 ++
2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index aa3b260..a80e98e 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
*
diff --git a/gtk/gtkaccessible.h b/gtk/gtkaccessible.h
index a9d21bc..61dbfb5 100644
--- a/gtk/gtkaccessible.h
+++ b/gtk/gtkaccessible.h
@@ -68,6 +68,8 @@ struct _GtkAccessibleClass
GType gtk_accessible_get_type (void) G_GNUC_CONST;
+void gtk_accessible_set_widget (GtkAccessible *accessible,
+ GtkWidget *widget);
GtkWidget* gtk_accessible_get_widget (GtkAccessible *accessible);
void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]