[chronojump] When persons mange is unfolded, show button in yellow



commit 269c66d9dd6a4a68c181ae1cad064e970ed4c7dd
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jul 21 13:45:35 2021 +0200

    When persons mange is unfolded, show button in yellow

 glade/app1.glade                  | 18 ++++++++++--------
 src/gui/app1/chronojumpPersons.cs |  2 +-
 src/gui/app1/menu.cs              |  9 +++++----
 3 files changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 46b069497..02f9fd9ad 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1544,16 +1544,16 @@
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">8</property>
                                                             <child>
-                                                            <widget class="GtkButton" 
id="button_manage_persons">
+                                                            <widget class="GtkCheckButton" 
id="check_manage_persons">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
-                                                            <property name="can_default">True</property>
-                                                            <property name="receives_default">True</property>
-                                                            <property name="has_tooltip">True</property>
-                                                            <property name="tooltip" 
translatable="yes">Manage persons</property>
-                                                            <property name="relief">half</property>
-                                                            <property name="xalign">0</property>
-                                                            <signal name="clicked" 
handler="on_button_manage_persons_clicked" swapped="no"/>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="draw_indicator">False</property>
+                                                            <signal name="clicked" 
handler="on_check_manage_persons_clicked" swapped="no"/>
+                                                            <child>
+                                                            <widget class="GtkEventBox" 
id="eventbox_check_manage_persons">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
                                                             <child>
                                                             <widget class="GtkHBox" id="hbox386">
                                                             <property name="visible">True</property>
@@ -1620,6 +1620,8 @@
                                                             </widget>
                                                             </child>
                                                             </widget>
+                                                            </child>
+                                                            </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
diff --git a/src/gui/app1/chronojumpPersons.cs b/src/gui/app1/chronojumpPersons.cs
index a03168c9f..2fab16c8b 100644
--- a/src/gui/app1/chronojumpPersons.cs
+++ b/src/gui/app1/chronojumpPersons.cs
@@ -52,7 +52,7 @@ public partial class ChronoJumpWindow
                }
        }
 
-       private void on_button_manage_persons_clicked (object o, EventArgs args)
+       private void on_check_manage_persons_clicked (object o, EventArgs args)
        {
                if(vbox_manage_persons.Visible)
                {
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index d297f0d2c..c60ceecb1 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -43,6 +43,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.EventBox eventbox_button_menu_help;
        [Widget] Gtk.EventBox eventbox_button_menu_news;
        [Widget] Gtk.EventBox eventbox_button_menu_exit;
+       [Widget] Gtk.EventBox eventbox_check_manage_persons;
        [Widget] Gtk.CheckButton check_menu_session;
        [Widget] Gtk.Button button_menu_help;
        [Widget] Gtk.Button button_menu_news;
@@ -242,14 +243,14 @@ public partial class ChronoJumpWindow
                }
 
                UtilGtk.EventBoxColorBackgroundActive (eventbox_check_menu_session, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_new, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_load, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_more, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_preferences, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_help, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_news, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_exit, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
-
-               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_new, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
-               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_load, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
-               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_more, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_check_manage_persons, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
        }
 
        private void menuShowVerticalArrow (bool selected, Gtk.Arrow a_up, Gtk.Arrow a_down)


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