[Gtk-sharp-list] Glade# and resources.
Miguel de Icaza
miguel@ximian.com
15 Sep 2002 12:44:47 -0400
To make it even simpler, I could add another constructor that takes an
> Assembly object and a resource name. Is this a good idea?
>
> With that, to create a Glade.XML object you could do:
>
> Glade.XML gxml = new Glade.XML (Assembly.GetExecutingAssembly (), "file.glade",
> "main_widget_name", null);
I think you should also have a couple of extra constructors:
public XML (string file, string widget, string domain)
: this (Assembly.GetExecutingAssembly (), file, widget, domain)
So you can just use:
Glade.XML gxml = new Glade.XML ("file.glade","main_widget_name", null);
Miguel