accessible: At an important note to the docs

I wanted to use weak refs to ensure this instead, but it's a performance
problem when used in the treeview and each and every cell adds a weak
ref to the treeview.
This commit is contained in:
Benjamin Otte 2011-12-18 12:49:06 +01:00
parent 5789fd983b
commit 50431be274

View File

@ -127,10 +127,14 @@ gtk_accessible_class_init (GtkAccessibleClass *klass)
/**
* gtk_accessible_set_widget:
* @accessible: a #GtkAccessible
* @widget: a #GtkWidget
* @widget: (allow-none): a #GtkWidget or %NULL to unset
*
* 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