[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnome-components
Subject:    bonobo-control's (and others'?) constructor
From:       ERDI Gergo <cactus () cactus ! rulez ! org>
Date:       2000-06-18 16:32:17
[Download RAW message or body]

Hi,

As you may know, language bindings like Gtk-- need access to object
constructors without object allocation code. That's usually done by having
a _new and a _construct method, with _new simply calling _construct on an
allocated object (see any GTK+ widget for example).
However, it looks like Bonobo is not really nice in this regard: take, for
example, bonobo-control.h:
BonoboControl *bonobo_control_construct	(BonoboControl       *control,
					Bonobo_Control       corba_control,
					GtkWidget           *widget);

Obviously, this is not the constructor for binding authors, but something
for low-level CORBA magic. Looking at _construct for some other random
BonoboObjects looked like the same.
This is bad for two reasons: first, the initialization code is now in the
_new methods, making it impossible (or maybe just hard) for binding
authors to wrap them. On the other hand, the _construct method name is
already taken for something else.

Solution ideas?

Bye,
	Cactus

-- 
   .--= ULLA! =----------------------------.  finger cactus@cactus.rulez.org
   \      http://cactus.rulez.org           \   for PGP public key
    `----------= cactus@cactus.rulez.org =--'
You are in a twisty maze of little install diskettes.


_______________________________________________
gnome-components-list mailing list
gnome-components-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-components-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic