Re: [Gimp-developer] marking a document/image as dirty/changed in a plugin

Dan Hitt via gimp-developer-list <[email protected]>
Newsgroups gmane.comp.video.gimp.devel
Message-ID <CAOphiz+E8fAaLcmVy3O2-4P_mUvW_3V57gnx1ZT77bvyAQQVPw@mail.gmail.com>
On Mon, Nov 11, 2019 at 1:40 AM Ofnuts <[email protected]> wrote:

> On 11/10/19 5:23 AM, Dan Hitt via gimp-developer-list wrote:
> > The other hole is that i find that so far i cannot read and write a
> > pixel.
>
>
>  From my experiments:
>
> - start an "undo group": this marks the image "dirty"
>
> - attach an "undoable" parasite
>
> - end the undo group and exit
>
> At that point if you list the parasites you find the one that was added
>
> If you then Ctrl-Z and list the parasites the added  parasite is gone.
>
>   <<< clipped >>>
>

Awesome, thank you so much Ofnuts!

It works in c as well, exactly as you describe, solving both the problem of
getting the document marked dirty, as well as providing a means for undoing
it.  This it fills in that first hole that i had.

dan
_______________________________________________
gimp-developer-list mailing list
List address:    [email protected]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.