[glom/gtkmm4v4] Adapt to changed libgdamm Gnome::Gda::Time API.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gtkmm4v4] Adapt to changed libgdamm Gnome::Gda::Time API.
- Date: Wed, 1 Nov 2017 19:07:20 +0000 (UTC)
commit 5de086f2cdc691215a73d7027e8cfa8adfd4f172
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Nov 1 16:08:25 2017 +0100
Adapt to changed libgdamm Gnome::Gda::Time API.
glom/dialog_invalid_data.cc | 8 ++++----
glom/utils_ui.cc | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/glom/dialog_invalid_data.cc b/glom/dialog_invalid_data.cc
index 3236b62..ae814d3 100644
--- a/glom/dialog_invalid_data.cc
+++ b/glom/dialog_invalid_data.cc
@@ -68,10 +68,10 @@ void Dialog_InvalidData::set_example_data(Field::glom_field_type glom_type)
}
case(Field::glom_field_type::TIME):
{
- Gnome::Gda::Time time = {0, 0, 0, 0, 0};
- time.hour = 13;
- time.minute = 02;
- time.second = 03;
+ Gnome::Gda::Time time = {13 /* hour */,
+ 02, /* minute */
+ 03, /* second */
+ 0, 0};
example_text = Conversions::get_text_for_gda_value(glom_type, Gnome::Gda::Value(time));
break;
}
diff --git a/glom/utils_ui.cc b/glom/utils_ui.cc
index a7dd02d..e7bac7d 100644
--- a/glom/utils_ui.cc
+++ b/glom/utils_ui.cc
@@ -337,10 +337,10 @@ int UiUtils::get_suitable_field_width_for_widget(Gtk::Widget& widget, const std:
}
case(Field::glom_field_type::TIME):
{
- Gnome::Gda::Time time = {0, 0, 0, 0, 0};
- time.hour = 24;
- time.minute = 59;
- time.second = 59;
+ Gnome::Gda::Time time(24, /* hour */
+ 59, /* minute */
+ 59, /* second */
+ 0, 0);
example_text = Conversions::get_text_for_gda_value(field_type, Gnome::Gda::Value(time));
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]