mirror of https://github.com/GNOME/gimp.git
ddcaa99264
- Fix annotations for gimp_export_options_get_image() to make it actually introspectable with the GimpImage being both input and output. Even though the logic doesn't change much (the input image may be overriden or not), it doesn't matter for introspection because images are handled centrally by libgimp and therefore must not be freed. Actually deleting the image from the central list of images though remains a manual action depending on code logic, not some automatic action to be handled by binding engines. - Add G_GNUC_WARN_UNUSED_RESULT to gimp_export_options_get_image() because ignoring the returned value is rarely a good idea (as you usually want to delete the image). - Remove gimp_export_options_new(): we don't need this constructor because at this point, the best is to tell plug-in developers to just pass NULL everywhere. This leaves us free to create a more useful default constructor if needed, in the future. Main description for GimpExportOptions has also been updated to say this. - Add a data_destroy callback for the user data passed in gimp_export_procedure_set_capabilities(). - Fixing annotations of 'export_options' object from pdb/pdb.pl: input args would actually be (nullable) and would not transfer ownership (calling code must still free the object). Return value's ownership on the other hand is fully transfered. - Add C and Python unit testing for GimpExportOptions and gimp_export_options_get_image() in particular. - Fix or improve various details. Note that I have also considered for a long time changing the signature of gimp_export_options_get_image() to return a boolean indicating whether `image` had been replaced (hence needed deletion) or not. This also meant getting rid of the GimpExportReturn enum. Right now it would work because there are no third case, but I was considering the future possibility that for instance we got some impossible conversion for some future capability. I'm not sure it would ever happen; and for sure, this is not desirable because it implies an export failure a bit late in the workflow. But just in case, let's keep the enum return value. It does not even make the using code that much more complicated (well just a value comparison instead of a simple boolean test). |
||
---|---|---|
.. | ||
gimpbase-private.c | ||
gimpbase-private.h | ||
gimpbase.def | ||
gimpbase.h | ||
gimpbaseenums.c | ||
gimpbaseenums.h | ||
gimpbasetypes.c | ||
gimpbasetypes.h | ||
gimpchecks.c | ||
gimpchecks.h | ||
gimpchoice.c | ||
gimpchoice.h | ||
gimpcompatenums.c | ||
gimpcompatenums.h | ||
gimpcpuaccel.c | ||
gimpcpuaccel.h | ||
gimpenv.c | ||
gimpenv.h | ||
gimpexportoptions.c | ||
gimpexportoptions.h | ||
gimplimits.h | ||
gimpmemsize.c | ||
gimpmemsize.h | ||
gimpmetadata.c | ||
gimpmetadata.h | ||
gimpparamspecs.c | ||
gimpparamspecs.h | ||
gimpparasite.c | ||
gimpparasite.h | ||
gimpparasiteio.c | ||
gimpparasiteio.h | ||
gimpprotocol.c | ||
gimpprotocol.h | ||
gimprectangle.c | ||
gimprectangle.h | ||
gimpreloc.c | ||
gimpreloc.h | ||
gimpsignal.c | ||
gimpsignal.h | ||
gimpunit.c | ||
gimpunit.h | ||
gimputils.c | ||
gimputils.h | ||
gimpvaluearray.c | ||
gimpvaluearray.h | ||
gimpversion.h.in | ||
gimpwin32-io.h | ||
gimpwire.c | ||
gimpwire.h | ||
meson.build | ||
test-cpu-accel.c |