[chronojump] ForceSensorCaptureScroll is the default method



commit 1513e5a85f0141fa3f7f41813d8d70958f71e131
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Oct 9 15:28:03 2019 +0200

    ForceSensorCaptureScroll is the default method

 glade/preferences_win.glade | 46 +++++++++++----------------------------------
 src/sqlite/main.cs          |  2 +-
 src/sqlite/preferences.cs   |  2 +-
 3 files changed, 13 insertions(+), 37 deletions(-)
---
diff --git a/glade/preferences_win.glade b/glade/preferences_win.glade
index 95d8dce4..a3b494d0 100644
--- a/glade/preferences_win.glade
+++ b/glade/preferences_win.glade
@@ -3414,37 +3414,13 @@ Other</property>
                                         <property name="can_focus">False</property>
                                         <property name="spacing">10</property>
                                         <child>
-                                          <widget class="GtkHBox" id="hbox48">
+                                          <widget class="GtkRadioButton" 
id="radio_force_sensor_capture_scroll">
+                                            <property name="label" translatable="yes">Scroll</property>
                                             <property name="visible">True</property>
-                                            <property name="can_focus">False</property>
-                                            <property name="spacing">20</property>
-                                            <child>
-                                              <widget class="GtkRadioButton" 
id="radio_force_sensor_capture_zoom_out">
-                                                <property name="label" translatable="yes">Zoom out</property>
-                                                <property name="visible">True</property>
-                                                <property name="can_focus">True</property>
-                                                <property name="receives_default">False</property>
-                                                <property name="active">True</property>
-                                                <property name="draw_indicator">True</property>
-                                              </widget>
-                                              <packing>
-                                                <property name="expand">False</property>
-                                                <property name="fill">False</property>
-                                                <property name="position">0</property>
-                                              </packing>
-                                            </child>
-                                            <child>
-                                              <widget class="GtkLabel" id="label119">
-                                                <property name="visible">True</property>
-                                                <property name="can_focus">False</property>
-                                                <property name="label" 
translatable="yes">(default)</property>
-                                              </widget>
-                                              <packing>
-                                                <property name="expand">False</property>
-                                                <property name="fill">False</property>
-                                                <property name="position">1</property>
-                                              </packing>
-                                            </child>
+                                            <property name="can_focus">True</property>
+                                            <property name="receives_default">False</property>
+                                            <property name="active">True</property>
+                                            <property name="draw_indicator">True</property>
                                           </widget>
                                           <packing>
                                             <property name="expand">False</property>
@@ -3453,18 +3429,18 @@ Other</property>
                                           </packing>
                                         </child>
                                         <child>
-                                          <widget class="GtkRadioButton" 
id="radio_force_sensor_capture_scroll">
-                                            <property name="label" translatable="yes">Scroll</property>
+                                          <widget class="GtkRadioButton" 
id="radio_force_sensor_capture_zoom_out">
+                                            <property name="label" translatable="yes">Zoom out</property>
                                             <property name="visible">True</property>
                                             <property name="can_focus">True</property>
                                             <property name="receives_default">False</property>
                                             <property name="active">True</property>
                                             <property name="draw_indicator">True</property>
-                                            <property 
name="group">radio_force_sensor_capture_zoom_out</property>
+                                            <property 
name="group">radio_force_sensor_capture_scroll</property>
                                           </widget>
                                           <packing>
-                                            <property name="expand">True</property>
-                                            <property name="fill">True</property>
+                                            <property name="expand">False</property>
+                                            <property name="fill">False</property>
                                             <property name="position">1</property>
                                           </packing>
                                         </child>
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index 612c5906..65da2e2e 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -2474,7 +2474,7 @@ class Sqlite
                                LogB.SQL("Inserted into preferences: forceSensorCaptureWidthSeconds, 
forceSensorCaptureScroll");
 
                                SqlitePreferences.Insert (SqlitePreferences.ForceSensorCaptureWidthSeconds, 
"10");
-                               SqlitePreferences.Insert (SqlitePreferences.ForceSensorCaptureScroll, 
"False");
+                               SqlitePreferences.Insert (SqlitePreferences.ForceSensorCaptureScroll, "True");
 
                                currentVersion = updateVersion("1.72");
                        }
diff --git a/src/sqlite/preferences.cs b/src/sqlite/preferences.cs
index 7f52d67b..e8abcc1e 100644
--- a/src/sqlite/preferences.cs
+++ b/src/sqlite/preferences.cs
@@ -183,7 +183,7 @@ class SqlitePreferences : Sqlite
 
                                //forceSensor
                                Insert (ForceSensorCaptureWidthSeconds, "10", dbcmdTr);
-                               Insert (ForceSensorCaptureScroll, "False"); //no scroll. zoom out
+                               Insert (ForceSensorCaptureScroll, "True"); //scroll. not zoom out
 
                                //multimedia
                                Insert ("videoDevice", "", dbcmdTr); //first


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