[chronojump] Shown decimal separator on run_type_add
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Shown decimal separator on run_type_add
- Date: Thu, 15 Apr 2021 15:34:30 +0000 (UTC)
commit 5c77169ef2615bae4bb97158e75dd207504c22d9
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Apr 15 17:34:13 2021 +0200
Shown decimal separator on run_type_add
glade/run_type_add.glade | 11 +++++++++++
src/gui/runType.cs | 5 +++++
2 files changed, 16 insertions(+)
---
diff --git a/glade/run_type_add.glade b/glade/run_type_add.glade
index 146b9b33..516a6324 100644
--- a/glade/run_type_add.glade
+++ b/glade/run_type_add.glade
@@ -543,6 +543,17 @@ suitable for agility tests and RSA)</property>
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <widget class="GtkLabel" id="label_decimal_separator">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="expand">True</property>
diff --git a/src/gui/runType.cs b/src/gui/runType.cs
index 159c1cad..77c161d7 100644
--- a/src/gui/runType.cs
+++ b/src/gui/runType.cs
@@ -62,6 +62,7 @@ public class RunTypeAddWindow
[Widget] Gtk.Alignment alignment_vbox_distance_variable;
[Widget] Gtk.ComboBox combo_distance_different_tracks;
[Widget] Gtk.HBox hbox_distance_variable;
+ [Widget] Gtk.Label label_decimal_separator;
[Widget] Gtk.TextView textview_description;
@@ -161,6 +162,10 @@ public class RunTypeAddWindow
combo_distance_different_tracks.Active = 0;
reset_hbox_distance_variable (2);
+ System.Globalization.NumberFormatInfo localeInfo = new
System.Globalization.NumberFormatInfo();
+ localeInfo = System.Globalization.NumberFormatInfo.CurrentInfo;
+ label_decimal_separator.Text += string.Format(Catalog.GetString("(decimal separator:
'{0}')"), localeInfo.NumberDecimalSeparator);
+
textview_description.Buffer.Changed += new EventHandler(descriptionChanged);
descriptionChanging = false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]