[Gtk-sharp-list] [part 2] Overloaded method fails in Gtk .14

Pablo Fischer pablo@pablo.com.mx
Wed, 03 Dec 2003 13:04:47 -0600


Hi again guys!

Thanks for the tip of the GetSelected method of TreeSelection, now I
have another problem (similar) but now with TreeModel, 

When I try to get the value of the 'selected row' of the TreeStore I
use:

      GLib.Value value;
      //Select the row
      sel.GetSelected(out model, out iter);
      //And now, get that name, of the column 0
      model.GetValue(iter, 1, value);

But now, I get an error:
AccountsWindow.cs(137) error CS0165: Use of unassigned local variable
`value'

What the ***!!, I've also tried with:

GLib.Value = null;

and compiles.. but when I try to run it, it crashes :).

Console.WriteLine("Thanks Anyway!");
Pablo
-- 
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt