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 e4a7a34..03051be 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 e4a7a34..03051be 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 e4a7a34..03051be 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 e4a7a34..03051be 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 e4a7a34..03051be 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 e4a7a34..03051be 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 e4a7a34..03051be 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 e4a7a34..03051be 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 dc70f91..dea428d 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 dc70f91..dea428d 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);