# HG changeset patch # User IBBoard # Date 1319571167 -3600 # Node ID 929ef50c39198cff31c986ee5e01e77a38c7e3bb # Parent aca4623b7bdfccb4e34fd3bf281329e41b325d5a 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 diff -r aca4623b7bdf -r 929ef50c3919 Widgets/ValidationFailureWidget.cs --- 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(); diff -r aca4623b7bdf -r 929ef50c3919 gtk-gui/IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget.cs --- 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); diff -r aca4623b7bdf -r 929ef50c3919 gtk-gui/gui.stetic --- 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 @@ - + Add new unit stock:gtk-new Menu @@ -2820,7 +2820,6 @@ True Never - In @@ -2830,8 +2829,8 @@ 0 0 - Fibble True + True