Re: [gtk-list] Re: Gtk--: (resend) recent changes with GTK_OBJECT _CONSTRUCTED ??
- From: Tero Pulkkinen <terop assari cc tut fi>
- To: gtk-list redhat com
- Cc: gtkmm modeemi cs tut fi
- Subject: Re: [gtk-list] Re: Gtk--: (resend) recent changes with GTK_OBJECT _CONSTRUCTED ??
- Date: 18 Mar 1999 22:01:02 +0200
> On 17 Mar 1999, Tero Pulkkinen wrote:
>
> > timj wrote:
> > > since calling gtk_object_default_construct() is mandatory after
> > > gtk_type_new(). (for objects that don't require default
> > > construction, the call is actually pretty cheap).
> >
> > hmmm, gtk_object_default_construct() is mandatory? Does it matter
> > where you call it? Should one call it immediately after gtk_type_new()?
Tim Janik <timj@gtk.org> writes:
> well, gtk objects should be constructed as soon as possible, so you
> best call gtk_object_default_construct() at the end of the c++
> constructor, or you just use gtk_object_new() in the beginning. the
> object argument system should be comprehensive enough (by now) to
> cover all neccessary construction arguments required by the
> different widgets, so there is actually no real need to use
> gtk_type_new().
hmm... ok. We have used gtk_type_new() because it let us change the type
of the object to construct. We're deriving from existing widgets and
the created object shouldnt be GtkButton, but it should be gtk--'s
internal thing derived from GtkButton. (== its own virtual function table.)
Guess we should use gtk_object_new() instead... (hmm, there seems to be 119
calls to gtk_type_new() in gtk-- :-)
--
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]