]> Pileus Git - ~andy/gtk/commitdiff
introspection: mark data in GtkCallback as closure
authorCarlos Garnacho <carlos@lanedo.com>
Wed, 27 Jun 2012 12:51:57 +0000 (14:51 +0200)
committerCarlos Garnacho <carlos@lanedo.com>
Fri, 13 Jul 2012 12:43:23 +0000 (14:43 +0200)
This is needed for so GtkContainer::forall() can be implemented
in non-native code, and the callback gets the passed data if
called.

https://bugzilla.gnome.org/show_bug.cgi?id=644926#c28

gtk/gtkwidget.h

index 94189dd97b4f4cc25edc2133c322c78bc537fbeb..576d7e91b9c2bbbf2d3e29b4be6185ac7ee311bf 100644 (file)
@@ -78,7 +78,7 @@ typedef       GdkRectangle       GtkAllocation;
 /**
  * GtkCallback:
  * @widget: the widget to operate on
- * @data: user-supplied data
+ * @data: (closure): user-supplied data
  *
  * The type of the callback functions used for e.g. iterating over
  * the children of a container, see gtk_container_foreach().