[chronojump] While capture, menu is insensitive



commit 9a722b047238a0804bdb9d1c402040d0b907e43e
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Apr 2 12:31:25 2020 +0200

    While capture, menu is insensitive

 glade/app1.glade           | 32 +++++++++++++++++++-------------
 src/gui/app1/chronojump.cs | 12 +++++++++---
 src/gui/app1/menu.cs       |  4 ++--
 3 files changed, 30 insertions(+), 18 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index a10cbcb0..fe500c00 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1228,7 +1228,7 @@
                                             <property name="can_focus">False</property>
                                             <property name="spacing">4</property>
                                             <child>
-                                              <widget class="GtkAlignment" id="alignment_menu_and_persons">
+                                              <widget class="GtkAlignment" 
id="alignment_buttons_menu_and_persons">
                                                 <property name="can_focus">False</property>
                                                 <property name="top_padding">3</property>
                                                 <property name="bottom_padding">4</property>
@@ -24777,6 +24777,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -27093,18 +27096,6 @@ 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>
@@ -27141,6 +27132,18 @@ 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>
@@ -34756,6 +34759,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 404d21fe..95e8133a 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -2420,7 +2420,7 @@ public partial class ChronoJumpWindow
                        sensitiveGuiYesSession();
 
                        if( ! configChronojump.PersonWinHide) {
-                               alignment_menu_and_persons.Visible = true;
+                               alignment_buttons_menu_and_persons.Visible = true;
                                //on_radio_show_persons_clicked (new object (), new EventArgs ());
                                radio_show_persons.Active = true;
                        }
@@ -2508,7 +2508,7 @@ public partial class ChronoJumpWindow
                sensitiveGuiYesSession();
 
                if( ! configChronojump.PersonWinHide) {
-                       alignment_menu_and_persons.Visible = true;
+                       alignment_buttons_menu_and_persons.Visible = true;
                        //on_radio_show_persons_clicked (new object (), new EventArgs ());
                        radio_show_persons.Active = true;
                }
@@ -3072,7 +3072,7 @@ public partial class ChronoJumpWindow
                configInitFromPreferences();
 
                if( ! configChronojump.PersonWinHide && currentSession != null) {
-                       alignment_menu_and_persons.Visible = true;
+                       alignment_buttons_menu_and_persons.Visible = true;
                        //on_radio_show_persons_clicked (new object (), new EventArgs ());
                        radio_show_persons.Active = true;
                }
@@ -7488,6 +7488,9 @@ LogB.Debug("mc finished 5");
        
        private void sensitiveGuiEventDoing (bool cont)
        {
+               radio_show_menu.Sensitive = false;
+               viewport_menu.Sensitive = false;
+               vbox_menu_tiny.Sensitive = false;
                session_menuitem.Sensitive = false;
                menuitem_mode.Sensitive = false;
                //encoder_menuitem.Sensitive = false;
@@ -7557,6 +7560,9 @@ LogB.Debug("mc finished 5");
        {
                LogB.Information(" sensitiveGuiEventDone start ");
 
+               radio_show_menu.Sensitive = true;
+               viewport_menu.Sensitive = true;
+               vbox_menu_tiny.Sensitive = true;
                session_menuitem.Sensitive = true;
                menuitem_mode.Sensitive = true;
                //encoder_menuitem.Sensitive = true;
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index cf9a35b0..fa3ab2d6 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -27,7 +27,7 @@ using System.Collections.Generic; //List
 
 public partial class ChronoJumpWindow
 {
-       [Widget] Gtk.Alignment alignment_menu_and_persons;
+       [Widget] Gtk.Alignment alignment_buttons_menu_and_persons;
        [Widget] Gtk.Arrow arrow_menu_show_session_up;
        [Widget] Gtk.Arrow arrow_menu_show_session_down;
        [Widget] Gtk.Arrow arrow_menu_show_help_up;
@@ -287,7 +287,7 @@ public partial class ChronoJumpWindow
         */
        private void menus_sensitive_import_not_danger(bool danger)
        {
-               alignment_menu_and_persons.Sensitive = danger;
+               alignment_buttons_menu_and_persons.Sensitive = danger;
                vbox_menu_session.Sensitive = danger;
                vbox_menu_session1.Sensitive = danger;
                button_menu_preferences.Sensitive = danger;


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