+ * Sets the #GtkWidget corresponding to the #GtkAccessible.
+ *
+ * <note><para>@accessible will not hold a reference to @widget.
+ * It is the caller's responsibility to ensure that when @widget
+ * is destroyed, the widget is unset by calling this function
+ * again with @widget set to %NULL.</para></note>
+ * Since: 2.22
+ */
+void
+gtk_accessible_set_widget (GtkAccessible *accessible,
+ GtkWidget *widget)
+{
+ GtkAccessiblePrivate *priv;
+ GtkAccessibleClass *klass;
+
+ g_return_if_fail (GTK_IS_ACCESSIBLE (accessible));
+
+ priv = accessible->priv;
+ klass = GTK_ACCESSIBLE_GET_CLASS (accessible);
+
+ if (priv->widget == widget)
+ return;
+
+ if (priv->widget)
+ klass->widget_unset (accessible);
+
+ priv->widget = widget;
+
+ if (widget)
+ klass->widget_set (accessible);
+
+ g_object_notify (G_OBJECT (accessible), "widget");
+}
+
+/**
+ * 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->priv->widget;
+}
+
+/**
+ * gtk_accessible_connect_widget_destroyed:
+ * @accessible: a #GtkAccessible
+ *
+ * This function specifies the callback function to be called
+ * when the widget corresponding to a GtkAccessible is destroyed.
+ *
+ * Deprecated: 3.4: Use gtk_accessible_set_widget() and its vfuncs.