[longomatch] Make sure we don't end up with table that's not homogenous in width



commit d8446d304318cc25aad49231f3faaa84e246d108
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Dec 1 14:08:46 2014 +0100

    Make sure we don't end up with table that's not homogenous in width
    
    Translations can srew the layout otherwise

 LongoMatch.GUI/Gui/Panel/WelcomePanel.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/WelcomePanel.cs b/LongoMatch.GUI/Gui/Panel/WelcomePanel.cs
index e4db83d..39f6534 100644
--- a/LongoMatch.GUI/Gui/Panel/WelcomePanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/WelcomePanel.cs
@@ -47,6 +47,7 @@ namespace LongoMatch.Gui.Panel
                };
                List<Widget> buttonWidgets;
                Gtk.Image logoImage;
+               SizeGroup sizegroup;
                
                public WelcomePanel ()
                {
@@ -75,6 +76,7 @@ namespace LongoMatch.Gui.Panel
                        // One extra row for our logo
                        tablewidget.NRows = (uint) NRows + 1;
                        tablewidget.NColumns = StyleConf.WelcomeIconsPerRow;
+                       sizegroup = new SizeGroup (SizeGroupMode.Horizontal);
 
                        Gtk.Image prefImage = new Gtk.Image (
                                Helpers.Misc.LoadIcon ("longomatch-preferences",
@@ -134,6 +136,7 @@ namespace LongoMatch.Gui.Panel
                        label.LineWrap = true;
                        label.LineWrapMode = Pango.WrapMode.Word;
                        label.Justify = Justification.Center;
+                       sizegroup.AddWidget (label);
 
                        box = new VBox (false, StyleConf.WelcomeIconsTextSpacing);
                        box.PackStart (alignment, false, false, 0);


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