[chronojump] MenuTiny subuttons with YELLOW_LIGHT



commit 0e47a34edc669a2da7e700f46b1d57f569910d2a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Mar 26 02:08:36 2020 +0100

    MenuTiny subuttons with YELLOW_LIGHT

 glade/app1.glade          | 100 ++++++++++++++++++++++++++++++++++------------
 src/gui/app1/menu_tiny.cs |  16 ++++++++
 2 files changed, 90 insertions(+), 26 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 3d363aff..14f47c78 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -860,10 +860,16 @@
                                                 <property name="relief">half</property>
                                                 <signal name="clicked" handler="on_new_activate" 
swapped="no"/>
                                                 <child>
-                                                  <widget class="GtkImage" id="image_session_new1">
+                                                  <widget class="GtkEventBox" 
id="eventbox_button_menu_session_new1">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="stock">gtk-missing-image</property>
+                                                    <child>
+                                                      <widget class="GtkImage" id="image_session_new1">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <property name="stock">gtk-missing-image</property>
+                                                      </widget>
+                                                    </child>
                                                   </widget>
                                                 </child>
                                               </widget>
@@ -884,10 +890,16 @@
                                                 <property name="relief">half</property>
                                                 <signal name="clicked" handler="on_open_activate" 
swapped="no"/>
                                                 <child>
-                                                  <widget class="GtkImage" id="image_session_load1">
+                                                  <widget class="GtkEventBox" 
id="eventbox_button_menu_session_load1">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="stock">gtk-missing-image</property>
+                                                    <child>
+                                                      <widget class="GtkImage" id="image_session_load1">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <property name="stock">gtk-missing-image</property>
+                                                      </widget>
+                                                    </child>
                                                   </widget>
                                                 </child>
                                               </widget>
@@ -909,10 +921,16 @@
                                                 <property name="relief">half</property>
                                                 <signal name="clicked" handler="on_edit_session_activate" 
swapped="no"/>
                                                 <child>
-                                                  <widget class="GtkImage" id="image_session_edit1">
+                                                  <widget class="GtkEventBox" 
id="eventbox_button_menu_session_edit1">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="stock">gtk-open</property>
+                                                    <child>
+                                                      <widget class="GtkImage" id="image_session_edit1">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <property name="stock">gtk-open</property>
+                                                      </widget>
+                                                    </child>
                                                   </widget>
                                                 </child>
                                               </widget>
@@ -934,10 +952,16 @@
                                                 <property name="relief">half</property>
                                                 <signal name="clicked" handler="on_delete_session_activate" 
swapped="no"/>
                                                 <child>
-                                                  <widget class="GtkImage" id="image_session_delete1">
+                                                  <widget class="GtkEventBox" 
id="eventbox_button_menu_session_delete1">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="stock">gtk-open</property>
+                                                    <child>
+                                                      <widget class="GtkImage" id="image_session_delete1">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <property name="stock">gtk-open</property>
+                                                      </widget>
+                                                    </child>
                                                   </widget>
                                                 </child>
                                               </widget>
@@ -1136,10 +1160,16 @@
                                                 <property name="receives_default">True</property>
                                                 <signal name="clicked" handler="on_menuitem_manual_activate" 
swapped="no"/>
                                                 <child>
-                                                  <widget class="GtkImage" id="image_menu_help_documents1">
+                                                  <widget class="GtkEventBox" 
id="eventbox_button_menu_help_documents1">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="stock">gtk-missing-image</property>
+                                                    <child>
+                                                      <widget class="GtkImage" 
id="image_menu_help_documents1">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <property name="stock">gtk-missing-image</property>
+                                                      </widget>
+                                                    </child>
                                                   </widget>
                                                 </child>
                                               </widget>
@@ -1156,10 +1186,16 @@
                                                 <property name="receives_default">True</property>
                                                 <signal name="clicked" 
handler="on_menuitem_accelerators_activate" swapped="no"/>
                                                 <child>
-                                                  <widget class="GtkImage" 
id="image_menu_help_accelerators1">
+                                                  <widget class="GtkEventBox" 
id="eventbox_button_menu_help_accelerators1">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="stock">gtk-missing-image</property>
+                                                    <child>
+                                                      <widget class="GtkImage" 
id="image_menu_help_accelerators1">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <property name="stock">gtk-missing-image</property>
+                                                      </widget>
+                                                    </child>
                                                   </widget>
                                                 </child>
                                               </widget>
@@ -1176,10 +1212,16 @@
                                                 <property name="receives_default">True</property>
                                                 <signal name="clicked" handler="on_about1_activate" 
swapped="no"/>
                                                 <child>
-                                                  <widget class="GtkImage" id="image_menu_help_about1">
+                                                  <widget class="GtkEventBox" 
id="eventbox_button_menu_help_about1">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="stock">gtk-missing-image</property>
+                                                    <child>
+                                                      <widget class="GtkImage" id="image_menu_help_about1">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <property name="stock">gtk-missing-image</property>
+                                                      </widget>
+                                                    </child>
                                                   </widget>
                                                 </child>
                                               </widget>
@@ -25203,6 +25245,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -27517,18 +27562,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>
@@ -27565,6 +27598,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>
@@ -35064,6 +35109,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/menu_tiny.cs b/src/gui/app1/menu_tiny.cs
index 4c827ca8..76a54400 100644
--- a/src/gui/app1/menu_tiny.cs
+++ b/src/gui/app1/menu_tiny.cs
@@ -34,8 +34,15 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.VBox vbox_menu_tiny;
        [Widget] Gtk.EventBox eventbox_button_show_modes1;
        [Widget] Gtk.EventBox eventbox_check_menu_session1;
+       [Widget] Gtk.EventBox eventbox_button_menu_session_new1;
+       [Widget] Gtk.EventBox eventbox_button_menu_session_load1;
+       [Widget] Gtk.EventBox eventbox_button_menu_session_edit1;
+       [Widget] Gtk.EventBox eventbox_button_menu_session_delete1;
        [Widget] Gtk.EventBox eventbox_button_menu_preferences1;
        [Widget] Gtk.EventBox eventbox_check_menu_help1;
+       [Widget] Gtk.EventBox eventbox_button_menu_help_documents1;
+       [Widget] Gtk.EventBox eventbox_button_menu_help_accelerators1;
+       [Widget] Gtk.EventBox eventbox_button_menu_help_about1;
        [Widget] Gtk.EventBox eventbox_button_menu_exit1;
        [Widget] Gtk.CheckButton check_menu_session1;
        [Widget] Gtk.CheckButton check_menu_help1;
@@ -79,6 +86,15 @@ public partial class ChronoJumpWindow
                UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_preferences1, UtilGtk.YELLOW);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_check_menu_help1, UtilGtk.YELLOW);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_exit1, UtilGtk.YELLOW);
+
+
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_new1, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_load1, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_edit1, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_session_delete1, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_help_documents1, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_help_accelerators1, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_help_about1, 
UtilGtk.YELLOW_LIGHT);
        }
 
        private void on_check_menu_session1_clicked (object o, EventArgs args)


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