RSS/Atom feed Twitter
Site is read-only, email is disabled

Block user interaction while a plug-in is running?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

7 of 8 messages available
Toggle history

Please log in to manage your subscriptions.

Block user interaction while a plug-in is running? Lionel Tarazón 20 Nov 17:19
  Block user interaction while a plug-in is running? Lionel Tarazón 20 Nov 17:34
   Block user interaction while a plug-in is running? David Gowers 20 Nov 21:18
    Block user interaction while a plug-in is running? Lionel Tarazón 21 Nov 10:45
     Block user interaction while a plug-in is running? David Gowers 21 Nov 11:05
mailman.3.1227211203.30323.... 07 Oct 20:27
  Block user interaction while a plug-in is running? Guillermo Espertino 20 Nov 23:07
   Block user interaction while a plug-in is running? jcupitt@gmail.com 22 Nov 12:32
Lionel Tarazón
2008-11-20 17:19:16 UTC (over 16 years ago)

Block user interaction while a plug-in is running?

Hi everyone,

I am currently developing a Gimp plug-in with a GTK+ user interface. My plug-in is unstable if the user modifies the image or calls other plug-ins while it is running.

Is there a way of "blocking" user interaction over the gimp window which called the plug-in?
This way a user will be forced to close my plug-in before continuing working with the image (the desired situation).

I've been looking in The Gimp API but haven't found a solution. I also know this could be done easily using GTK+ functions if Gimp's windows and plug-in windows existed in the same process, but as you know this is no the case :(

Thanks in advance ------------------------------------------ Lionel Tarazón Alcocer
PRHLT - Pattern Recognition and Human Language Technology Group ITI - Instituto Tecnológico de Informática UPV - Universidad Politécnica de Valencia Valencia, Spain

Lionel Tarazón
2008-11-20 17:34:21 UTC (over 16 years ago)

Block user interaction while a plug-in is running?

Hi everyone,

I am currently developing a Gimp plug-in with a GTK+ user interface. My plug-in is unstable if the user modifies the image or calls other plug-ins while it is running.

Is there a way of "blocking" user interaction over the gimp window which called the plug-in?
This way a user will be forced to close my plug-in before continuing working with the image (the desired situation).

I've been looking in The Gimp API but haven't found a solution. I also know this could be done easily using GTK+ functions if Gimp's windows and plug-in windows existed in the same process, but as you know this is no the case :(

Thanks for all ------------------------------
Lionel Tarazón Alcocer
PRHLT - Pattern Recognition and Human Language Technology Group ITI - Instituto Tecnológico de Informática UPV - Universidad Politécnica de Valencia Valencia, Spain

David Gowers
2008-11-20 21:18:15 UTC (over 16 years ago)

Block user interaction while a plug-in is running?

Hello Lionel,

On Fri, Nov 21, 2008 at 3:04 AM, Lionel Tarazón wrote:

Hi everyone,

I am currently developing a Gimp plug-in with a GTK+ user interface. My plug-in is unstable if the user modifies the image or calls other plug-ins while it is running.

What version of GIMP are you using? This situation has been improved in 2.6, though there is still plenty of scope for further improvement.

Is there a way of "blocking" user interaction over the gimp window which called the plug-in?

No (and we probably would never implement it; it is pretty rude behaviour.)

In the future, a locking facility to simply prevent the user from modifying an image while a plugin is running on it (or only when the plugin is actually reading/writing from/to the image) could be desirable. It remains to be seen how useful this would be in light of GEGL integration (in future, most plugins should become little more than GEGL ops.)

David

Guillermo Espertino
2008-11-20 23:07:19 UTC (over 16 years ago)

Block user interaction while a plug-in is running?

IMHO the way GIMP works is fine, and interaction should never be blocked. We don't want a program that is unusable while an effect is being applied.
A better solution (and I think that the porting to GEGL is aiming in this direction, among other things) would be to put the filter and the transformations in a sort of queue, so the interaction is never blocked and the processes are stacked so you can continue working while a filter is applied.
Of course, in some point it will be necessary to implement a "smart" queue that blocks some processes that can be incompatible between them, but I think that simply blocking interaction while a plugin is working would be a step backwards.

There's something I saw in Avid Liquid that is extremely interesting. The program shows a quick preview of the effects using the GPU while you edit, and it renders the filter in the background. Of course I won't compare a video editor with a program like GIMP, but I find that method very interesting.
Using low resolution proxies of the filters would give an instant feedback of the filters while the real transformation is applied in the background, queued.
That would be in my oppinion a smart way to avoid blocking interaction without limiting the possibilities of the program.

Lionel Tarazón
2008-11-21 10:45:09 UTC (over 16 years ago)

Block user interaction while a plug-in is running?

Hi David

I am currently developing a Gimp plug-in with a GTK+ user interface. My plug-in is unstable if the user modifies the image or calls other plug-ins while it is running.

What version of GIMP are you using? This situation has been improved in 2.6, though there is still plenty of scope for further improvement.

Actually 2.4, in which ways has it improved in 2.6?

Is there a way of "blocking" user interaction over the gimp window which

called the plug-in?

No (and we probably would never implement it; it is pretty rude behaviour.)

In the future, a locking facility to simply prevent the user from modifying an image while a plugin is running on it (or only when the plugin is actually reading/writing from/to the image) could be desirable.

This would be great!

Thanks again. ------------------------------
Lionel Tarazón Alcocer
PRHLT - Pattern Recognition and Human Language Technology Group ITI - Instituto Tecnológico de Informática UPV - Universidad Politécnica de Valencia Valencia, Spain

David Gowers
2008-11-21 11:05:54 UTC (over 16 years ago)

Block user interaction while a plug-in is running?

Hi Lionel,

On Fri, Nov 21, 2008 at 8:15 PM, Lionel Tarazón wrote:

Hi David

I am currently developing a Gimp plug-in with a GTK+ user interface. My plug-in is unstable if the user modifies the image or calls other plug-ins while it is running.

What version of GIMP are you using? This situation has been improved in 2.6, though there is still plenty of scope for further improvement.

Actually 2.4, in which ways has it improved in 2.6?

The NEWS file says:
* allow plug-ins to work in parallel on different layers of the same image

David

jcupitt@gmail.com
2008-11-22 12:32:37 UTC (over 16 years ago)

Block user interaction while a plug-in is running?

2008/11/20 Guillermo Espertino :

A better solution (and I think that the porting to GEGL is aiming in this direction, among other things) would be to put the filter and the transformations in a sort of queue, so the interaction is never blocked and the processes are stacked so you can continue working while a filter is applied.

GEGL is (as I understand it) actually a bit fancier than this.

It's a demand-driven system, so filters are never really rendered at all. Instead, it just generates the pixels necessary to update the display. From the users point of view, all filters apply instantly, though more expensive filters will repaint the screen more slowly.

John