marking a document/image as dirty/changed in a plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list



[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux