Can someone review this patch to the get_children() method of the container class.
It aims to fix the problem that get_children returns the first object as every child.
--- gtkcontainer.pre 5 Nov 2005 17:55:03 -0000 1.3 +++ gtkcontainer.pre 27 Dec 2005 20:41:57 -0000 @@ -58,7 +58,7 @@ my_pop_n_elems(args); g=g1=gtk_container_get_children(GTK_CONTAINER(THIS->obj)); while (g1) { - push_gobject(g->data); + push_gobject(g1->data); n++; g1=g_list_next(g1); }
On Tue, 2005-12-27 at 20:45 +0000, davve (David Vest) @ Pike (-) developers forum wrote:
Can someone review this patch to the get_children() method of the container class.
It aims to fix the problem that get_children returns the first object as every child.
--- gtkcontainer.pre 5 Nov 2005 17:55:03 -0000 1.3 +++ gtkcontainer.pre 27 Dec 2005 20:41:57 -0000 @@ -58,7 +58,7 @@ my_pop_n_elems(args); g=g1=gtk_container_get_children(GTK_CONTAINER(THIS->obj)); while (g1) {
- push_gobject(g->data);
- push_gobject(g1->data); n++; g1=g_list_next(g1); }
You are absolutely correct. I will add that immediately.
pike-devel@lists.lysator.liu.se