RE: [Gimp-developer] Why modules interface?

2003-01-22 Thread Austin Donnelly
 I want to add some features (changeing the gamma of the display ...) to
 filmgimp.

There already is a module called cdisplay-gamma which can do this.  You
don't need to write any code, just use this pre-existing module.

However, I'll still answer the rest of your questions:

 I liked to implement this as removeable plug-ins but they are
 (as far as I expect) not selfcalling. The application I'm planning needs
 to start instandly with filmgimp.

By selfcalling, I assume you mean that it starts automatically.

 1. Is the modules interface the best way for this?

Yes, because changing the gamma of the display requires tight integration
with the display code.

 2. What are all the differences between plug-ins and modules?

Plugins run in their own process, so if there is a bug in a plugin, it
should not crash the gimp.  Modules run in the same process as the main
gimp, so a bug in the module can crash the entire thing.

The only reason you should use a module is if your code needs to be called
so frequently that the overhead of being in a separate process is too much.
Or, if you need to share state with the main gimp application (eg because
you are extending the main UI directly, like the colour selectors do).

Hope this helps,
Austin


___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] Why modules interface?

2003-01-22 Thread Kai-Uwe Behrmann

Am 22.01.03, 16:59 +0100 schrieb Michael Natterer:

 Austin Donnelly [EMAIL PROTECTED] writes:

   I want to add some features (changeing the gamma of the display ...) to
   filmgimp.
 
  There already is a module called cdisplay-gamma which can do this.  You
  don't need to write any code, just use this pre-existing module.

 The best idea IMHO would be to drop this silly film-gimp code
 duplication and help coding on gimp 1.4 (which already has this
 feature).

Of course one programm would be fine for developing together. At the
moment many people await the gimp-2.0 with gegl and 16bit, floats, cmyk,
CIE Lab ...

Filmgimp is near to the above mentioned colordepths. Therefore I decided
to programm for it.

 ciao,
 --mitch


regards
Kai-Uwe

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer