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 diff
     1.1 --- a/Widgets/ValidationFailureWidget.cs	Wed Oct 19 20:35:31 2011 +0100
     1.2 +++ b/Widgets/ValidationFailureWidget.cs	Tue Oct 25 20:32:47 2011 +0100
     1.3 @@ -26,7 +26,7 @@
     1.4  			
     1.5  			foreach (string msg in messages)
     1.6  			{
     1.7 -				sb.AppendLine("• " + msg);
     1.8 +				sb.AppendLine(" • " + msg);
     1.9  			}
    1.10  			
    1.11  			validationMessages.Text = sb.ToString();
     2.1 --- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget.cs	Wed Oct 19 20:35:31 2011 +0100
     2.2 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget.cs	Tue Oct 25 20:32:47 2011 +0100
     2.3 @@ -33,7 +33,6 @@
     2.4  			this.scrolledwindow1.CanFocus = true;
     2.5  			this.scrolledwindow1.Name = "scrolledwindow1";
     2.6  			this.scrolledwindow1.HscrollbarPolicy = ((global::Gtk.PolicyType)(2));
     2.7 -			this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
     2.8  			// Container child scrolledwindow1.Gtk.Container+ContainerChild
     2.9  			global::Gtk.Viewport w2 = new global::Gtk.Viewport ();
    2.10  			w2.ShadowType = ((global::Gtk.ShadowType)(0));
    2.11 @@ -42,8 +41,8 @@
    2.12  			this.validationMessages.Name = "validationMessages";
    2.13  			this.validationMessages.Xalign = 0F;
    2.14  			this.validationMessages.Yalign = 0F;
    2.15 -			this.validationMessages.LabelProp = global::Mono.Unix.Catalog.GetString ("Fibble");
    2.16  			this.validationMessages.Wrap = true;
    2.17 +			this.validationMessages.Selectable = true;
    2.18  			w2.Add (this.validationMessages);
    2.19  			this.scrolledwindow1.Add (w2);
    2.20  			this.hbox1.Add (this.scrolledwindow1);
     3.1 --- a/gtk-gui/gui.stetic	Wed Oct 19 20:35:31 2011 +0100
     3.2 +++ b/gtk-gui/gui.stetic	Tue Oct 25 20:32:47 2011 +0100
     3.3 @@ -595,7 +595,7 @@
     3.4        </widget>
     3.5      </child>
     3.6    </widget>
     3.7 -  <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmNewUnit" design-size="403 311">
     3.8 +  <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmNewUnit" design-size="403 234">
     3.9      <property name="MemberName" />
    3.10      <property name="Title" translatable="yes">Add new unit</property>
    3.11      <property name="Icon">stock:gtk-new Menu</property>
    3.12 @@ -2820,7 +2820,6 @@
    3.13              <property name="MemberName" />
    3.14              <property name="CanFocus">True</property>
    3.15              <property name="HscrollbarPolicy">Never</property>
    3.16 -            <property name="ShadowType">In</property>
    3.17              <child>
    3.18                <widget class="Gtk.Viewport" id="GtkViewport">
    3.19                  <property name="MemberName" />
    3.20 @@ -2830,8 +2829,8 @@
    3.21                      <property name="MemberName" />
    3.22                      <property name="Xalign">0</property>
    3.23                      <property name="Yalign">0</property>
    3.24 -                    <property name="LabelProp" translatable="yes">Fibble</property>
    3.25                      <property name="Wrap">True</property>
    3.26 +                    <property name="Selectable">True</property>
    3.27                    </widget>
    3.28                  </child>
    3.29                </widget>