summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2008-07-29 11:12:23 +0000
committerMurray Cumming <murrayc@src.gnome.org>2008-07-29 11:12:23 +0000
commiteebaa2ee37d734c9ab3ee69dd99a785c43d0ed53 (patch)
tree42af08474bbed2906951496919b07d36fdb57f3a /tests
parent6c9256a16561e6bbb87607af7351e79ab3860bda (diff)
downloadglibmm-eebaa2ee37d734c9ab3ee69dd99a785c43d0ed53.tar.gz
Hand-code the TraverseType enum, to add a prefix to the values. Adapted.
2008-07-29 Murray Cumming <murrayc@murrayc.com> * glib/src/nodetree.hg: Hand-code the TraverseType enum, to add a prefix to the values. * tests/glibmm_nodetree/main.cc: Adapted. svn path=/trunk/; revision=703
Diffstat (limited to 'tests')
-rw-r--r--tests/glibmm_nodetree/main.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/glibmm_nodetree/main.cc b/tests/glibmm_nodetree/main.cc
index 28fabfbd..20733c25 100644
--- a/tests/glibmm_nodetree/main.cc
+++ b/tests/glibmm_nodetree/main.cc
@@ -38,19 +38,19 @@ int main()
std::cout << "Breadth-first:" << std::endl;
- ta.traverse(echoslot, Glib::LEVEL_ORDER);
+ ta.traverse(echoslot, Glib::TRAVERSE_LEVEL_ORDER);
std::cout << std::endl;
std::cout << "Depth-first (pre):" << std::endl;
- ta.traverse(echoslot, Glib::PRE_ORDER);
+ ta.traverse(echoslot, Glib::TRAVERSE_PRE_ORDER);
std::cout << std::endl;
std::cout << "Depth-first (in):" << std::endl;
- ta.traverse(echoslot, Glib::IN_ORDER);
+ ta.traverse(echoslot, Glib::TRAVERSE_IN_ORDER);
std::cout << std::endl;
std::cout << "Depth-first (post):" << std::endl;
- ta.traverse(echoslot, Glib::POST_ORDER);
+ ta.traverse(echoslot, Glib::TRAVERSE_POST_ORDER);
std::cout << std::endl;
std::cout << "Leaf children of 'a':" << std::endl;
@@ -61,19 +61,19 @@ int main()
ta.foreach(sigc::bind<bool>(sigc::ptr_fun(echol), false));
std::cout << std::endl;
- type_nodetree_string* tmp = ta.find(e, Glib::IN_ORDER);
+ type_nodetree_string* tmp = ta.find(e);
if(!tmp)
std::cout << e << " not found" << std::endl;
else
std::cout << "Found " << (tmp->data()) << std::endl;
- tmp = ta.find(a, Glib::IN_ORDER);
+ tmp = ta.find(a);
if(!tmp)
std::cout << a << " not found" << std::endl;
else
std::cout << "Found " << (tmp->data()) << std::endl;
- tmp = ta.find("f", Glib::IN_ORDER);
+ tmp = ta.find("f");
if(!tmp)
std::cout << a << " not found" << std::endl;
else