Commit Graph

44145 Commits

Author SHA1 Message Date
Michael Natterer 732d7c6a27 plug-ins: port file-png to GimpPlugIn
This commit removes all save procedures except gimp-png-save with all
parameters, and kills the default value handling procedures.

Default handling is now broken for NONINTERACTIVE use, but we will
handle this much better and consistent for all save procedures inside
GimpSaveProcedure
2019-08-16 21:55:34 +02:00
Michael Schumacher d6b33f9951 build: .gitlab-ci.yml: GEGL is switching to meson exclusively 2019-08-16 19:30:57 +00:00
Jehan 4900dde0dc gitlab-ci: build with --with-lua=force.
Same as with JS and Python, Lua dependencies are not a build blocker.
It's mostly a packager warning.
2019-08-16 20:33:09 +02:00
Jehan 0abdbebaad plug-ins: fix and install the Lua goat-exercise.
So procedure:new_return_values() just seems broken with LGI. It doesn't
even look like it reaches the C code.
Anyway we can also just reconstruct the GimpValueArray, which works
fine. We now have official support for Lua plug-ins!
2019-08-16 19:46:32 +02:00
Jehan bbfa8f8e3e plug-ins: Lua goat-exercise now showing its own source too. 2019-08-16 17:36:00 +02:00
Jehan a09b7a9c92 plug-ins: add a Lua goat-exercise.
It is working fine except that it crashes at the end when running
procedure:new_return_values(). I have not understood why yet, but it may
be a bug in lua LGI. Maybe we'll have to create the returned
GimpValueArray by hand in Lua.
Also the dialog does not show the source yet.

This is not installed yet (and lua interpreter is not checked at
configure) because of these issues which I will have to figure out. In
the meantime, I commit this work-in-progress.
2019-08-16 17:05:18 +02:00
Jehan ef5c091e58 plug-ins: add Python and JavaScript files to the DIST.
So it seems that whatever is in _SCRIPTS is not in the distribution by
default (I suppose the reason is that even scripts can be generated). So
let's add the non-generated scripts to EXTRA_DIST.
2019-08-16 14:53:19 +02:00
Jehan 1320a22fd8 libgimpbase: update the def file. 2019-08-16 14:45:23 +02:00
Niels De Graef 284ba5c870 libgimpconfig: Prevent GIR conflicts in GimpConfigWriter
GimpConfigWriter contains several constructors with the convention
`gimp_config_writer_new_* ()`. This will lead to problems however with
languages like Vala, where it cannot disambiguate the following:

```
// calls config_writer_new_string()
Gimp.ConfigWriter w = new ConfigWriter.string("xxx");
// calls config_writer_string()
w.string("xxx")
```

Using `from_` in constructors is general practice in GObject-bsed
libraries because of this.

This also fixes an error when trying to use vapigen on the GIMP .GIR
file.
2019-08-16 10:04:39 +00:00
Michael Natterer ebc09985b0 plug-ins: port file-sgi to GimpPlugIn 2019-08-15 21:37:43 +02:00
Michael Natterer 7edd28706f file-exr: use gimp_pdb_get_last_error() instead of gimp_get_pdb_error() 2019-08-15 19:03:09 +02:00
Michael Natterer c6fa23c22c plug-ins: port file-exr to GimpPlugIn 2019-08-15 19:00:10 +02:00
Michael Natterer 449e84c108 pdb: use guint for tatoo, guide, sample point, which they are
and initialize GimpUnit with PIXEL instead of just 0.
2019-08-15 16:41:39 +02:00
Michael Natterer 0e1f7457b9 app: s/INT32/INT/ in error messages when installing plug-in procedures 2019-08-15 15:13:27 +02:00
Michael Natterer 4fa08458e8 pdb: remove int16 from the PDB types and rename int8 to uchar 2019-08-15 15:11:18 +02:00
Michael Natterer 652fd75891 Rename GIMP_TYPE_INT8_ARRAY to GIMP_TYPE_UINT8_ARRAY
and GimpParamSpecInt8Array to GimpParamSpecUInt8Array
2019-08-15 15:04:34 +02:00
Michael Natterer 350abba213 Remove GIMP_TYPE_INT16 and GimpParamSpecInt16
Use gint and GParamSpecInt with the right value range instead.
2019-08-15 14:17:17 +02:00
Michael Natterer 5a09523214 Remove GIMP_TYPE_INT32 and GimpParamSpecInt32
Use gint and GParamSpecInt instead.
2019-08-15 14:04:56 +02:00
Michael Natterer 1bf90ec77f Remove GIMP_TYPE_INT8 and GimpParamSpecInt8
Use guchar and GParamSpecUChar instead.
2019-08-15 13:34:11 +02:00
Michael Natterer 1bfa52b692 libgimp: remove gimp_plugin_icon_register() 2019-08-15 12:51:40 +02:00
Michael Natterer b3a05a9f1d plug-ins: port colormap-remap to GimpPlugIn 2019-08-15 12:47:31 +02:00
Michael Natterer 5c4fa2de51 plug-ins: port screenshot to GimpPlugIn 2019-08-15 11:48:05 +02:00
Jordi Mas 1a5243b34d Update Catalan translation 2019-08-15 08:50:27 +02:00
Michael Natterer b007269729 Use g_strlcpy() instead of strncpy() everywhere
except where I didn't understand the code after 10 seconds of
looking..
2019-08-14 23:52:38 +02:00
Jehan 31bee77be9 libgimp: s/gimpdb-private.h/gimppdb-private.h/
Ok so that's why I thought it was not existing. There was actually a
typo!
2019-08-14 22:33:43 +02:00
Michael Natterer bb8d18ed39 plug-ins: port mail to GimpPlugIn 2019-08-14 22:06:19 +02:00
Michael Natterer 2cc080cf60 libgimp, devel-docs: why bother having docs for gimplegacy.[ch]
It's about to be dumped...
2019-08-14 21:04:18 +02:00
Michael Natterer f8895f7f22 Revert "libgimp: gimpdb-private.h was removed."
It's very much alive :)

This reverts commit e67c922b00.
2019-08-14 20:44:36 +02:00
Jehan e67c922b00 libgimp: gimpdb-private.h was removed. 2019-08-14 20:28:10 +02:00
Michael Natterer b6ca0c4433 plug-ins: port unit-editor to GimpPlugIn 2019-08-14 20:24:02 +02:00
Michael Natterer ff5dd3f3cf plug-ins: port animation-play to GimpPlugIn 2019-08-14 20:03:06 +02:00
Michael Natterer 996564116d libgimp: gimp_pdb_temp_name() can also go, bye... 2019-08-14 19:43:54 +02:00
Michael Natterer 6801857b9c libgimp: remove all support for temp procs from gimplegacy.[ch] 2019-08-14 19:16:33 +02:00
Michael Natterer 5b076e990d libgimp: remove legacy support from gimpbrush,pattern,..select.c
Their users have all been ported to GimpPlugIn.
2019-08-14 19:03:48 +02:00
Michael Natterer 30c3fd4de5 plug-ins: port fractal-explorer to GimpPlugIn 2019-08-14 18:57:16 +02:00
Michael Natterer 0b5f5bf70a plug-ins: port gfig to GimpPlugIn 2019-08-14 12:58:27 +02:00
Michael Natterer 037421dee0 plug-ins: port film to GimpPlugIn 2019-08-14 12:39:07 +02:00
Michael Natterer 0246f34183 libgimp: remove some more cruft that is no longer needed 2019-08-14 10:18:34 +02:00
Michael Natterer 0bfc4cf7b2 plug-ins: port all file-raw plug-ins to GimpPlugIn 2019-08-14 01:34:11 +02:00
Michael Natterer aba2eea17c libgimp: remove gimp_run_procedure() and gimp_destroy_params() 2019-08-14 00:18:39 +02:00
Michael Natterer 966c49d08e plug-ins: remove some crack code from curve-bend
containing the last use of gimp_run_procedure().
2019-08-14 00:11:21 +02:00
Michael Natterer 10f1fcf066 plug-ins: port file-ico to GimpPlugIn 2019-08-14 00:06:22 +02:00
Michael Natterer 29165fde7f plug-ins: port file-gih to GimpPlugIn 2019-08-13 22:53:04 +02:00
Michael Natterer 35fb6ca716 libgimp: deal with NULL arrays in _gimp_value_to_gp_param()
How did this not crash even once before in my tests...
2019-08-13 22:52:19 +02:00
Michael Natterer 91ecb6317a libgimp: remove more cruft that is now unused 2019-08-13 20:38:01 +02:00
Michael Natterer 358bbd932c plug-ins: port print to GimpPlugIn 2019-08-13 19:41:52 +02:00
Michael Natterer bc5cfaea25 plug-ins: port file-compressor to GimpPlugIn 2019-08-13 19:10:55 +02:00
Michael Natterer a5cb30173c libgimp: don't call g_file_new_for_uri() on a path
in gimp_load_procedure_run() and gimp_save_procedure_run().
2019-08-13 19:10:55 +02:00
luz.paz 7e99aa59f5 Add other misc. typo fixes 2019-08-13 11:50:51 -04:00
luz.paz c1585d609b Misc typo fixes in plug-ins/ 2019-08-13 11:50:51 -04:00