Ok thanks for the information.  I think I'll file a feature request as well - I think this would be a great addition to the API<br><br><div class="gmail_quote">On Mon, Apr 2, 2012 at 10:06 AM, Joao S. O. Bueno <span dir="ltr"><<a href="mailto:gwidion@mpc.com.br">gwidion@mpc.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 23 March 2012 15:06, Chris Mohler <<a href="mailto:cr33dog@gmail.com">cr33dog@gmail.com</a>> wrote:<br>

> On Fri, Mar 23, 2012 at 12:51 PM, Jon Decker <<a href="mailto:jondecker76@gmail.com">jondecker76@gmail.com</a>> wrote:<br>
>> Thanks for the reply.  I do realize that the current image and drawable is<br>
>> passed to the plugin when first opened.  Perhaps I should explain further.<br>
>> I'm trying to build more of an extension that is opened just once, and<br>
>> updates as you move from image to image. (Its a time tracking window which<br>
>> stays open along side gimp).  I wanted to make it so that a new instance of<br>
>> the plugin doesn't have to run for each image - just open it once, and it<br>
>> "knows" which image is currently active so that it can populate my sqlite<br>
>> database.<br>
>><br>
>> Is there a way to do this at in in gimp?<br>
<br>
</div>No, there is not - at least no clean ways that I can think of. There<br>
is nothing on the GIMP's API that marks an image as the<br>
currently active image.(The "unclean way" I can think of  would mean<br>
to use GTK+ instrumentation for GUI debugging to be able to introspect<br>
active<br>
windows, and infere the active image from its title)<br>
<br>
Another "unclean", but tidier, way would be to create a very simple<br>
script, with no parameters but "image and drawable" that would just<br>
signal your main plug-in when called - and you could bind it to a<br>
shortcut key and press it everytime you switch the active image.<br>
<br>
To notify your mainplug-in you could use some file-system signaling<br>
mechanism, xmlrpc, or some gtk+ mechanism..<br>
<br>
I'd use this second approach.<br>
<div class="im"><br>
><br>
> I'm not sure (reposting to list - be sure to 'reply-all' vs just 'reply').<br>
><br>
> Chris<br>
</div>> _______________________________________________<br>
> gimp-developer-list mailing list<br>
> <a href="mailto:gimp-developer-list@gnome.org">gimp-developer-list@gnome.org</a><br>
> <a href="http://mail.gnome.org/mailman/listinfo/gimp-developer-list" target="_blank">http://mail.gnome.org/mailman/listinfo/gimp-developer-list</a><br>
</blockquote></div><br>