[MonoDevelop] Glade file not loading up on Monodevelop
Hassan Zeeshan
hassan at zeropoint.it
Mon May 7 06:44:26 EDT 2007
Hi,
I am trying to access a glade file using Gtk# in Monodevelop on Debian.
The references have been added and the resourse "temp.glade" has also
been specified. The build project is succesfull.
The problem is that the glade file doesn't load. i.e. the "window1"
never gets shown. Also, the project just hangs there even if i try to
stop it manually.
Below is the code:
using System;
using Gtk;
using GtkSharp;
using Glade;
using Gnome;
using System.Diagnostics;
public class GladeApp
{
public static void Main (string[] args)
{
new GladeApp (args);
}
public GladeApp (string[] args)
{
try
{
Application.Init();
Glade.XML gxml = new Glade.XML(null, "temp.glade",
"window1", null);
gxml.Autoconnect (this);
Application.Run();
}
catch(Exception e)
{
Console.WriteLine(e);
}
}
public void OnWindowDeleteEvent (object o, DeleteEventArgs args)
{
Application.Quit ();
args.RetVal = true;
}
}
More information about the Monodevelop-list
mailing list