diff gtk-gui/gui.stetic @ 60:04c0f6a7625c

Re #60: Add UI to add/remove/edit weapons in GTK * Implement Remove button * Hack "code-behind" file again to make things work, until MD bug is fixed
author IBBoard <dev@ibboard.co.uk>
date Fri, 27 Aug 2010 14:44:48 +0000
parents 0c5fbb54bfb0
children e7ad676a7344
line wrap: on
line diff
--- a/gtk-gui/gui.stetic	Fri Aug 27 10:55:58 2010 +0000
+++ b/gtk-gui/gui.stetic	Fri Aug 27 14:44:48 2010 +0000
@@ -894,6 +894,7 @@
                 <child>
                   <widget class="Gtk.Button" id="bttnEditEquipment">
                     <property name="MemberName" />
+                    <property name="Sensitive">False</property>
                     <property name="CanFocus">True</property>
                     <property name="Type">TextOnly</property>
                     <property name="Label" translatable="yes">Edit</property>
@@ -909,6 +910,7 @@
                 <child>
                   <widget class="Gtk.Button" id="bttnReplaceEquipment">
                     <property name="MemberName" />
+                    <property name="Sensitive">False</property>
                     <property name="CanFocus">True</property>
                     <property name="Type">TextOnly</property>
                     <property name="Label" translatable="yes">Replace</property>
@@ -924,10 +926,12 @@
                 <child>
                   <widget class="Gtk.Button" id="bttnRemoveEquipment">
                     <property name="MemberName" />
+                    <property name="Sensitive">False</property>
                     <property name="CanFocus">True</property>
                     <property name="Type">TextOnly</property>
                     <property name="Label" translatable="yes">Remove</property>
                     <property name="UseUnderline">True</property>
+                    <signal name="Clicked" handler="HandleRemoveButtonActivated" />
                   </widget>
                   <packing>
                     <property name="Position">3</property>
@@ -1117,7 +1121,6 @@
                         <property name="MemberName" />
                         <property name="CanFocus">True</property>
                         <property name="Label" translatable="yes" />
-                        <property name="Active">True</property>
                         <property name="DrawIndicator">True</property>
                         <property name="HasLabel">True</property>
                         <property name="UseUnderline">True</property>