[chronojump] log button and exit confirm buttons with colorized eventboxes



commit 71b99c5aa73cd544a06d7d0fa3fd42335e97e969
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Apr 22 09:38:17 2020 +0200

    log button and exit confirm buttons with colorized eventboxes

 glade/app1.glade           | 44 +++++++++++++++++++++++++++++++++++++++-----
 src/gui/app1/chronojump.cs |  6 ++++++
 2 files changed, 45 insertions(+), 5 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 4bda7847..c1906dde 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -39384,13 +39384,25 @@ then click this button.</property>
                             <property name="can_focus">False</property>
                             <child>
                               <widget class="GtkButton" id="button_open_chronojump">
-                                <property name="label">Open Chronojump</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
                                 <property name="has_tooltip">True</property>
                                 <signal name="clicked" handler="on_button_open_chronojump_clicked" 
swapped="no"/>
                                 <accelerator key="Escape" signal="clicked"/>
+                                <child>
+                                  <widget class="GtkEventBox" id="eventbox_button_open_chronojump">
+                                    <property name="visible">True</property>
+                                    <property name="can_focus">False</property>
+                                    <child>
+                                      <widget class="GtkLabel" id="label520">
+                                        <property name="visible">True</property>
+                                        <property name="can_focus">False</property>
+                                        <property name="label" translatable="yes">Open Chronojump</property>
+                                      </widget>
+                                    </child>
+                                  </widget>
+                                </child>
                               </widget>
                               <packing>
                                 <property name="expand">False</property>
@@ -39492,12 +39504,23 @@ then click this button.</property>
                                                 <property name="can_focus">False</property>
                                                 <child>
                                                   <widget class="GtkButton" id="button_exit_cancel">
-                                                    <property name="label">gtk-cancel</property>
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">True</property>
                                                     <property name="receives_default">True</property>
-                                                    <property name="use_stock">True</property>
                                                     <signal name="clicked" 
handler="on_button_exit_cancel_clicked" swapped="no"/>
+                                                    <child>
+                                                      <widget class="GtkEventBox" 
id="eventbox_button_exit_cancel">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <child>
+                                                          <widget class="GtkLabel" id="label518">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Cancel</property>
+                                                          </widget>
+                                                        </child>
+                                                      </widget>
+                                                    </child>
                                                   </widget>
                                                   <packing>
                                                     <property name="expand">False</property>
@@ -39507,12 +39530,23 @@ then click this button.</property>
                                                 </child>
                                                 <child>
                                                   <widget class="GtkButton" id="button_exit_confirm">
-                                                    <property name="label">gtk-quit</property>
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">True</property>
                                                     <property name="receives_default">True</property>
-                                                    <property name="use_stock">True</property>
                                                     <signal name="clicked" 
handler="on_button_exit_confirm_clicked" swapped="no"/>
+                                                    <child>
+                                                      <widget class="GtkEventBox" 
id="eventbox_button_exit_confirm">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <child>
+                                                          <widget class="GtkLabel" id="label519">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Exit</property>
+                                                          </widget>
+                                                        </child>
+                                                      </widget>
+                                                    </child>
                                                   </widget>
                                                   <packing>
                                                     <property name="expand">False</property>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 6a4404eb..66b132df 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -90,6 +90,9 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.EventBox eventbox_radio_mode_contacts_analyze;
        [Widget] Gtk.EventBox eventbox_radio_mode_encoder_capture_small;
        [Widget] Gtk.EventBox eventbox_radio_mode_encoder_analyze_small;
+       [Widget] Gtk.EventBox eventbox_button_open_chronojump;
+       [Widget] Gtk.EventBox eventbox_button_exit_cancel;
+       [Widget] Gtk.EventBox eventbox_button_exit_confirm;
 
        [Widget] Gtk.HBox hbox_contacts_sup_capture_analyze_two_buttons;
        [Widget] Gtk.Alignment alignment_radio_mode_contacts_analyze;
@@ -599,6 +602,9 @@ public partial class ChronoJumpWindow
                UtilGtk.EventBoxColorBackgroundActive (eventbox_radio_mode_contacts_analyze, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_radio_mode_encoder_capture_small, 
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
                UtilGtk.EventBoxColorBackgroundActive (eventbox_radio_mode_encoder_analyze_small, 
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_open_chronojump, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_exit_cancel, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
+               UtilGtk.EventBoxColorBackgroundActive (eventbox_button_exit_confirm, UtilGtk.YELLOW, 
UtilGtk.YELLOW_LIGHT);
                app1s_eventboxes_paint();
 
                createComboSelectJumps(true);


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