[Mono-list] Load glade file after application is running

Austin Winstanley austin at tradelogic.com
Tue Oct 2 15:30:13 EDT 2007


When creating a Glade app all the tutorials say to do something like this:

	public App() {
		Application.Init();

		Glade.XML gxml = new Glade.XML(null, "xxxxx.glade", "xxxxxx", null);
		gxml.Autoconnect(this);

		Application.Run();
        }

but I have a mixed Gtk#/Glade app. The Glade code is mixed into
separate .dll plugins that are loaded into the main Gtk# app.

When I try the code like this nothing happens

public class fDialog : Gtk.Dialog
{
        public fDialog()
        {
		Glade.XML gxml = new Glade.XML(null, "xxxxx.glade", "fDialog", null);
		gxml.Autoconnect(this);

                // If this line is here an empty Dialog shows
                // Without this line, nothing happens
                this.ShowAll();
        }
}

There are no errors. Everything compiles and runs just fine. Can
anybody tell me what I'm doing wrong here? Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20071002/7353809f/attachment.html 


More information about the Mono-list mailing list