Re: having one bonobo control instance per process



On Wed, 2002-05-15 at 01:55, Maciej Stachowiak wrote:

> There is also an activation flag you can pass that says to activate a
> new component regardless of whether one is registered, so you could
> use that in the activate call. I guess if you do that, it doesn't
> matter if you use a factory or not; but the onus is on the user of the
> component to use it right.
>
> Yet a third approach is to have a "proxy" factory component which is
> what client code uses, but which actually activates the components in
> separate processes using the real factory server, and the private flag
> which makes a new instance every time. I think this is your best bet,
> even though it means an extra process.

Thanks for the tip; I wasn't aware of the private flag.  The "proxy" is a great
idea, since it accomplishes what I need but doesn't require the caller to do 
anything special, which would allow me to move to a cleaner solution down
the road when it's possible.

> Michael is right that something you could specify in the .server file
> would be much nicer than all of this.

I need to get up to speed on Gnome 2.0 -- have the .oaf files in 1.4 been 
replaced by .server files?  Up until now I've been developing under 1.4.  
As soon as I've figured out what's going on, I'll file a bug to suggest the 
new attribute.

peace,
Jason




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