Add G_TRAVERSE_LEAVES and G_TRAVERSE_NON_LEAVES as alternative names for
authorMatthias Clasen <mclasen@redhat.com>
Mon, 8 Nov 2004 19:14:04 +0000 (19:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 8 Nov 2004 19:14:04 +0000 (19:14 +0000)
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

* glib/gnode.h (enum GTraverseFlags): Add G_TRAVERSE_LEAVES
and G_TRAVERSE_NON_LEAVES as alternative names for
G_TRAVERSE_LEAFS and G_TRAVERSE_NON_LEAFS, which are
grammatically brutal.  (#138853, Morten Welinder)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/ChangeLog
docs/reference/glib/tmpl/trees-nary.sgml
glib/gnode.h

index 2849bca2a65dc1504c8ccc41b200fe615bf9c5ec..37114b44420ace01508a77baa5c3b484e9ff9f98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,11 @@ Mon Nov  8 10:45:50 2004  Manish Singh  <yosh@gimp.org>
 
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gnode.h (enum GTraverseFlags): Add G_TRAVERSE_LEAVES
+       and G_TRAVERSE_NON_LEAVES as alternative names for 
+       G_TRAVERSE_LEAFS and G_TRAVERSE_NON_LEAFS, which are
+       grammatically brutal.  (#138853, Morten Welinder)
+       
        * glib/gasyncqueue.[hc]:
        * glib/ghook.[hc]: 
        * glib/gmain.[hc]:
index 2849bca2a65dc1504c8ccc41b200fe615bf9c5ec..37114b44420ace01508a77baa5c3b484e9ff9f98 100644 (file)
@@ -9,6 +9,11 @@ Mon Nov  8 10:45:50 2004  Manish Singh  <yosh@gimp.org>
 
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gnode.h (enum GTraverseFlags): Add G_TRAVERSE_LEAVES
+       and G_TRAVERSE_NON_LEAVES as alternative names for 
+       G_TRAVERSE_LEAFS and G_TRAVERSE_NON_LEAFS, which are
+       grammatically brutal.  (#138853, Morten Welinder)
+       
        * glib/gasyncqueue.[hc]:
        * glib/ghook.[hc]: 
        * glib/gmain.[hc]:
index 2849bca2a65dc1504c8ccc41b200fe615bf9c5ec..37114b44420ace01508a77baa5c3b484e9ff9f98 100644 (file)
@@ -9,6 +9,11 @@ Mon Nov  8 10:45:50 2004  Manish Singh  <yosh@gimp.org>
 
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gnode.h (enum GTraverseFlags): Add G_TRAVERSE_LEAVES
+       and G_TRAVERSE_NON_LEAVES as alternative names for 
+       G_TRAVERSE_LEAFS and G_TRAVERSE_NON_LEAFS, which are
+       grammatically brutal.  (#138853, Morten Welinder)
+       
        * glib/gasyncqueue.[hc]:
        * glib/ghook.[hc]: 
        * glib/gmain.[hc]:
index 2849bca2a65dc1504c8ccc41b200fe615bf9c5ec..37114b44420ace01508a77baa5c3b484e9ff9f98 100644 (file)
@@ -9,6 +9,11 @@ Mon Nov  8 10:45:50 2004  Manish Singh  <yosh@gimp.org>
 
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gnode.h (enum GTraverseFlags): Add G_TRAVERSE_LEAVES
+       and G_TRAVERSE_NON_LEAVES as alternative names for 
+       G_TRAVERSE_LEAFS and G_TRAVERSE_NON_LEAFS, which are
+       grammatically brutal.  (#138853, Morten Welinder)
+       
        * glib/gasyncqueue.[hc]:
        * glib/ghook.[hc]: 
        * glib/gmain.[hc]:
index 2849bca2a65dc1504c8ccc41b200fe615bf9c5ec..37114b44420ace01508a77baa5c3b484e9ff9f98 100644 (file)
@@ -9,6 +9,11 @@ Mon Nov  8 10:45:50 2004  Manish Singh  <yosh@gimp.org>
 
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gnode.h (enum GTraverseFlags): Add G_TRAVERSE_LEAVES
+       and G_TRAVERSE_NON_LEAVES as alternative names for 
+       G_TRAVERSE_LEAFS and G_TRAVERSE_NON_LEAFS, which are
+       grammatically brutal.  (#138853, Morten Welinder)
+       
        * glib/gasyncqueue.[hc]:
        * glib/ghook.[hc]: 
        * glib/gmain.[hc]:
index 7387a890e68cfa4d6a75cd2e0e27275307cf498b..2847e81c7f7e12134eabaf65c484abd30ed9db82 100644 (file)
@@ -1,5 +1,8 @@
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/tmpl/trees-nary.sgml: Document G_TRAVERSE_LEAVES and
+       G_TRAVERSE_NON_LEAVES
+
        * glib/tmpl/hooks.sgml: 
        * glib/tmpl/iochannels.sgml: Updates
 
index b72abd46c3a31f3e442bfbdd5cc1db98e941f357..77843f272d743e0f4d9314682b823273e3ba4308 100644 (file)
@@ -232,7 +232,7 @@ The traversal can be halted at any point by returning %TRUE from @func.
 @order: the order in which nodes are visited - %G_IN_ORDER, %G_PRE_ORDER,
 %G_POST_ORDER, or %G_LEVEL_ORDER.
 @flags: which types of children are to be visited, one of %G_TRAVERSE_ALL,
-%G_TRAVERSE_LEAFS and %G_TRAVERSE_NON_LEAFS.
+%G_TRAVERSE_LEAVES and %G_TRAVERSE_NON_LEAVES.
 @max_depth: the maximum depth of the traversal. Nodes below this
 depth will not be visited. If max_depth is -1 all nodes in the tree are
 visited. If depth is 1, only the root is visited. If depth is 2, the root
@@ -247,10 +247,14 @@ Specifies which nodes are visited during several of the tree functions,
 including g_node_traverse() and g_node_find().
 </para>
 
-@G_TRAVERSE_LEAFS: only leaf nodes should be visited.
-@G_TRAVERSE_NON_LEAFS: only non-leaf nodes should be visited.
+@G_TRAVERSE_LEAVES: only leaf nodes should be visited. This name has been
+  introduced in 2.6, for older version use %G_TRAVERSE_LEAFS.
+@G_TRAVERSE_NON_LEAVES: only non-leaf nodes should be visited. This name 
+  has been introduced in 2.6, for older version use %G_TRAVERSE_NON_LEAFS.
 @G_TRAVERSE_ALL: all nodes should be visited.
 @G_TRAVERSE_MASK: 
+@G_TRAVERSE_LEAFS: identical to %G_TRAVERSE_LEAVES
+@G_TRAVERSE_NON_LEAFS: identical to %G_TRAVERSE_NON_LEAVES
 
 <!-- ##### USER_FUNCTION GNodeTraverseFunc ##### -->
 <para>
@@ -273,7 +277,7 @@ Note that it doesn't descend beneath the child nodes.
 
 @node: a #GNode.
 @flags: which types of children are to be visited, one of %G_TRAVERSE_ALL,
-%G_TRAVERSE_LEAFS and %G_TRAVERSE_NON_LEAFS.
+%G_TRAVERSE_LEAVES and %G_TRAVERSE_NON_LEAVES.
 @func: the function to call for each visited node.
 @data: user data to pass to the function.
 
@@ -307,7 +311,7 @@ Finds a #GNode in a tree.
 @order: the order in which nodes are visited - %G_IN_ORDER, %G_PRE_ORDER,
 %G_POST_ORDER, or %G_LEVEL_ORDER.
 @flags: which types of children are to be searched, one of %G_TRAVERSE_ALL,
-%G_TRAVERSE_LEAFS and %G_TRAVERSE_NON_LEAFS.
+%G_TRAVERSE_LEAVES and %G_TRAVERSE_NON_LEAVES.
 @data: the data to find.
 @Returns: the found #GNode, or %NULL if the data is not found.
 
@@ -319,7 +323,7 @@ Finds the first child of a #GNode with the given data.
 
 @node: a #GNode.
 @flags: which types of children are to be searched, one of %G_TRAVERSE_ALL,
-%G_TRAVERSE_LEAFS and %G_TRAVERSE_NON_LEAFS.
+%G_TRAVERSE_LEAVES and %G_TRAVERSE_NON_LEAVES.
 @data: the data to find.
 @Returns: the found child #GNode, or %NULL if the data is not found.
 
@@ -454,7 +458,7 @@ Gets the number of nodes in a tree.
 
 @root: a #GNode.
 @flags: which types of children are to be counted, one of %G_TRAVERSE_ALL,
-%G_TRAVERSE_LEAFS and %G_TRAVERSE_NON_LEAFS.
+%G_TRAVERSE_LEAVES and %G_TRAVERSE_NON_LEAVES.
 @Returns: the number of nodes in the tree.
 
 
index 7cc4fb000758f2674fb0baa57ce5b88f4efe04d4..9da362a9125c21845d2648c5483075c1886ed765 100644 (file)
@@ -36,10 +36,12 @@ typedef struct _GNode               GNode;
 /* Tree traverse flags */
 typedef enum
 {
-  G_TRAVERSE_LEAFS      = 1 << 0,
-  G_TRAVERSE_NON_LEAFS  = 1 << 1,
-  G_TRAVERSE_ALL        = G_TRAVERSE_LEAFS | G_TRAVERSE_NON_LEAFS,
-  G_TRAVERSE_MASK       = 0x03
+  G_TRAVERSE_LEAVES     = 1 << 0,
+  G_TRAVERSE_NON_LEAVES = 1 << 1,
+  G_TRAVERSE_ALL        = G_TRAVERSE_LEAVES | G_TRAVERSE_NON_LEAVES,
+  G_TRAVERSE_MASK       = 0x03,
+  G_TRAVERSE_LEAFS      = G_TRAVERSE_LEAVES,
+  G_TRAVERSE_NON_LEAFS  = G_TRAVERSE_NON_LEAVES
 } GTraverseFlags;
 
 /* Tree traverse orders */