[chronojump] Fixed person manage buttons do not fit in English since 2.0



commit 21aa13d00eb91e6c823c27298c1338c56c061d26
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Sep 23 18:06:13 2020 +0200

    Fixed person manage buttons do not fit in English since 2.0

 glade/app1.glade     | 34 ++++++++++++++++++++--------------
 src/gui/app1/menu.cs |  7 +++++++
 2 files changed, 27 insertions(+), 14 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index e7eb39ae..ce39b17a 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1934,7 +1934,7 @@
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkHButtonBox" id="hbuttonbox10">
+                                                            <widget class="GtkHButtonBox" 
id="hbuttonbox_person_admin_create">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">6</property>
@@ -2064,7 +2064,7 @@
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkHButtonBox" id="hbuttonbox11">
+                                                            <widget class="GtkHButtonBox" 
id="hbuttonbox_person_admin_load">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">6</property>
@@ -24900,6 +24900,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -27756,18 +27759,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>
@@ -27804,6 +27795,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>
@@ -35877,6 +35880,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.cs b/src/gui/app1/menu.cs
index 8de6b581..3c9cd37d 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -66,6 +66,10 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Button button_menu_help_shortcuts;
        [Widget] Gtk.Button button_menu_help_about;
 
+       //just to manage width
+       [Widget] Gtk.HButtonBox hbuttonbox_person_admin_create;
+       [Widget] Gtk.HButtonBox hbuttonbox_person_admin_load;
+
        [Widget] Gtk.Image image_session_import;
        [Widget] Gtk.Image image_session_export;
        [Widget] Gtk.Image image_session_export1;
@@ -153,6 +157,9 @@ public partial class ChronoJumpWindow
                l.Add(button_menu_help_shortcuts.SizeRequest().Width + 16);
                l.Add(button_menu_help_about.SizeRequest().Width + 16);
 
+               l.Add(hbuttonbox_person_admin_create.SizeRequest().Width);
+               l.Add(hbuttonbox_person_admin_load.SizeRequest().Width);
+
                int maxWidth = getMenuButtonsMaxWidth(l) + 4 + 6; //4, 6 are alignments spaces.
 
                /*


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