changeset 121:3ec818926241

Code cleanup - remove warnings * Remove unused event * Fix null check * Commit change that MD insisted on making to objects.xml
author IBBoard <dev@ibboard.co.uk>
date Sun, 25 Sep 2011 20:59:44 +0100
parents 95a8b3e0efc2
children 2479414b16f6
files FrmEditEquipment.cs gtk-gui/objects.xml
diffstat 2 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/FrmEditEquipment.cs	Sat Sep 24 12:00:27 2011 +0100
+++ b/FrmEditEquipment.cs	Sun Sep 25 20:59:44 2011 +0100
@@ -19,7 +19,6 @@
 	{
 		private static ILog log = LogManager.GetLogger(typeof(FrmAddEquipment));
 
-		public event SingleArgMethodInvoker<UnitEquipmentItem> UnitEquipmentItemChoiceChanged;
 		public event MethodInvoker UnitEquipmentAmountTypeChanged;
 		public event MethodInvoker UnitEquipmentAmountChanged;
 
@@ -71,7 +70,7 @@
 
 		private void OnUnitEquipmentAmountTypeChanged()
 		{
-			if (UnitEquipmentAmountChanged != null)
+			if (UnitEquipmentAmountTypeChanged != null)
 			{
 				UnitEquipmentAmountTypeChanged();
 			}
--- a/gtk-gui/objects.xml	Sat Sep 24 12:00:27 2011 +0100
+++ b/gtk-gui/objects.xml	Sun Sep 25 20:59:44 2011 +0100
@@ -1,6 +1,2 @@
 <objects attr-sync="on">
-  <object type="IBBoard.WarFoundry.GUI.GTK.Widgets.UnitDisplayWidget" palette-category="WarFoundry GTK# GUI" allow-children="false" base-type="Gtk.Bin">
-    <itemgroups />
-    <signals />
-  </object>
 </objects>
\ No newline at end of file