[chronojump] Eventboxes for person up/down buttons



commit 8ed799b52b7d964e7afa64e2d60224166e581a79
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Jul 23 14:20:30 2021 +0200

    Eventboxes for person up/down buttons

 glade/app1.glade     | 12 ++++++++++++
 src/gui/app1/menu.cs |  4 ++++
 2 files changed, 16 insertions(+)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 1d70f6d1c..784a8b019 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -927,6 +927,10 @@
                                                             <signal name="clicked" 
handler="on_treeview_persons_up" swapped="no"/>
                                                             <accelerator key="Up" signal="clicked" 
modifiers="GDK_CONTROL_MASK"/>
                                                             <child>
+                                                            <widget class="GtkEventBox" 
id="eventbox_persons_up">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <child>
                                                             <widget class="GtkArrow" id="arrow_up1">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -934,6 +938,8 @@
                                                             </widget>
                                                             </child>
                                                             </widget>
+                                                            </child>
+                                                            </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
@@ -952,6 +958,10 @@
                                                             <signal name="clicked" 
handler="on_treeview_persons_down" swapped="no"/>
                                                             <accelerator key="Down" signal="clicked" 
modifiers="GDK_CONTROL_MASK"/>
                                                             <child>
+                                                            <widget class="GtkEventBox" 
id="eventbox_persons_down">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <child>
                                                             <widget class="GtkArrow" id="arrow_down1">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -959,6 +969,8 @@
                                                             </widget>
                                                             </child>
                                                             </widget>
+                                                            </child>
+                                                            </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index 17e1f0231..e055be384 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -44,6 +44,8 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.EventBox eventbox_button_menu_news;
        [Widget] Gtk.EventBox eventbox_button_menu_exit;
        [Widget] Gtk.EventBox eventbox_check_manage_persons;
+       [Widget] Gtk.EventBox eventbox_persons_up;
+       [Widget] Gtk.EventBox eventbox_persons_down;
        [Widget] Gtk.EventBox eventbox_person_add_single;
        [Widget] Gtk.EventBox eventbox_person_add_multiple;
        [Widget] Gtk.EventBox eventbox_recuperate_person;
@@ -269,6 +271,8 @@ public partial class ChronoJumpWindow
                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_check_manage_persons, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_persons_up, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_persons_down, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_person_add_single, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_person_add_multiple, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_recuperate_person, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);


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