diff Widgets/UnitDisplayWidget.cs @ 15:85db2c9a1546

Fixes #95: Can't re-open GTK# tabs * Make Unit for UnitDisplayWidget visible as a property * Hook in to Destroyed event of UnitDisplayWidget to remove it from the map of tabs
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Jun 2009 20:13:21 +0000
parents 6b2c8e55564a
children a191d0655f55
line wrap: on
line diff
--- a/Widgets/UnitDisplayWidget.cs	Sat Jun 27 19:39:41 2009 +0000
+++ b/Widgets/UnitDisplayWidget.cs	Sat Jun 27 20:13:21 2009 +0000
@@ -82,6 +82,11 @@
 				(cell as CellRendererText).Text = u.GetStatValue(column.Title);
 			}
 		}
+
+		public IBBoard.WarFoundry.API.Objects.Unit Unit
+		{
+			get { return unit; }
+		}
 		
 		private void UnitNameChanged(WarFoundryObject obj, string oldValue, string newValue)
 		{