Re: [Evolution-hackers] Status bar stuff



On Wed, 2003-11-19 at 17:20, Dan Winship wrote:
> > In particular, restoring the old way also implies adding the
> > ::setOwner() method (through which the shell tells the components of its
> > existance), which is kinda nasty and I was hoping we could do without in
> > 2.0.
> 
> The component can get a handle on the shell via bonobo-activation:
> 
>         	shell = bonobo_activation_activate_from_id  (
>         		"OAFIID:GNOME_Evolution_Shell",
>         		Bonobo_ACTIVATION_FLAG_EXISTING_ONLY,
>         		NULL, ev);

Hmm I am not sure we can assume that.  What if the shell changes ID, for
example...  Also this way you are creating a possible hidden refcount
loop.

(Also I was idlily thinking that in the case where we are running
components separately the shell would register with different names
depending on what set of components it is running, so in that case that
wouldn't work.  I am not sure it's a good idea though...)

-- Ettore



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