[Mono-list] Gtk-sharp and mono

Dmitry Kostenko bis0n@mail.ru
Mon, 18 Oct 2004 01:27:34 +0300

On Thursday 14 October 2004 21:27, Butler, Jennifer M. wrote:
> All -
> (<unknown>:2120): libglade-WARNING **: unknown property `decorated' for
> class `G
> tkWindow'
Most probably you use Gtk+ 2.4 or newer under Linux (You should have with 
Glade 2.6.x).
And AFAIK Gtk# officially supports (and is distributed with) Gtk+ 2.2, which 
does not support those classes or properties.

> And then the program throws a NullReferenceException and quits
> (System.NullReferenceException: Object reference not set to an instance of
> an object)
Most probably you have declared a Gtk.ToolButton widget in your window, and 
you reference it in the code. And since Gtk+ 2.2 does not have such class, 
your widget pointer is initialized with null, and that's why you receive the 
> So, how can I fix this problem? Do I need different Mono / Gtk / Glade
> versions?
Either use Glade compatible with Gtk+ 2.2 (I use Glade 1.1.3). Or get Gtk+ 2.4 
binaries from sf.net (see http://sf.net/projects/gaim ;) ).

Dmitry Kostenko
.NET Developer
Registered Linux User #286813