[glom/gtkmm4v4] Adapt to changed libgdamm Time API.



commit 99dfdc5987edef6a1ea7386b606e484689052569
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Oct 31 23:22:57 2017 +0100

    Adapt to changed libgdamm Time API.

 glom/libglom/data_structure/glomconversions.cc |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/glom/libglom/data_structure/glomconversions.cc b/glom/libglom/data_structure/glomconversions.cc
index c13429c..4c3e78d 100644
--- a/glom/libglom/data_structure/glomconversions.cc
+++ b/glom/libglom/data_structure/glomconversions.cc
@@ -467,9 +467,9 @@ Glib::ustring Conversions::get_text_for_gda_value(Field::glom_field_type glom_ty
 
       //tm the_c_time = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
 
-      the_c_time.tm_hour = gda_time.hour;
-      the_c_time.tm_min = gda_time.minute;
-      the_c_time.tm_sec = gda_time.second;
+      the_c_time.tm_hour = gda_time.get_hour();
+      the_c_time.tm_min = gda_time.get_minute();
+      the_c_time.tm_sec = gda_time.get_second();
     }
     else
     {
@@ -647,9 +647,9 @@ Gnome::Gda::Value Conversions::parse_value(Field::glom_field_type glom_type, con
     }
 
     Gnome::Gda::Time gda_time = {0, 0, 0, 0, 0};
-    gda_time.hour = the_c_time.tm_hour;
-    gda_time.minute = the_c_time.tm_min;
-    gda_time.second = the_c_time.tm_sec;
+    gda_time.set_hour(the_c_time.tm_hour);
+    gda_time.set_minute(the_c_time.tm_min);
+    gda_time.set_second(the_c_time.tm_sec);
 
     return Gnome::Gda::Value(gda_time);
   }


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