[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 <CAOphizK96MhXVwOshbb9nHAsbqZYL_8fVmo3hG8pbobWRC-gcQ@mail.gmail.com>
I'm writing a plugin that adds some metadata to an image (gimp document).

The metadata is added as a "parasite".

I can see in the api, libgimp/gimpimage_pdb.h, how you can test if an image
is dirty, via gimp_image_is_dirty(image_id).  I can also see how you can
mark an image as clean (gimp_image_clean_all(image_id).  But i don't see
how you can mark an image as dirty.  I would like to do this so that if you
attempt to close an image without saving, gimp will ask you to save your
image first.

I'm adding the metadata using gimp_image_attach_parasite( image_id,
parasite).

I'm using the c interface, although i imagine any language will face
similar issues.

I'm using gimp 2.10.8 on debian 10.

Thanks in advance for any info or advice.

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.