small fix to g_node_children_foreach to make it work right. From Paco Moya
authorManish Singh <yosh@src.gnome.org>
Sun, 25 Oct 1998 05:24:49 +0000 (05:24 +0000)
committerManish Singh <yosh@src.gnome.org>
Sun, 25 Oct 1998 05:24:49 +0000 (05:24 +0000)
<paco@cadnotebk17.eecs.berkeley.edu>

-Yosh

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gnode.c
gnode.c

index e4a7a34fcf14b834bd8b64a81cb79fa09879d759..03051be502c73bd422cb20f8263bb4dd7711a8ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Oct 24 22:23:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gnode.c: small fix to g_node_children_foreach to make it work right.
+       From Paco Moya <paco@cadnotebk17.eecs.berkeley.edu>
+
 Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
 
        * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
index e4a7a34fcf14b834bd8b64a81cb79fa09879d759..03051be502c73bd422cb20f8263bb4dd7711a8ef 100644 (file)
@@ -1,3 +1,8 @@
+Sat Oct 24 22:23:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gnode.c: small fix to g_node_children_foreach to make it work right.
+       From Paco Moya <paco@cadnotebk17.eecs.berkeley.edu>
+
 Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
 
        * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
index e4a7a34fcf14b834bd8b64a81cb79fa09879d759..03051be502c73bd422cb20f8263bb4dd7711a8ef 100644 (file)
@@ -1,3 +1,8 @@
+Sat Oct 24 22:23:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gnode.c: small fix to g_node_children_foreach to make it work right.
+       From Paco Moya <paco@cadnotebk17.eecs.berkeley.edu>
+
 Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
 
        * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
index e4a7a34fcf14b834bd8b64a81cb79fa09879d759..03051be502c73bd422cb20f8263bb4dd7711a8ef 100644 (file)
@@ -1,3 +1,8 @@
+Sat Oct 24 22:23:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gnode.c: small fix to g_node_children_foreach to make it work right.
+       From Paco Moya <paco@cadnotebk17.eecs.berkeley.edu>
+
 Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
 
        * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
index e4a7a34fcf14b834bd8b64a81cb79fa09879d759..03051be502c73bd422cb20f8263bb4dd7711a8ef 100644 (file)
@@ -1,3 +1,8 @@
+Sat Oct 24 22:23:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gnode.c: small fix to g_node_children_foreach to make it work right.
+       From Paco Moya <paco@cadnotebk17.eecs.berkeley.edu>
+
 Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
 
        * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
index e4a7a34fcf14b834bd8b64a81cb79fa09879d759..03051be502c73bd422cb20f8263bb4dd7711a8ef 100644 (file)
@@ -1,3 +1,8 @@
+Sat Oct 24 22:23:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gnode.c: small fix to g_node_children_foreach to make it work right.
+       From Paco Moya <paco@cadnotebk17.eecs.berkeley.edu>
+
 Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
 
        * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
index e4a7a34fcf14b834bd8b64a81cb79fa09879d759..03051be502c73bd422cb20f8263bb4dd7711a8ef 100644 (file)
@@ -1,3 +1,8 @@
+Sat Oct 24 22:23:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gnode.c: small fix to g_node_children_foreach to make it work right.
+       From Paco Moya <paco@cadnotebk17.eecs.berkeley.edu>
+
 Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
 
        * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
index e4a7a34fcf14b834bd8b64a81cb79fa09879d759..03051be502c73bd422cb20f8263bb4dd7711a8ef 100644 (file)
@@ -1,3 +1,8 @@
+Sat Oct 24 22:23:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gnode.c: small fix to g_node_children_foreach to make it work right.
+       From Paco Moya <paco@cadnotebk17.eecs.berkeley.edu>
+
 Wed Oct 21 19:22:58 1998  Tim Janik  <timj@gtk.org>
 
        * configure.in (G_MODULE_HAVE_DLERROR): reverted part of the changes
index dc70f91ce026e18160c01d3588dbc903a3aa497e..dea428da695ff847b0f7bcd23927cf451d5254b9 100644 (file)
@@ -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 dc70f91ce026e18160c01d3588dbc903a3aa497e..dea428da695ff847b0f7bcd23927cf451d5254b9 100644 (file)
--- 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);