summaryrefslogtreecommitdiff
path: root/gtk/gtkcontainer.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-05-25 22:21:15 +0200
committerBenjamin Otte <otte@redhat.com>2011-06-02 02:03:50 +0200
commita6daba5e78df967258ca8998a8ec535be0746232 (patch)
tree0ce4385f6a2d31634359f71286bed6ec74a850d0 /gtk/gtkcontainer.c
parentb0616c82252ccfd3064dd23fbd9352c343b1ca05 (diff)
downloadgtk+-a6daba5e78df967258ca8998a8ec535be0746232.tar.gz
API: Change semantics of gtk_container_get_child_path()
Include the child widget path in the returned path now. This allows customizing the path of the current widgets - like adding flags to child widgets (and maybe siblings in the future).
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r--gtk/gtkcontainer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 50a4514448..4b27fd6210 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -2334,6 +2334,8 @@ gtk_container_real_get_path_for_child (GtkContainer *container,
g_list_free_1 (cur);
}
+ gtk_widget_path_append_for_widget (path, child);
+
return path;
}
@@ -3362,7 +3364,7 @@ _gtk_container_get_reallocate_redraws (GtkContainer *container)
* @child: a child of @container
*
* Returns a newly created widget path representing all the widget hierarchy
- * from the toplevel down to @child (this one not being included).
+ * from the toplevel down to and including @child.
*
* Returns: A newly created #GtkWidgetPath
**/