[Gtk-sharp-list] Glade# problem with autoconnect.

Ohmu ohmar@hot.ee
Thu, 05 Aug 2004 12:25:38 +0300

You problem is at:
     [Widget] Gnome.Window MainWindow;
Should be:
     [Widget] Gtk.Window MainWindow;

> Unhandled Exception: System.ArgumentException: Object type cannot be converted to target type.
> Parameter name: val
> in [0x00057] (at /cvs/mcs/class/corlib/System.Reflection/MonoField.cs:122) System.Reflection.MonoField:SetValue (object,object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo)
> in <0x001c6> Glade.XML:BindFields (object,System.Type)
> in <0x0001a> Glade.XML:BindFields (object)
> in <0x0001c> Glade.XML:Autoconnect (object)
> in [0x00036] (at /home/phil/study/csharp/Todo/Main.cs:54) Todo.TodoApp:.ctor (string[])
> in [0x00001] (at /home/phil/study/csharp/Todo/Main.cs:16) Todo.TodoApp:Main (string[])
Means usually that glade can't cast the widget in xml file to the type 
you wanted...