From a6daba5e78df967258ca8998a8ec535be0746232 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 25 May 2011 22:21:15 +0200 Subject: 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). --- gtk/gtkcontainer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk/gtkcontainer.c') 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 **/ -- cgit v1.2.1