[longomatch] Closes bug # Buttons' label doesn't ellipsize and prevent the main window to shrink
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [longomatch] Closes bug # Buttons' label doesn't ellipsize and prevent the main window to shrink
- Date: Tue, 29 Sep 2009 11:34:53 +0000 (UTC)
commit 41f216867626fdaf77bf189449af06869c318002
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Sep 25 16:19:24 2009 +0200
Closes bug # Buttons' label doesn't ellipsize and prevent the main window to shrink
LongoMatch/Gui/Component/ButtonsWidget.cs | 7 +++++--
.../LongoMatch.Gui.Component.ButtonsWidget.cs | 4 ++--
LongoMatch/gtk-gui/gui.stetic | 4 ++--
3 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ButtonsWidget.cs b/LongoMatch/Gui/Component/ButtonsWidget.cs
index f3fbb21..1f9a8ed 100644
--- a/LongoMatch/Gui/Component/ButtonsWidget.cs
+++ b/LongoMatch/Gui/Component/ButtonsWidget.cs
@@ -62,7 +62,10 @@ namespace LongoMatch.Gui.Component
uint col_left = (uint) i%table1.NColumns;
uint col_right = (uint) col_left+1 ;
- l.Text = sections.GetName(i);
+ l.Markup = sections.GetName(i);
+ l.Justify = Justification.Center;
+ l.Ellipsize = Pango.EllipsizeMode.Middle;
+
b.Add(l);
b.Name = i.ToString();
b.Clicked += new EventHandler (OnButtonClicked);
@@ -81,6 +84,6 @@ namespace LongoMatch.Gui.Component
Widget w = (Button)sender;
if (NewMarkEvent != null && this.sections != null)
this.NewMarkEvent(int.Parse(w.Name));
- }
+ }
}
}
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
index 7e6f20e..5700635 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
@@ -23,8 +23,8 @@ namespace LongoMatch.Gui.Component {
// Container child LongoMatch.Gui.Component.ButtonsWidget.Gtk.Container+ContainerChild
this.table1 = new Gtk.Table(((uint)(5)), ((uint)(4)), false);
this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
+ this.table1.RowSpacing = ((uint)(1));
+ this.table1.ColumnSpacing = ((uint)(1));
this.Add(this.table1);
if ((this.Child != null)) {
this.Child.ShowAll();
diff --git a/LongoMatch/gtk-gui/gui.stetic b/LongoMatch/gtk-gui/gui.stetic
index 2b39473..d82fe19 100644
--- a/LongoMatch/gtk-gui/gui.stetic
+++ b/LongoMatch/gtk-gui/gui.stetic
@@ -815,8 +815,8 @@
<property name="MemberName" />
<property name="NRows">5</property>
<property name="NColumns">4</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
+ <property name="RowSpacing">1</property>
+ <property name="ColumnSpacing">1</property>
<child>
<placeholder />
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]