summaryrefslogtreecommitdiff
path: root/gtk/gtkcontainer.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-09-30 20:53:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-09-30 20:53:19 -0400
commit5abff7bd4c2da480578a1a44a128950e994c4ae8 (patch)
tree17af84e8712d0d4b8ced93e0fa57c0eca3693126 /gtk/gtkcontainer.c
parentc02a12a7460fb270c22db6958bf9024ecde8104a (diff)
downloadgtk+-5abff7bd4c2da480578a1a44a128950e994c4ae8.tar.gz
Improve gtk_container_add docs
Mention that some containers add intermediate children automatically.
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r--gtk/gtkcontainer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index b3b1094223..82fda082a6 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -1520,7 +1520,11 @@ gtk_container_get_border_width (GtkContainer *container)
* gtk_grid_attach() as an alternative to gtk_container_add() in
* those cases. A widget may be added to only one container at a time;
* you can't place the same widget inside two different containers.
- **/
+ *
+ * Note that some containers, such as #GtkScrolledWindow or #GtkListBox,
+ * may add intermediate children between the added widget and the
+ * container.
+ */
void
gtk_container_add (GtkContainer *container,
GtkWidget *widget)