Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
changeset 144:929ef50c3919
Fixes #344: Show unit requirement failures
* Remove border on scrollable area
* Make text selectable, in case people want to copy it
* Shrink size of New Unit window to remove spare space
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 25 Oct 2011 20:32:47 +0100 |
parents | aca4623b7bdf |
children | 135491fd1830 |
files | Widgets/ValidationFailureWidget.cs gtk-gui/IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget.cs gtk-gui/gui.stetic |
diffstat | 3 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Widgets/ValidationFailureWidget.cs Wed Oct 19 20:35:31 2011 +0100 +++ b/Widgets/ValidationFailureWidget.cs Tue Oct 25 20:32:47 2011 +0100 @@ -26,7 +26,7 @@ foreach (string msg in messages) { - sb.AppendLine("• " + msg); + sb.AppendLine(" • " + msg); } validationMessages.Text = sb.ToString();
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget.cs Wed Oct 19 20:35:31 2011 +0100 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget.cs Tue Oct 25 20:32:47 2011 +0100 @@ -33,7 +33,6 @@ this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.HscrollbarPolicy = ((global::Gtk.PolicyType)(2)); - this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild global::Gtk.Viewport w2 = new global::Gtk.Viewport (); w2.ShadowType = ((global::Gtk.ShadowType)(0)); @@ -42,8 +41,8 @@ this.validationMessages.Name = "validationMessages"; this.validationMessages.Xalign = 0F; this.validationMessages.Yalign = 0F; - this.validationMessages.LabelProp = global::Mono.Unix.Catalog.GetString ("Fibble"); this.validationMessages.Wrap = true; + this.validationMessages.Selectable = true; w2.Add (this.validationMessages); this.scrolledwindow1.Add (w2); this.hbox1.Add (this.scrolledwindow1);
--- a/gtk-gui/gui.stetic Wed Oct 19 20:35:31 2011 +0100 +++ b/gtk-gui/gui.stetic Tue Oct 25 20:32:47 2011 +0100 @@ -595,7 +595,7 @@ </widget> </child> </widget> - <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmNewUnit" design-size="403 311"> + <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmNewUnit" design-size="403 234"> <property name="MemberName" /> <property name="Title" translatable="yes">Add new unit</property> <property name="Icon">stock:gtk-new Menu</property> @@ -2820,7 +2820,6 @@ <property name="MemberName" /> <property name="CanFocus">True</property> <property name="HscrollbarPolicy">Never</property> - <property name="ShadowType">In</property> <child> <widget class="Gtk.Viewport" id="GtkViewport"> <property name="MemberName" /> @@ -2830,8 +2829,8 @@ <property name="MemberName" /> <property name="Xalign">0</property> <property name="Yalign">0</property> - <property name="LabelProp" translatable="yes">Fibble</property> <property name="Wrap">True</property> + <property name="Selectable">True</property> </widget> </child> </widget>