[Mono-list] Gtk-sharp and mono
Butler, Jennifer M.
JenniferB@xetron.com
Thu, 14 Oct 2004 14:27:58 -0400
All -
I'm working on a project in Visual Studio .Net that uses Glade to produce a
gtk-sharp gui. Everything works fine for me when I compile with .Net and run
against the .Net GAC. But I also need this project to work in Linux, so I
have been trying to make it run on Mono. I've tried several different Mono
installs (on my Win2k machine), and my program is having issues loading the
Gtk widgets that are defined in the glade file. I get errors like this:
(<unknown>:2120): libglade-WARNING **: unknown property `decorated' for
class `G
tkWindow'
(<unknown>:2120): libglade-WARNING **: unknown property `gravity' for class
`Gtk
Window'
(<unknown>:2120): libglade-WARNING **: unknown property `top_padding' for
class
`GtkAlignment'
(<unknown>:2120): libglade-WARNING **: unknown property `bottom_padding' for
cla
ss `GtkAlignment'
And then the program throws a NullReferenceException and quits
(System.NullReferenceException: Object reference not set to an instance of
an object)
So, how can I fix this problem? Do I need different Mono / Gtk / Glade
versions?
Also - I get this error when I run my executable in Mono - whether I've
built the executable from Visual Studio or compiled it with mcs.
Thanks,
Jennie