comparison gtk-gui/gui.stetic @ 146:f3453f3e4591

Fixes #369: Clicking "Create" without unit selected causes errors * Disable the button from the start
author IBBoard <dev@ibboard.co.uk>
date Fri, 25 Nov 2011 20:37:59 +0000
parents 929ef50c3919
children 18c7b0b4bc30
comparison
equal deleted inserted replaced
145:135491fd1830 146:f3453f3e4591
593 </packing> 593 </packing>
594 </child> 594 </child>
595 </widget> 595 </widget>
596 </child> 596 </child>
597 </widget> 597 </widget>
598 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmNewUnit" design-size="403 234"> 598 <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmNewUnit" design-size="403 262">
599 <property name="MemberName" /> 599 <property name="MemberName" />
600 <property name="Title" translatable="yes">Add new unit</property> 600 <property name="Title" translatable="yes">Add new unit</property>
601 <property name="Icon">stock:gtk-new Menu</property> 601 <property name="Icon">stock:gtk-new Menu</property>
602 <property name="WindowPosition">CenterOnParent</property> 602 <property name="WindowPosition">CenterOnParent</property>
603 <property name="Modal">True</property> 603 <property name="Modal">True</property>
704 </packing> 704 </packing>
705 </child> 705 </child>
706 <child> 706 <child>
707 <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="bttnCreate"> 707 <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="bttnCreate">
708 <property name="MemberName" /> 708 <property name="MemberName" />
709 <property name="Sensitive">False</property>
709 <property name="CanFocus">True</property> 710 <property name="CanFocus">True</property>
710 <property name="UseStock">True</property> 711 <property name="UseStock">True</property>
711 <property name="Type">StockItem</property> 712 <property name="Type">StockItem</property>
712 <property name="StockId">gtk-ok</property> 713 <property name="StockId">gtk-ok</property>
713 <property name="ResponseId">-5</property> 714 <property name="ResponseId">-5</property>