# HG changeset patch # User IBBoard # Date 1263655969 0 # Node ID 3277cb2ecb712b575550d3e4d0f19ae6319ecf1d # Parent d0e26a896d72119ca74cc3a5ef06b67b926b4465 Re #26: GTK# wrappers * Swap ordering of columns, as "value, text" causes crashes but "text, value" doesn't - no idea why diff -r d0e26a896d72 -r 3277cb2ecb71 ComboBoxUtils.cs --- a/ComboBoxUtils.cs Sat Jan 16 15:10:41 2010 +0000 +++ b/ComboBoxUtils.cs Sat Jan 16 15:32:49 2010 +0000 @@ -22,13 +22,13 @@ combo.Clear(); CellRendererText cell = new CellRendererText(); combo.PackStart(cell, false); - combo.AddAttribute(cell, "text", 1); - ListStore store = new ListStore(typeof(LIST_TYPE), typeof(string)); + combo.AddAttribute(cell, "text", 0); + ListStore store = new ListStore(typeof(string), typeof(LIST_TYPE)); combo.Model = store; foreach (LIST_TYPE item in itemList) { - store.AppendValues(item, toStringMethod(item)); + store.AppendValues(toStringMethod(item), item); } }