[Mono-docs-list] Re: [Gtk-sharp-list] MonkeyGuide?: Hello World in GNOME.NET -
Charles Iliya Krempeaux
17 Feb 2003 09:05:13 -0800
On Mon, 2003-02-17 at 08:26, Mike Kestner wrote:
> On Mon, 2003-02-17 at 01:25, Charles Iliya Krempeaux wrote:
> > That's probably because in C, GObject subclassing is a hassle.
> Yes it's clumsy and boilerplate heavy, but still it is used extensively
> throughout GNOME, with the notable exception of GnomeProgram subclasses.
I guess that's why GOB was created. (To make stuff like that easier.)
> > Why not make put the initialization in a "static constructor"???
> I considered doing something like this. The problem is the lack of
> control over when the static ctor is invoked. If it isn't invoked until
> just prior to the Application.Run() call, then Gtk won't be init'd while
> the GUI is being constructed, which would be a very bad thing.
Why not put it in Gtk.Object then? If it is put in that class, as
a static constructor, then it should get called no matter what Gtk,
GNOME, etc, class that people use.
(The only problem though is that people can no longer control when
it is called. Which may or may not matter.)
Charles Iliya Krempeaux, BSc
Reptile Consulting & Services 604-REPTILE http://www.reptile.ca/