[chronojump] raspberry load session up/down buttons better



commit 3019b233415ade4eb706e70028f742884c15be6b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Nov 24 15:29:51 2020 +0100

    raspberry load session up/down buttons better

 glade/app1.glade    | 37 ++++++++++++++++++++++---------------
 src/gui/networks.cs |  4 ++--
 2 files changed, 24 insertions(+), 17 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index d1470008..d5c6bdf1 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -23208,6 +23208,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -28029,6 +28032,18 @@ Concentric</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">6</property>
                                                             <child>
+                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="pack_type">end</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_capturing">
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">4</property>
@@ -28065,18 +28080,6 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
-                                                            <property name="can_focus">False</property>
-                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="pack_type">end</property>
-                                                            <property name="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_no_capturing">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -36219,6 +36222,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -38278,11 +38284,12 @@ then click this button.</property>
                                                       </packing>
                                                     </child>
                                                     <child>
-                                                      <widget class="GtkVBox" id="vbox_sessions_raspberry">
+                                                      <widget class="GtkHBox" id="hbox_sessions_raspberry">
                                                         <property name="can_focus">False</property>
-                                                        <property name="spacing">6</property>
+                                                        <property name="spacing">16</property>
                                                         <child>
                                                           <widget class="GtkButton" 
id="button_sessions_raspberry_up">
+                                                            <property name="width_request">50</property>
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
                                                             <property name="receives_default">True</property>
@@ -38303,6 +38310,7 @@ then click this button.</property>
                                                         </child>
                                                         <child>
                                                           <widget class="GtkButton" 
id="button_sessions_raspberry_down">
+                                                            <property name="width_request">50</property>
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
                                                             <property name="receives_default">True</property>
@@ -38325,7 +38333,6 @@ then click this button.</property>
                                                       <packing>
                                                         <property name="expand">False</property>
                                                         <property name="fill">False</property>
-                                                        <property name="pack_type">end</property>
                                                         <property name="position">1</property>
                                                       </packing>
                                                     </child>
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 9a682b4c..f1861fe7 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -49,7 +49,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Label label_logout_seconds_encoder;
        
        //better raspberry controls
-       [Widget] Gtk.VBox vbox_sessions_raspberry;
+       [Widget] Gtk.HBox hbox_sessions_raspberry;
        [Widget] Gtk.HBox hbox_persons_raspberry;
        [Widget] Gtk.Box hbox_encoder_capture_extra_mass_no_raspberry;
        [Widget] Gtk.Box hbox_encoder_capture_extra_mass_raspberry;
@@ -236,7 +236,7 @@ public partial class ChronoJumpWindow
                if(configChronojump.Raspberry)
                {
                        //make easiers to use some treeviews
-                       vbox_sessions_raspberry.Visible = true;
+                       hbox_sessions_raspberry.Visible = true;
 
                        //on raspberry with VNC the main hpaned cannot be moved, so show this buttons
                        hbox_persons_raspberry.Visible = true;


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