[prev in list] [next in list] [prev in thread] [next in thread]
List: gimp-developer
Subject: Re: [Gimp-developer] Updating plugin dialog after click in main
From: Bill Skaggs <weskaggs () gmail ! com>
Date: 2009-09-09 16:34:48
Message-ID: 563e4e290909090934x5989c373of7f19d56755992c9 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
What you want is probably either a GimpColorSelection
( http://developer.gimp.org/api/2.0/libgimpwidgets/GimpColorSelection.html )
or a GimpColorButton
( http://developer.gimp.org/api/2.0/libgimpwidgets/GimpColorButton.html ),
which pops up a GimpColorSelection when pressed. I don't think there is any
way
to get it to update automatically when the core changes. Once upon a time
this
happened without any programming needed, but in the current Gimp, each
plug-in has its own "context" for things like colors, and there is no way
for
the core Gimp application to pass messages to a plug-in, except in response
to a
request from the plug-in. The only way to do it, as far as I know, is for
the
plug-in to interrogate the core at regular intervals to see if anything has
changed, and that's a nasty solution.
-- Bill
[Attachment #5 (text/html)]
What you want is probably either a GimpColorSelection <br>( <a \
href="http://developer.gimp.org/api/2.0/libgimpwidgets/GimpColorSelection.html">http://developer.gimp.org/api/2.0/libgimpwidgets/GimpColorSelection.html</a> \
)<br> or a GimpColorButton<br>( <a \
href="http://developer.gimp.org/api/2.0/libgimpwidgets/GimpColorButton.html">http://developer.gimp.org/api/2.0/libgimpwidgets/GimpColorButton.html</a> \
),<br>which pops up a GimpColorSelection when pressed. I don't think there is \
any way<br> to get it to update automatically when the core changes. Once upon a \
time this<br>happened without any programming needed, but in the current Gimp, \
each<br>plug-in has its own "context" for things like colors, and there is \
no way for<br> the core Gimp application to pass messages to a plug-in, except in \
response to a<br>request from the plug-in. The only way to do it, as far as I know, \
is for the <br>plug-in to interrogate the core at regular intervals to see if \
anything has <br> changed, and that's a nasty solution.<br><br> -- Bill<br><br>
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic