Adding note to docs of gtk_widget_set_window()

gtk_widget_set_window() does not add a reference to the
owned window... this is an exception to most gtk_foo_set_bar()
functions where as it acts as if it were named gtk_widget_take_window().

Adding note to the docs to avoid people giving the window to the
widget and naturally proceeding to unref the window.
This commit is contained in:
Tristan Van Berkom 2010-09-10 03:22:20 +09:00
parent 6624da6393
commit a6a036ce22

View File

@ -11616,6 +11616,8 @@ gtk_widget_get_requisition (GtkWidget *widget,
* by calling gtk_widget_set_has_window(). This is usually done in the
* widget's init() function.
*
* <note><para>This function does not add any reference to @window.</para></note>
*
* Since: 2.18
*/
void