Re: ORBit2 and async stuff



Ettore Perazzoli <ettore ximian com> writes:

> > > 	If we have a getControl, we should have a setControl too, but I'm
> > > not quite understanding how this should work.
> > 
> > That'd be evil. A GNOME::Selector is a Bonobo::Control, more or less. We just
> > cannot use queryInterface("Bonobo/Control") on the GNOME::Selector (according
> > to the docu, you must not call bonobo_object_add_interface() after the object
> > has been exposed to the outside, but the control cannot be created before the
> > selector is fully constructed). So for the moment there's a getControl() method
> > even if it's basically doable by QI.
> 
>   This sounds really bad.  The right way from an API standpoint is to
> just have a control factory, and have the application QI for
> GNOME::Selector to manipulate it.

I can make it work in a way that once you have that control you can QI it
for GNOME::Selector.

However, the other way around won't work.

-- 
Martin Baulig
martin gnome org (private)
baulig suse de (work)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]