3ce2c7e3f9
libgimp: s/filename/file/ in docs
2019-09-21 19:02:40 +02:00
14af676b51
pdb, libgimp: change "filename" to "file" in gimp_pdb_dump()
2019-09-11 22:37:40 +02:00
b587740a10
libgimp: make sure the GimpPlugIn and GimpPDB singletons get destroyed
...
Break reference cycles between the objects and the procedures they
keep by moving procedure destruction to dispose() and calling
g_object_run_dispose() before unrefing PLUG_IN and PDB in gimp.c.
Also some formatting and "Since: 3.0" annotation .
2019-09-09 11:16:39 +02:00
41fa670434
Rename all "nparams" and "nreturn_vals" members in the wire protocol
...
to "n_params" and "n_return_vals".
2019-09-09 01:00:54 +02:00
bfe4a2f9dd
app, libgimp: add _gimp_gp_params_free() to gimpgpparams
...
which frees exactly what _gimp_value_array_to_gp_params() has
allocated, honors its "full_copy" parameter, and plugs the last
libgimp refactoring leaks I'm currently aware of.
2019-09-05 20:59:57 +02:00
0f7f322fa5
libgimp: _gimp_gp_params_to_value_array() remove "gboolean full_copy"
...
With all the GValue and GimpValueArray copying involved, we can't
really make a shallow copy anyway, so don't let the API pretend we
could.
2019-09-05 20:17:22 +02:00
ee86e5630e
libgimp: don't leak the GPParam array after writing procedure return values
...
Annotate all calls to g_free(GPParam*) with /* FIXME leaking object arrays */
because we now do, and it needs to be fixed.
2019-09-05 16:24:09 +02:00
7d3427e91d
libgimp: gimp_pdb_run_procedure_array() was leaking proc_run.params
2019-09-05 13:01:00 +02:00
4364b78446
libgimp: remove the GIMP_DISABLE_COMPAT_CRUFT define
...
there is no legacy API left a ported plug-in could accidentially use.
2019-08-30 13:00:00 +02:00
6ed2d03c73
libgimp: use the new macros in all non-generated files
2019-08-20 01:21:32 +02:00
f480d02823
libgimp: add precondition checks for gimp_is_canonical_identifier()
...
on all procedure name parameters.
2019-08-18 12:43:37 +02:00
79d92a5d05
libgimp: remove a lot of cruft because script-fu is ported now
...
Also remove all legacy code from GimpProcView and
GimpProcBrowserDialog.
2019-08-12 20:49:08 +02:00
1c9b3c7055
libgimp: add gimp_pdb_get_last_error() and _get_last_status()
...
and move the old API to gimplegacy.[ch].
2019-08-11 16:41:58 +02:00
84629cc1d0
pdb, libgimp: move the old file proc registering API to gimplegacy.[ch]
...
Also, #define GIMP_DISABLE_COMPAT_CRUFT in all GimpPlugIn related
files to prevent accidential use of the old API.
2019-08-11 13:21:55 +02:00
41fb552988
libgimp: more docs and annotations
2019-08-09 12:41:45 +02:00
244b52bf0d
pdb, libgimp: make the "pdb" PDB group private
...
and don't install its header. Temporarily add its only two remaining
needed functions to gimppdb.[ch].
Also some Makefile cleanup.
2019-08-08 21:55:11 +02:00
9339741135
libgimp: unnecessary (out) annotation on return value.
...
Fixes:
> Warning: Gimp: unexpected annotation: out
2019-08-08 16:58:56 +02:00
35ead93a8f
libgimp: simplify gimp_pdb_run_procedure_valist() a lot
...
by using gimp_value_array_new_from_types_valist().
2019-08-08 13:27:34 +02:00
0aa2dcfadb
libgimp: replace gimp_pdb_dump() and gimp_pdb_query() by new API
...
and move them to gimplegacy.[ch].
2019-08-08 01:14:35 +02:00
5d80b74204
libgimp: more docs and annotations for GimpPDB
2019-08-08 00:34:16 +02:00
7b58cb1d28
libgimp: move most old gimp_pdb functions to gimplegacy.[ch]
2019-08-07 00:27:34 +02:00
64d880f1fe
libgimp: add gimp_pdb_temp_procedure_name() and hide the PDB wrapper
2019-08-07 00:19:38 +02:00
2599c6e071
libgimp: add some const to input parameters, like const GimpValueArray*
...
for procedure arguments. This implies creating a new value array in
gimp_procedure_run() if the passed array is too short, instead of
just appending to the passed array, which was ugly anyway.
2019-08-07 00:04:58 +02:00
9a027140c8
libgimp: add read- and write-channel construct properties to GimpPlugIn
...
and change all GimpPlugIn-based code to get the channels from the
plug-in singleton instead of from the global variables.
2019-08-06 21:29:48 +02:00
b20aab0236
libgimp: add annotations to gimp_pdb_run_procedure_array().
...
Especially as an example of setting a (rename-to) since variable
arguments are not introspectable, hence gimp_pdb_run_procedure() won't
be available for non-C plug-ins.
2019-08-06 19:29:00 +02:00
84cb07f995
libgimp: add more comfortable ways to run procedures to GimpPDB
...
return_vals = gimp_pdb_run_procedure (pdb, "procedure-name",
G_TYPE_STRING, "string arg",
G_TYPE_INT 23,
G_TYPE_BOOLEAN, FALSE,
G_TYPE_NONE);
2019-08-06 19:13:06 +02:00
8860d78979
libgimp: more progress on the GimpPDB object
...
- add gimp_pdb_run_procedure()
- hide more functions in gimppdb_pdb.[ch], and add proper API
- add gimp_get_pdb() which returns the singleton
2019-08-06 19:13:06 +02:00
05baadcd1d
pdb: rename the "procedural_db" PDB group to just "pdb"
2019-08-06 12:51:56 +02:00
450a9f90b4
libgimp: add a GimpPDB class and subclass GimpProcedure as GimpPDBProcedure
...
The idea is that we already have a GimpProcedure object in libgimp
which has name, help, blurb, arguments, return values and everything,
so we really don't need a parallel API to query PDB procedures for
their properties.
- make run() a virtual function of GimpProcedure
- move GIMP_PDB_ERROR to GimpPDB
- GimpPDBProcedure is a trivial subblass which populates
GimpProcedure's members by querying the PDB.
- make "plug-in", "procedure-type" and "name" construct-only
properties of GimpProcedure.
This is all work in progress.
2019-08-06 12:22:23 +02:00