changeset 58:7bba99c368c8

Re #60: Add UI to add/remove/edit weapons in GTK * Fix GTK error about tree model columns by populating the store correctly
author IBBoard <dev@ibboard.co.uk>
date Thu, 26 Aug 2010 19:34:57 +0000
parents 293d204e40db
children c3415c6df551
files Widgets/UnitDisplayWidget.cs
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/Widgets/UnitDisplayWidget.cs	Thu Aug 26 19:30:22 2010 +0000
     1.2 +++ b/Widgets/UnitDisplayWidget.cs	Thu Aug 26 19:34:57 2010 +0000
     1.3 @@ -93,7 +93,11 @@
     1.4  			
     1.5  			
     1.6  			TreeStore model = new TreeStore(typeof(UnitEquipmentItem));
     1.7 -			model.AppendValues(unit.GetEquipment());
     1.8 +			foreach (UnitEquipmentItem item in unit.GetEquipment())
     1.9 +			{
    1.10 +				model.AppendValues(item);
    1.11 +			}
    1.12 +			
    1.13  			equipmentList.Model = model;
    1.14  		}
    1.15