[Gtk-sharp-list] Glade problem

Rob Brown-Bayliss rbb@orcon.net.nz
Tue, 20 Jul 2004 21:04:34 +1200

Hi, I am struggling with C# and glade.

What I am doing is looking at things as how I would do it in python,
which is quite easy.

So I have my main app, which has this line in it:

Glade.XML gxml = new Glade.XML (null, "music.glade","app1", null);
gxml.Autoconnect (this);
Gtk.Window app1 = gxml.GetWidget("app1") as Gtk.Window;

Now in a seperate name space I want to provide classes to look after a
couple of treeviews.

In Python I could just pass gxml to the constuctor, then do:

Gtk.TreeView main_list = gxml.GetWidget("main_list") as Gtk.TreeView;

But I dont yet know enough about c# to understand how this should be
done, as 

MyTree mytree = new MyTree(gxml);

does not work.

Any simple examples floating about?

Rob Brown-Bayliss

Rock the boat - I can swim.