[chronojump] Encoder preferences smooth in user localization



commit 4953955f3f2036d9ee4545f5a08487447c0329ee
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed May 1 19:31:47 2013 +0200

    Encoder preferences smooth in user localization

 glade/chronojump.glade |   10 ++++------
 src/gui/preferences.cs |    6 ++++++
 2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index 28b01be..5d665f3 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -25331,25 +25331,23 @@ show elevation as:</property>
                                     <property name="can_focus">False</property>
                                     <property name="spacing">8</property>
                                     <child>
-                                      <widget class="GtkLabel" id="label10">
+                                      <widget class="GtkLabel" id="label_encoder_ecc_con">
                                         <property name="visible">True</property>
                                         <property name="can_focus">False</property>
-                                        <property name="label" translatable="yes">0.6</property>
                                       </widget>
                                       <packing>
-                                        <property name="expand">False</property>
+                                        <property name="expand">True</property>
                                         <property name="fill">True</property>
                                         <property name="position">0</property>
                                       </packing>
                                     </child>
                                     <child>
-                                      <widget class="GtkLabel" id="label12">
+                                      <widget class="GtkLabel" id="label_encoder_con">
                                         <property name="visible">True</property>
                                         <property name="can_focus">False</property>
-                                        <property name="label" translatable="yes">0.7</property>
                                       </widget>
                                       <packing>
-                                        <property name="expand">False</property>
+                                        <property name="expand">True</property>
                                         <property name="fill">True</property>
                                         <property name="position">1</property>
                                       </packing>
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 52232f1..fb0e0ca 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -62,6 +62,8 @@ public class PreferencesWindow {
        [Widget] Gtk.CheckButton checkbutton_encoder_propulsive;
        [Widget] Gtk.SpinButton spin_encoder_smooth_ecc_con;
        [Widget] Gtk.SpinButton spin_encoder_smooth_con;
+       [Widget] Gtk.Label label_encoder_ecc_con;
+       [Widget] Gtk.Label label_encoder_con;
 
 //     [Widget] Gtk.Box hbox_language_row;
 //     [Widget] Gtk.Box hbox_combo_language;
@@ -184,6 +186,10 @@ public class PreferencesWindow {
                PreferencesWindowBox.spin_encoder_smooth_ecc_con.Value = encoderSmoothEccCon;
                PreferencesWindowBox.spin_encoder_smooth_con.Value = encoderSmoothCon;
 
+               //done here and not in glade to be shown with the decimal point of user language        
+               PreferencesWindowBox.label_encoder_ecc_con.Text = (0.6).ToString();
+               PreferencesWindowBox.label_encoder_con.Text = (0.7).ToString();
+
                PreferencesWindowBox.preferences.Show ();
                return PreferencesWindowBox;
        }


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