[chronojump] At exhibition: do not allow to open session (standard mode)



commit 9a4cb4c4d81bbdb9f065e8f56bb0a3165bac2605
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Feb 25 01:15:42 2019 +0100

    At exhibition: do not allow to open session (standard mode)

 glade/app1.glade      | 19 +++++++++++--------
 src/gui/chronojump.cs |  1 +
 src/gui/exhibition.cs |  1 +
 3 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 56a45bf3..26347183 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -25,7 +25,7 @@
                   <widget class="GtkMenu" id="session_menu">
                     <property name="can_focus">False</property>
                     <child>
-                      <widget class="GtkImageMenuItem" id="session_new">
+                      <widget class="GtkImageMenuItem" id="menuitem_new_session">
                         <property name="label" translatable="yes">New session</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
@@ -42,7 +42,7 @@
                       </widget>
                     </child>
                     <child>
-                      <widget class="GtkImageMenuItem" id="open1">
+                      <widget class="GtkImageMenuItem" id="menuitem_open_session">
                         <property name="label" translatable="yes">_Load</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
@@ -1848,6 +1848,9 @@
                                                             <placeholder/>
                                                             </child>
                                                             <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkLabel" 
id="label_start_selector_jumps">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -20201,12 +20204,6 @@ Concentric</property>
                                                             <placeholder/>
                                                             </child>
                                                             <child>
-                                                            <placeholder/>
-                                                            </child>
-                                                            <child>
-                                                            <placeholder/>
-                                                            </child>
-                                                            <child>
                                                             <widget class="GtkCheckButton" 
id="checkbutton_force_sensor_ai_b">
                                                             <property name="width_request">30</property>
                                                             <property name="visible">True</property>
@@ -20349,6 +20346,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -28680,6 +28680,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 2a748ad9..47fa800e 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -42,6 +42,7 @@ public partial class ChronoJumpWindow
 {
        [Widget] Gtk.Window app1;
        [Widget] Gtk.MenuBar main_menu;
+       [Widget] Gtk.MenuItem menuitem_open_session;
        [Widget] Gtk.MenuItem menuitem_mode;
        
        [Widget] Gtk.HBox hbox_gui_tests;
diff --git a/src/gui/exhibition.cs b/src/gui/exhibition.cs
index 3af39da4..2249b837 100644
--- a/src/gui/exhibition.cs
+++ b/src/gui/exhibition.cs
@@ -42,6 +42,7 @@ public partial class ChronoJumpWindow
                                exhibitionStationType == ExhibitionTest.testTypes.FORCE_SHOT)
                        on_button_selector_start_force_sensor_clicked (new object (), new EventArgs());
 
+               menuitem_open_session.Sensitive = false; //do not allow menu open to work (it could be really 
slow)
                frame_exhibition.Visible = true;
                notebook_session_person.CurrentPage = 1;
                frame_persons.Sensitive = true;


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