[glom/gtkmm4v4] gtkmm4: tests: Adapt to new-style enums.



commit 2aca864da1021bbd7cd590b203637125dfb552b2
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Apr 15 21:36:28 2017 +0200

    gtkmm4: tests: Adapt to new-style enums.

 tests/python/test_python_execute_func_date.cc |    2 +-
 tests/test_field_file_format.cc               |    2 +-
 tests/test_selfhosting_utils.cc               |    2 +-
 tests/test_xml_utils.cc                       |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/python/test_python_execute_func_date.cc b/tests/python/test_python_execute_func_date.cc
index d46ca84..32a4b25 100644
--- a/tests/python/test_python_execute_func_date.cc
+++ b/tests/python/test_python_execute_func_date.cc
@@ -49,7 +49,7 @@ void execute_func_with_date_input_value()
   const char* calculation = "import datetime\n"
                             "return record[\"test_field\"].year";
   Glom::type_map_fields field_values;
-  const auto input_date = Glib::Date(11, Glib::Date::MAY, 1973);
+  const auto input_date = Glib::Date(11, Glib::Date::Month::MAY, 1973);
   field_values["test_field"] = Gnome::Gda::Value(input_date);
   Glib::RefPtr<Gnome::Gda::Connection> connection;
 
diff --git a/tests/test_field_file_format.cc b/tests/test_field_file_format.cc
index 98a7918..10134fd 100644
--- a/tests/test_field_file_format.cc
+++ b/tests/test_field_file_format.cc
@@ -77,7 +77,7 @@ int main()
   if(!test_value(Glom::Field::glom_field_type::TEXT, Gnome::Gda::Value(str)))
     return EXIT_FAILURE;
 
-  const Glib::Date date(11, Glib::Date::MAY, 1973);
+  const Glib::Date date(11, Glib::Date::Month::MAY, 1973);
   if(!test_value(Glom::Field::glom_field_type::DATE, Gnome::Gda::Value(date)))
     return EXIT_FAILURE;
 
diff --git a/tests/test_selfhosting_utils.cc b/tests/test_selfhosting_utils.cc
index 84ca1e4..00f4325 100644
--- a/tests/test_selfhosting_utils.cc
+++ b/tests/test_selfhosting_utils.cc
@@ -92,7 +92,7 @@ static bool delete_directory(const Glib::RefPtr<Gio::File>& directory)
   {
     auto child = directory->get_child(info->get_name());
     bool removed_child = false;
-    if(child->query_file_type() == Gio::FILE_TYPE_DIRECTORY)
+    if(child->query_file_type() == Gio::FileType::DIRECTORY)
       removed_child = delete_directory(child);
     else
       removed_child = child->remove();
diff --git a/tests/test_xml_utils.cc b/tests/test_xml_utils.cc
index ddc86f9..313b978 100644
--- a/tests/test_xml_utils.cc
+++ b/tests/test_xml_utils.cc
@@ -59,7 +59,7 @@ int main()
   if(!test_value(Glom::Field::glom_field_type::TEXT, Gnome::Gda::Value(str)))
     return EXIT_FAILURE;
 
-  const Glib::Date date(11, Glib::Date::MAY, 1973);
+  const Glib::Date date(11, Glib::Date::Month::MAY, 1973);
   if(!test_value(Glom::Field::glom_field_type::DATE, Gnome::Gda::Value(date)))
     return EXIT_FAILURE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]