[Mono-list] wird problem

Miguel de Icaza miguel@ximian.com
18 Oct 2002 20:11:35 -0400


Hello!

> Ive ported a menu for jumpnbump to mono and gtk#
> When I run it from my shell it works nicely, part of what it does is to
> convert some data files to level preview images and of course launch the
> game.
> 
> Unfortunatly when I launch it from the run-menu in gnome it does not
> function properly, it can only load one level-preview and cannot launch
> the game.

The program fails because it tries to load a glade file that is not
available to it.

I suggest that instead of loading the glade file from the disk, you
embed the glade file as a resource.  This is done by the Mono Debugger
and mPhoto to embed images, glade files and sql files.

Do this:

	mcs program.cs -resource:file.glade

And in your program you load your glade UI like this:


	gxml = new Glade.XML (null, "debugger.glade", null, null);

Miguel