changeset 12:ffda5e5f1617

Re #26: GTK# wrappers * Fix combo box selection by checking value instead of Glib object
author IBBoard <dev@ibboard.co.uk>
date Tue, 10 Aug 2010 19:46:43 +0000
parents 43d0b0ec1657
children 245677d0d47e
files ComboBoxUtils.cs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ComboBoxUtils.cs	Sat Jan 16 16:14:07 2010 +0000
+++ b/ComboBoxUtils.cs	Tue Aug 10 19:46:43 2010 +0000
@@ -50,9 +50,9 @@
 	   		do
 			{
 				GLib.Value rowItem = new GLib.Value();
-				combo.Model.GetValue (iter, 0, ref rowItem);
+				combo.Model.GetValue(iter, DEFAULT_VALUE_COLUMN, ref rowItem);
 				
-				if (item.Equals(rowItem))
+				if (item.Equals(rowItem.Val))
 				{
 						combo.SetActiveIter(iter);
 						break;