[chronojump] Cont of last commits



commit 79b35eb936999cd960fb0f288b2f3cf66d5bf871
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Oct 13 17:39:24 2022 +0200

    Cont of last commits

 glade/app1.glade          |  2 +-
 src/gui/app1/menu.cs      | 10 ++++++++++
 src/gui/app1/menu_tiny.cs |  1 +
 3 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index cfc73d8d5..b7bbb9a8c 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -2004,7 +2004,7 @@
                                       </packing>
                                     </child>
                                     <child>
-                                      <widget class="GtkHBox" id="hbox340">
+                                      <widget class="GtkHBox" id="hbox_prefs_help_news_exit">
                                         <property name="visible">True</property>
                                         <property name="can_focus">False</property>
                                         <child>
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index d2eb2a093..f62997142 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -84,6 +84,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Button button_menu_help_shortcuts;
        [Widget] Gtk.Button button_menu_help_about;
        [Widget] Gtk.Button button_menu_guiTest;
+       [Widget] Gtk.Button hbox_prefs_help_news_exit;
 
        //just to manage width
        [Widget] Gtk.Image image_session_import;
@@ -293,10 +294,19 @@ public partial class ChronoJumpWindow
                {
                        app1s_notebook_sup_entered_from = notebook_sup.CurrentPage;
                        notebook_sup.CurrentPage = Convert.ToInt32(notebook_sup_pages.PERSON);
+
+                       //do not allow to use session buttons to not confuse the button_close actions
+                       vbuttonbox_menu_session.Sensitive = false;
+                       hbox_prefs_help_news_exit.Sensitive = false;
+
                        arrow_manage_persons_left.Visible = true;
                        arrow_manage_persons_right.Visible = false;
                } else {
                        notebook_sup.CurrentPage = app1s_notebook_sup_entered_from;
+
+                       vbuttonbox_menu_session.Sensitive = true;
+                       hbox_prefs_help_news_exit.Sensitive = true;
+
                        arrow_manage_persons_left.Visible = false;
                        arrow_manage_persons_right.Visible = true;;
                }
diff --git a/src/gui/app1/menu_tiny.cs b/src/gui/app1/menu_tiny.cs
index 1724e1c8f..dfd9df29b 100644
--- a/src/gui/app1/menu_tiny.cs
+++ b/src/gui/app1/menu_tiny.cs
@@ -32,6 +32,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Arrow arrow_menu_show_session_down1;
        [Widget] Gtk.VBox vbox_menu_tiny;
        [Widget] Gtk.VBox vbox_menu_tiny_menu; //really the menu (without the logos at the bottom)
+       [Widget] Gtk.VBox vbox_manage_sessions1;
        [Widget] Gtk.EventBox eventbox_button_menu_database;
        [Widget] Gtk.EventBox eventbox_check_menu_session1;
        [Widget] Gtk.EventBox eventbox_button_menu_session_more1;


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