[chronojump] menu tiny aligned vertically with notebook_sup



commit 9157d7ce05f284a82380726d2b7993de4498512a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Apr 15 11:37:39 2020 +0200

    menu tiny aligned vertically with notebook_sup

 glade/app1.glade          | 9 +++++----
 src/gui/app1/menu_tiny.cs | 9 +++++++++
 2 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 61222c9d..23e66520 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -653,9 +653,10 @@
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
                             <child>
-                              <widget class="GtkAlignment" id="alignment13">
+                              <widget class="GtkAlignment" id="alignment_menu_tiny">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
+                                <property name="yalign">0.50999999046325684</property>
                                 <property name="top_padding">4</property>
                                 <property name="bottom_padding">4</property>
                                 <property name="left_padding">2</property>
@@ -1354,7 +1355,7 @@
                                                           <widget class="GtkAlignment" id="alignment29">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="top_padding">16</property>
+                                                            <property name="top_padding">14</property>
                                                             <child>
                                                             <widget class="GtkVBox" id="vbox173">
                                                             <property name="visible">True</property>
@@ -6178,7 +6179,7 @@ EncoderInertialCapture</property>
                                           <widget class="GtkVBox" id="vbox_contacts">
                                             <property name="visible">True</property>
                                             <property name="can_focus">False</property>
-                                            <property name="spacing">6</property>
+                                            <property name="spacing">4</property>
                                             <child>
                                               <widget class="GtkHBox" id="hbox78">
                                                 <property name="visible">True</property>
@@ -25542,7 +25543,7 @@ Concentric</property>
                                           <widget class="GtkVBox" id="vbox3">
                                             <property name="visible">True</property>
                                             <property name="can_focus">False</property>
-                                            <property name="spacing">6</property>
+                                            <property name="spacing">4</property>
                                             <child>
                                               <widget class="GtkHBox" id="hbox_encoder_sup_capture_analyze">
                                                 <property name="visible">True</property>
diff --git a/src/gui/app1/menu_tiny.cs b/src/gui/app1/menu_tiny.cs
index 4dec8119..7bafd976 100644
--- a/src/gui/app1/menu_tiny.cs
+++ b/src/gui/app1/menu_tiny.cs
@@ -26,6 +26,7 @@ using Glade;
 
 public partial class ChronoJumpWindow
 {
+       [Widget] Gtk.Alignment alignment_menu_tiny;
        [Widget] Gtk.Arrow arrow_menu_show_session_up1;
        [Widget] Gtk.Arrow arrow_menu_show_session_down1;
        [Widget] Gtk.Arrow arrow_menu_show_help_up1;
@@ -71,6 +72,14 @@ public partial class ChronoJumpWindow
        {
                menuTinySetColors();
 
+               /*
+                * have it aligned with start of the notebook_sup
+                * +4 is alignment_contacts TopPadding
+                * +4 is vbox_contacts spacing
+                * (same for encoder)
+                */
+               alignment_menu_tiny.TopPadding = (uint) radio_mode_contacts_capture.SizeRequest().Height + 4 
+ 4;
+
                //unselect menu_help if selected
                if(check_menu_help1.Active)
                        check_menu_help1.Active = false;


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