Re: ActivationContext and shlib servers



Dietmar Maurer <dietmar ximian com> writes:

> Dietmar Maurer wrote:
> 
> > I will try to adapt bonobo to take the shared library factory semantics
> > into account.
> 
> Hi Maciej,
> 
> I have modified the bonobo code to handle the oaf shlib semantics, but
> I am not very happy with the new code. The problem is that it is no
> longer possible to replace a shlib server with a exe server easily. Instead
> I have to change the OAFPluginObject, the factory code and all oafinfo
> files.
> 
> If we instead use a factory for shlib servers, we can change shlib servers
> to exe servers by simply change a single line of code:
> 
> BONOBO_OAF_SHLIB_FACTORY (..) ==> BONOBO_OAF_FACTORY (..)
> 
> All we need is to make it possible to register shlib factories. Do you think
> this is possible and worth to do? I really like the feature to change the
> server type (exe/shlib) easily, and I can see no disadvantage.
> 

That sounds pretty convincing. I'd like to hear from Elliot why OAF
and gnorba did not work that way in the first place. I made the
Nautilus tree view conditional this way and I had to create two
separate files essentially for main.c and libmain.c, I probably would
have had more common code this way.

There's still a day left before the freeze, and failing that, I can
try to add this feature in a backwards compatible way after GNOME 1.4
(should be easy to make it for 1.4.1).

Anyway, you are right that making it easy to change between exe and
shlib components should be as easy as possible.

Regards,

Maciej





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