[MonoDevelop] Glade file not loading up on Monodevelop
Hassan Zeeshan
hassan.zeeshan at gmail.com
Mon May 7 07:01:31 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;
}
}
--
___________________
Hassan Zeeshan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20070507/ac13d44c/attachment.html
More information about the Monodevelop-list
mailing list