From 36ab1965234ce32f170de5157398c47f1f2ac4ec Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sun, 25 Oct 1998 05:24:49 +0000 Subject: [PATCH] small fix to g_node_children_foreach to make it work right. From Paco Moya -Yosh --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gnode.c | 2 +- gnode.c | 2 +- 10 files changed, 42 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e4a7a34..03051be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 24 22:23:04 PDT 1998 Manish Singh + + * gnode.c: small fix to g_node_children_foreach to make it work right. + From Paco Moya + Wed Oct 21 19:22:58 1998 Tim Janik * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index e4a7a34..03051be 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Sat Oct 24 22:23:04 PDT 1998 Manish Singh + + * gnode.c: small fix to g_node_children_foreach to make it work right. + From Paco Moya + Wed Oct 21 19:22:58 1998 Tim Janik * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e4a7a34..03051be 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Sat Oct 24 22:23:04 PDT 1998 Manish Singh + + * gnode.c: small fix to g_node_children_foreach to make it work right. + From Paco Moya + Wed Oct 21 19:22:58 1998 Tim Janik * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index e4a7a34..03051be 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +Sat Oct 24 22:23:04 PDT 1998 Manish Singh + + * gnode.c: small fix to g_node_children_foreach to make it work right. + From Paco Moya + Wed Oct 21 19:22:58 1998 Tim Janik * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index e4a7a34..03051be 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Sat Oct 24 22:23:04 PDT 1998 Manish Singh + + * gnode.c: small fix to g_node_children_foreach to make it work right. + From Paco Moya + Wed Oct 21 19:22:58 1998 Tim Janik * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index e4a7a34..03051be 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Sat Oct 24 22:23:04 PDT 1998 Manish Singh + + * gnode.c: small fix to g_node_children_foreach to make it work right. + From Paco Moya + Wed Oct 21 19:22:58 1998 Tim Janik * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e4a7a34..03051be 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Sat Oct 24 22:23:04 PDT 1998 Manish Singh + + * gnode.c: small fix to g_node_children_foreach to make it work right. + From Paco Moya + Wed Oct 21 19:22:58 1998 Tim Janik * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e4a7a34..03051be 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Sat Oct 24 22:23:04 PDT 1998 Manish Singh + + * gnode.c: small fix to g_node_children_foreach to make it work right. + From Paco Moya + Wed Oct 21 19:22:58 1998 Tim Janik * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes diff --git a/glib/gnode.c b/glib/gnode.c index dc70f91..dea428d 100644 --- a/glib/gnode.c +++ b/glib/gnode.c @@ -875,7 +875,7 @@ g_node_children_foreach (GNode *node, current = node; node = current->next; - if (G_NODE_IS_LEAF (node)) + if (G_NODE_IS_LEAF (current)) { if (flags & G_TRAVERSE_LEAFS) func (current, data); diff --git a/gnode.c b/gnode.c index dc70f91..dea428d 100644 --- a/gnode.c +++ b/gnode.c @@ -875,7 +875,7 @@ g_node_children_foreach (GNode *node, current = node; node = current->next; - if (G_NODE_IS_LEAF (node)) + if (G_NODE_IS_LEAF (current)) { if (flags & G_TRAVERSE_LEAFS) func (current, data); -- 2.7.4