[Gtk-sharp-list] glade help

jason hanneman jasonkhanneman@hotmail.com
Sat, 17 Jan 2004 08:49:51 +0000

I am new to this list, and I have searched everywhere for help with this.  I 
was wondering where I could be pointed to figure out this error:

After I successfully compile I get this I have mono .28, and I have tried 
gtk-sharp .8 and .15 same results.  Also I have libglade 2.0.1 glade2 hmm, 
what else do I need :)
Thank you

mcs -r /usr/local/lib/gtk-sharp.dll -r /usr/local/lib/glade-sharp -r 
/usr/local/lib/gnome-sharp.dll gladetest.cs
Compilation succeeded
jason@gendrop newc $ ./gladetest.exe

(<unknown>:32278): libglade-CRITICAL **: file glade-xml.c: line 1172 
(glade_xml_build_interface): assertion `wid != NULL' failed

** (<unknown>:32278): WARNING **: Missing method .ctor in assembly 
./gladetest.exe typeref index 11

** ERROR **: Can't find custom attr constructor image: ./gladetest.exe 
mtoken: 0x0a00000a

namespace GladeSamples {
	using System;

	using Gtk;
	using Gnome;
	using Glade;
	using GladeSharp;
	using GtkSharp;

        public class GladeTest
		public static void Main (string[] args)
			new GladeTest(args);

		/* If you want to access the glade objects you have to "import" them.
		 * This is not required, but else you can only work with the
		 * pre-defined signal handlers */
		Button button1;

		public GladeTest (string[] args)

			/* This loads the glade file glade.glade,
			 * selects window2 and connects it to the current object,
			 * which is the class GladeTest here. */
			Glade.XML gxml = new Glade.XML ("project1.glade", "window2", null);
			gxml.Autoconnect (this);



		/* Connect the Signals defined in Glade */
		public void OnWindowDeleteEvent (object o, DeleteEventArgs args)
			Application.Quit ();
			args.RetVal = true;

		public void OnButton1Clicked (System.Object obj, EventArgs e)
			Console.WriteLine ("Button 1 clicked");

Learn how to choose, serve, and enjoy wine at Wine @ MSN.