After a conversation about Qyoto/Kimono vs Gtk on the Mono-Dev list, I
decided to try out Glade3. I made a simple test GUI and it compiles
fine, but when I run it, I get the following error:
[EMAIL PROTECTED]:~$ mono main.exe
(GladeTest:27865): libglade-CRITICAL **: glade_xml_build_interface:
assertion `wid != NULL' failed
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
at GladeApp..ctor (System.String[] args) [0x00000]
at GladeApp.Main (System.String[] args) [0x00000]
[EMAIL PROTECTED]:~$
The code is attached, thanks.
using System;
using Gtk;
using Gdk;
using Glade;
using Gnome;
public class GladeApp
{
[Widget] Gtk.Button btnOK;
[Widget] Gtk.Button btnExit;
[Widget] Gnome.AppBar appbar1;
private static string[] authors = {"Brandon Perry"};
private static string progname = "GladeTest";
private static string progver = "1.0";
public static void Main(string[] args)
{
new GladeApp(args);
}
public GladeApp(string[] args)
{
Program program = new Program(progname, progver, Modules.UI, args);
Glade.XML gxml = new Glade.XML(null, "test2.glade", "test2", null);
gxml.Autoconnect(this);
appbar1.Push("Ready");
program.Run();
}
}
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list