Commit Graph

8628 Commits

Author SHA1 Message Date
Ell 65530b6aa7 Issue #3925 - Gimp from git master segfaults when showing preview of exported JPEG file
In file-jpeg-save, ref the file object when using a preview idle
to keep it alive.
2019-09-12 21:05:34 +03:00
Ell 077e596dfc plug-ins: fix wrong g_free() in jpeg-save
... after GFile port.
2019-09-12 19:40:35 +03:00
Michael Natterer 63e0e7679b plug-ins: fix "film" to not crash on repeat
Can't have objects in the last_vals struct, use image IDs again.
2019-09-12 12:42:09 +02:00
Ell f1a13b4904 plug-ins: fix optional common/ plug-ins in meson build
Align plug-ins/common/meson.build with plugin-defs.pl, avoiding
building optional plug-ins whose dependencies aren't met.

Fix the build condition of the mail plug-in.
2019-09-12 13:04:16 +03:00
Michael Natterer 83a936b8fe pdb: rename all functions in the "plug_in" group
from gimp_plugin_foo() to gimp_plug_in_foo() for consistency.
2019-09-11 23:58:47 +02:00
Michael Natterer 6468fa06c7 pdb, plug-ins: change gimp_temp_name() to gimp_temp_file() 2019-09-11 22:32:44 +02:00
Michael Natterer 6bca8c4f89 pdb, app, libgimp, plug-ins: replace most PDB filenames/URIs by GFile
and in an attack of madness, changes almost all file plug-in
code to use GFile instead of filenames, which means passing
the GFile down to the bottom and get its filename at the very
end where it's actually needed.
2019-09-11 21:48:34 +02:00
lillolollo 5d365352ca Issue !125: avoid conflict with win32 macro.
jpeg-save.c:56: warning: "DEFAULT_QUALITY" redefined
   56 | #define DEFAULT_QUALITY          90.0
      |
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/rpc.h:16,
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/objbase.h:7,
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/shlwapi.h:16,
                 from C:/msys64/mingw64/include/jmorecfg.h:19,
                 from C:/msys64/mingw64/include/jpeglib.h:31,
                 from jpeg-save.c:33:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:1140: note: this is the location of the previous definition
 1140 | #define DEFAULT_QUALITY 0
2019-09-11 19:01:49 +00:00
Félix Piédallu eb229fe2dc disabling Twain plug-in until it's fixed 2019-09-11 16:42:04 +02:00
Félix Piédallu 65eff6f150 Meson port. 2019-09-11 16:42:04 +02:00
Michael Natterer f3fb3d1a57 Remove the second "raw-filename"/"raw-uri" parameter from file procedures
It's an ancient concept from ancient times when we didn't have URIs
and only filenames (not to speak of GFile), and actually even from
before the ancient time before that ancient time when we first had
ones and zeros, and only had zeros.
2019-09-11 00:21:03 +02:00
Michael Natterer cc5149565a plug-ins: remove unused variables from plugin-browser.c 2019-09-10 19:47:12 +02:00
Michael Natterer 26a744f44d plug-ins: register thumbnail procedures before load procedures
so registering the thumbnail loader with the load procedure can
perform some checks for procedure existence and signature.
2019-09-10 19:36:54 +02:00
Jehan 49640ebfee plug-ins: fix warning on JavaScript goat exercise.
The exact warning was:
> (goat-exercise-gjs:26895): Gjs-WARNING **: 15:59:18.382: Some code
> called array.toString() on a Uint8Array instance. Previously this
> would have interpreted the bytes of the array as a string, but that is
> nonstandard. In the future this will return the bytes as
> comma-separated digits. For the time being, the old behavior has been
> preserved, but please fix your code anyway to explicitly call
> ByteArray.toString(array).  (Note that array.toString() may have been
> called implicitly.)
2019-09-10 16:06:48 +02:00
Sabri Ünal a60ac57207 Missing mnemonics on several file dialogs
This path corrects missing mnemonics on several save/open/export dialogs.

save: file
open: file, dds, fits, tiff
export: bmp, dds, fli, gbr, gih, mng, pat, pnm, pdf, raw, sunras, sgi, webp
2019-09-09 18:06:29 +00:00
Michael Natterer 453b4f4aa2 pdb: add gimp_pdb_set_proc_menu_label()
and all the needed code in libgimp/ and app/ to set a plug-in
procedure's menu label using the new API. Remove the menu label from
GPProcInstall.
2019-09-08 17:30:54 +02:00
Michael Natterer 33c84ceb08 plug-ins: don't set a NULL menu label in script_fu_script_install_proc() 2019-09-08 17:27:27 +02:00
Michael Natterer 7a9517c261 plug-ins: fix film to succeed again and not always do nothing 2019-09-08 15:51:51 +02:00
Michael Natterer 388776df07 Simplify the plug-in query API and fix plugin-browser
- remove the menu path and image types from "gimp-plugins-query",
  they are available via GimpProcedure, also reorder and rename
  its remaining return values to make sense
- remove the "menu_path" parameter to gimp_proc_view_new(),
  it can also ask GimpProcedure
- adapt plugin-browser to the new API and make it use GimpProcedure
- fix plugin-browser's tree view to show all menu hierarchies
  completely, it was still expecting menu paths that contain
  the menu label too
2019-09-08 14:59:09 +02:00
Michael Natterer 4da47e2596 plug-ins: it's "darktable" not "placeholder"...
seems i did a bit too much search/replace when porting file-raw.
2019-09-07 19:59:48 +02:00
Massimo Valentini 32afd4cb3e Issue 2873 - Missing menu text on Image Map filter
Add action labels missing after replacing stock items with icon names
and replace "<control>" shortcut designation with "<primary>"
2019-09-07 00:58:11 +02:00
Michael Natterer 6f4122b7b9 Issue #3655 - Cannot edit long lines of metadata (no scroll bar)
Set the crollbar policy to automatic.
2019-09-06 17:34:41 +02:00
Massimo Valentini 0a1e9d1190 Issue 2206: Error message when opening "MULTICHANNEL" PSD...
...files (file attached)
2019-09-06 17:25:30 +02:00
Sabri Ünal 2e766f67d4 Missing mnemonics on several dialogs
paste as brush, paste as pattern, select to new brush, select to new pattern
fill selection outline, fill path, stroke selection, distort, rounded rectangle
indexed color conversion, merge visible layers, new guide, new guide (by percent)
image properties, newsprint, fractal explorer, sample colorize, new layer

metadata editor (just a button), spyroplus (only common buttons)
2019-09-05 22:41:19 +03:00
Michael Natterer c10f5b2d68 plug-ins: port film and guillotine to objects arrays 2019-09-05 14:39:32 +02:00
Michael Natterer 3a2f8d422a plug-ins: use the newly added GET_FOO_ID() macros 2019-09-05 13:24:25 +02:00
Michael Natterer 0c83f4a96d plug-ins: file-svg: follow gimp_vectors_import_from_file() change 2019-09-05 13:18:30 +02:00
Michael Natterer 3fd3344f80 plug-ins: script-fu lost all support for images, layers etc.
due to the recent change to actual objects instead of IDs,
so add object support to script_fu_marshal_procedure_call().
2019-09-04 10:28:50 +02:00
Michael Natterer 7257cc8abc plug-ins: port curve-bend to GimpPlugIn... IT'S DONE YEAH 2019-09-03 23:29:21 +02:00
Michael Natterer f405b45058 plug-ins: port sample-colorize to GimpPlugIn 2019-09-03 22:51:18 +02:00
Michael Natterer bdbe1ee06d plug-ins: port sparkle to GimpPlugIn 2019-09-03 22:16:39 +02:00
Michael Natterer 5c5b4642b1 plug-ins: port warp to GimpPlugIn 2019-09-03 21:30:27 +02:00
Michael Natterer 4ded322edf plug-ins: port map-object to GimpPlugIn 2019-09-03 21:00:23 +02:00
Michael Natterer 9e3359c659 plug-ins: port lighting to GimpPlugIn 2019-09-03 19:58:18 +02:00
Michael Natterer 5154b27108 plug-ins: port depth-merge to GimpPlugIn 2019-09-03 19:22:42 +02:00
Michael Natterer 0785dd17a5 plug-ins: port sphere-designer to GimpPlugIn 2019-09-03 15:37:52 +02:00
Jehan 71ccaa21ee pdb, libgimp: remove double API generation from PDB.
All plug-ins got ported. Let's remove support for the old API with IDs
instead of objects.
2019-09-03 13:31:27 +02:00
Michael Natterer a4637b0d69 plug-ins: remove deprecated API support from common/mkgen.pl 2019-09-03 13:25:25 +02:00
Michael Natterer 29687012c4 plug-ins: port tile to GimpPlugIn 2019-09-03 13:24:05 +02:00
Michael Natterer 8245102bbd plug-ins: print: fix missing argument to GIMP_PROC_ARG_IMAGE() 2019-09-03 12:42:17 +02:00
Michael Natterer 6ba3fb3bd1 plug-ins: port curve-bend to libgimp oobjects. THE LAST ONE \o/ 2019-09-03 11:59:53 +02:00
Michael Natterer adfe5ee390 plug-ins: port sphere-designer to libgimp objects 2019-09-03 11:36:41 +02:00
Michael Natterer 0b98a3e2e8 plug-ins: blind port of twain to libgimp objects
Please somebody build and fix this on windows.
2019-09-03 11:17:01 +02:00
Michael Natterer 45d60acb65 plug-ins: use the new item-type specific get_by_id() functions 2019-09-03 10:48:32 +02:00
Michael Natterer 1f4a5d4004 plug-ins: port map-objects to libgimp objects 2019-09-03 10:28:21 +02:00
Michael Natterer 71f767efc0 plug-ins: port lightning to libgimp objects 2019-09-02 19:34:07 +02:00
Michael Natterer add31e2976 plug-ins: fix a glitch in the script-fu unique argument name logic 2019-09-02 19:34:07 +02:00
Michael Natterer 6e0185b976 plug-ins: make sure script-fu arguments have unique names 2019-09-02 18:52:57 +02:00
Michael Natterer a1343ee89c plug-ins: fix duplicate argument name in file-gih-save 2019-09-02 17:56:06 +02:00
Michael Natterer 2d50192c08 plug-ins: port smooth-palette to GimpPlugIn and libgimp objects 2019-09-02 16:10:12 +02:00