# HG changeset patch # User IBBoard # Date 1322253479 0 # Node ID f3453f3e4591176334aaa7f052ebb0a956f08d17 # Parent 135491fd18300e0ec92c458d2fa0b1dec6021780 Fixes #369: Clicking "Create" without unit selected causes errors * Disable the button from the start diff -r 135491fd1830 -r f3453f3e4591 gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs --- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs Sat Nov 12 19:53:26 2011 +0000 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs Fri Nov 25 20:37:59 2011 +0000 @@ -97,6 +97,7 @@ w9.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.bttnCreate = new global::IBBoard.GtkSharp.Translatable.TranslatableButton (); + this.bttnCreate.Sensitive = false; this.bttnCreate.CanFocus = true; this.bttnCreate.Name = "bttnCreate"; this.bttnCreate.UseStock = true; @@ -111,7 +112,7 @@ this.Child.ShowAll (); } this.DefaultWidth = 403; - this.DefaultHeight = 234; + this.DefaultHeight = 262; this.validationWidget.Hide (); this.Show (); this.lstUnitTypes.RowActivated += new global::Gtk.RowActivatedHandler (this.OnRowActivated); diff -r 135491fd1830 -r f3453f3e4591 gtk-gui/gui.stetic --- a/gtk-gui/gui.stetic Sat Nov 12 19:53:26 2011 +0000 +++ b/gtk-gui/gui.stetic Fri Nov 25 20:37:59 2011 +0000 @@ -595,7 +595,7 @@ - + Add new unit stock:gtk-new Menu @@ -706,6 +706,7 @@ + False True True StockItem