Hi,
Can someone please tell a dummy why the last line of code below
barfs with an error:
"Cannot cast from source type to destination type."
I obviously don't understand something fundamental !
Bryan
public class MyEntry : Gtk.Entry {
public bool flag;
public MyEntry() : base () {}
public MyEntry(System.IntPtr ptr) : base(ptr) {}
public MyEntry(string s) : base(s) {}
protected MyEntry(GLib.GType type) : base(type) {}
}
Glade.XML gxml = new Glade.XML ("myfile.glade", "window1", null);
Gtk.Entry test = (Gtk.Entry) gxml.GetWidget("entry1"); // OK
MyEntry entry = (MyEntry) gxml.GetWidget("entry1"); // barfs
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list