Commit Graph

49594 Commits

Author SHA1 Message Date
Jehan 4f1d0fb53b plug-ins: get rid of various gimp_image_set_file() calls.
- This is unneeded in all import procedures. See previous commit. Note though
  that this is not because of a change in previous commit. This was already
  useless previously. The file set with this PDB function was overridden by the
  core anyway (i.e. even before the previous commits).
  In app/file/file-import.c:file_import_image(), the imported file is correctly
  set (so there is no need to set it from plug-in, which anyway libgimp's
  gimp_image_set_file() was not doing) and the XCF file is reset to NULL
  (rendering the call to gimp_image_set_file() in a GimpLoadProcedure useless).
- Similarly, this is a useless call in export procedures because
  app/file/file-save.c:file_save() overrides such call too. I could only see one
  such case for JPEG export, which was quite useless.
- Finally in other types of plug-ins, setting a non-XCF file extension was
  interfering with the save feature (similarly to commit e6e73e14c7). I only
  fixed the screenshot implementations doing such a thing.
- I left a few usages which will have to be looked at more in details later.
2023-02-13 22:54:16 +01:00
Jehan fc2925def0 app, libgimp, pdb: gimp_image_set_file() only works for XCF files.
This is not made to set the imported or exported file, but only the XCF file.
See previous commit to see what happens when this API is used to set non-XCF
file extensions (saving fails unless one edits the filename).
2023-02-13 22:54:01 +01:00
Jehan e6e73e14c7 Issue #8581: forward-porting file-name fix from `gimp-2-10` branch.
This is a port of commit 57ee6e13ab to the main dev branch.
2023-02-13 22:54:01 +01:00
Daniel Novomeský dc8121729d flatpak: upgrade libjxl, highway, libde265 2023-02-13 17:59:14 +00:00
Ekaterine Papava 3381ad0a7f Update Georgian translation 2023-02-13 17:22:57 +00:00
Yuri Chornoivan 4929b505f7 Update Ukrainian translation 2023-02-13 15:33:22 +00:00
Jehan b9a6799082 app, libgimp, pdb: fixing generated code and wrong GEGL op arguments.
This commit is a fixup commit for MR !790 which had a few issues:

- The args for shadows and highlights adjustments are "shadows-ccorrect" and
  "highlights-ccorrect" respectively.
- Also fixing generated code.

(cherry picked from commit e456ab019b)
2023-02-13 14:28:00 +01:00
Ian Martins e238ea07ca pdb: add a PDB procedure for shadows-highlights
(cherry picked from commit 0b96363e10)

Reviewer's (Jehan) note: the generated source files were re-generated and
amended in this commit.
2023-02-13 14:26:04 +01:00
Jehan 851ddad2ee plug-ins: add back the prompt when "clearing" the Python console.
This code is taken from Massimo's comment in #1786 and MR !834. It doesn't fix
a crash as this was already handled in !404, yet the missing prompt after
hitting "clear" was clearly not consistent with how one expect a clear feature
to work.

At least now, we've got a prompt back immediately after clearing.
2023-02-13 13:17:30 +01:00
Piotr Drąg d19a397cf8 Update Polish translation 2023-02-12 13:17:44 +01:00
Martin f76c3fd630 Update Slovenian translation 2023-02-12 10:09:20 +00:00
Martin f65fa3e4e7 Update Slovenian translation 2023-02-12 10:04:13 +00:00
Hugo Carvalho 30cc8fe5be Update Portuguese translation 2023-02-11 22:18:55 +00:00
Hugo Carvalho 40949d5368 Update Portuguese translation 2023-02-11 22:15:45 +00:00
Yuri Chornoivan 3b3f4df1fe Update Ukrainian translation 2023-02-11 16:24:35 +00:00
Ekaterine Papava 3da1f5969a Update Georgian translation 2023-02-11 04:46:55 +00:00
Jehan c369827725 plug-ins: load PDF without filling the background to white.
Some PDF have transparency on purpose. Filling with white, without any question,
is counter-productive and prevents from working on such PDF files.

Note that we could add an option with a checkbox, leaving one to decide whether
to fill the background or not. But it feels over-engineering the issue. The PDF
is transparent, so that's what we load, and that's it. If one wants to add a
background, it's easy to add a layer at the bottom of the stack (and they can
make it any color they want, not just white), after loading the file.
2023-02-10 19:51:45 +01:00
Alx Sa 8b2262530b plug-ins: Make PDF background color fill optional
This adds a checkbox to single and multi-page PDF export to not fill
transparency with the background color 
(which currently happens automatically)
2023-02-10 18:35:14 +00:00
Jehan fb1f16d4b8 plug-ins: fix a crash in tiff_io_error().
I had a TIFF file which would crash while triggering an error, inside g_logv()
code (and according to the stacktrace, even probably inside some lower level
printf implementation code).

The reason was that I already processed the variable list with
g_strdup_vprintf() and printf didn't like this va_list being reused, then
segfaulted with some "Cannot access memory at address" error.

The alternate fix was to first copy the va_list in the first use with
va_copy()/G_VA_COPY, yet since we already processed the format data, I thought
it was useless to do this. Let's just directly use the formatted string.
2023-02-10 19:28:19 +01:00
Ekaterine Papava 2dfe70e16f Update Georgian translation 2023-02-10 10:07:41 +00:00
Jehan f77f772f56 Issue #8359: GIMP crashes from "open the font selection dialog" button.
Apparently GDK/Win32 sends the "grab-broken-event" signal before the "clicked"
signal. This has only been changed since GTK4 so far.

Anyway the bottom line is that GimpContainerPopup would process a handled on
"clicked", using the object destroyed when "grab-broken-event" happened as
callback data. The solution is to make sure that the object stays alive long
enough. So I'm changing gimp_editor_add_button() to connect to signals with
g_signal_connect_object() (since all usage of this function was used with
GObject callback data, it was not a problem).

See discussion in !815.

As a side change, gimp_container_popup_dialog_clicked() should emit the
"cancel", not "confirm". This part was taken from MR !815 by Lloyd Konneker.
2023-02-09 22:22:56 +00:00
Yuri Chornoivan 9328c9c03c Update Ukrainian translation 2023-02-09 21:14:11 +00:00
Stanislav Grinkov 9b517fbf7d
[app] Ensure calculated histogram spike height ...
is positive or zero. Sometimes the calculated `y` or `bg_y`
values are negative because the histogram value was divided
by zero (when max == 0.0).

Resolves: #9132 (Gnome/GIMP bug tracker)
2023-02-10 00:45:47 +06:00
Jehan 8bd3d5e0bb Issue %8365: Ambiguous naming of "Lock path strokes". 2023-02-09 15:11:49 +01:00
Jehan b71abffe51 NEWS: update.
Some items are removed because they were backported in upcoming 2.10.34 before
we released GIMP 2.99.16.
2023-02-09 14:44:36 +01:00
Hugo Carvalho 297f0679a3 Update Portuguese translation 2023-02-08 11:28:43 +00:00
Martin fd0c906ef4 Update Slovenian translation 2023-02-07 16:39:14 +00:00
kotvkvante 708af26890 fix typo 2023-02-06 15:24:27 +00:00
Ekaterine Papava 8259e166b2 Update Georgian translation 2023-02-06 15:18:44 +00:00
Yuri Chornoivan ead5512d6b Update Ukrainian translation 2023-02-06 09:39:54 +00:00
Alx Sa 38c031e01d plug-ins: Port GFig to GAction/GMenuModel
Because of how many actions can change the sensitivity of "undo" options
most of the plug-in files had to be edited to pass GimpGfig to them.
2023-02-04 23:16:24 -05:00
Rodrigo Lledó e6382e9262 Update Spanish translation 2023-02-04 03:36:05 +00:00
Rodrigo Lledó a4b6f00a77 Update Spanish translation 2023-02-04 03:21:29 +00:00
Martin 0a8c8c2649 Update Slovenian translation 2023-02-02 22:20:02 +00:00
Alx Sa 0628db1506 plug-ins: Fix possible crash on ifs-compose load
The build variable in GimpIfs struct is now initialized to NULL to
prevent build issues when finalized.
2023-02-02 14:27:34 -05:00
Sabri Ünal e9f8d00c82 Update Turkish translation 2023-02-02 12:49:40 +00:00
Sabri Ünal 76c817f2fb Update Turkish translation 2023-02-02 12:31:42 +00:00
Sabri Ünal c72c2e5716 Update Turkish translation 2023-02-02 12:29:35 +00:00
Sabri Ünal 1497d4d5d8 Update Turkish translation 2023-02-02 12:28:22 +00:00
Yuri Chornoivan c2cd943021 Update Ukrainian translation 2023-02-02 09:04:08 +00:00
Ekaterine Papava b13eff27da Update Georgian translation 2023-02-02 05:36:39 +00:00
Alx Sa 78d2e8819b plug-ins: Port IFS Fractal GUI to GAction
Converts the pop-up menu and toolbar. Also replaces deprecated
gtk_arrow_new () with similar GtkImage of an arrow.
2023-02-01 20:26:53 +00:00
Martin 4312240eb9 Update Slovenian translation 2023-02-01 20:17:56 +00:00
Yuri Chornoivan a04dcc49ea Update Ukrainian translation 2023-02-01 18:46:37 +00:00
Hugo Carvalho 30e9cb9f7c Update Portuguese translation 2023-02-01 16:45:58 +00:00
Ekaterine Papava 28401c2bef Update Georgian translation 2023-02-01 16:12:15 +00:00
Alexander Shopov 857dad6301 Update Bulgarian translation 2023-02-01 14:42:51 +00:00
Alx Sa c7bef41a1e plug-ins: Add export support for PAM files
Exports the following PAM formats: 
GRAYSCALE, GRAYSCALE_ALPHA, RGB, RGB_ALPHA.
As with import, the main difference is the header and transparency.
Raw PPM export code is reused for the actual data.
2023-01-29 22:09:05 -05:00
Alx Sa af904ec55d plug-ins: Add import support for PAM files
PAM files are essentially PPM files with a different header format and
alpha/16 bit support.
Jörg Walter's 2.2 code was updated and implemented to read the revised
header format. The existing PPM loading code works with PAM files.
2023-01-29 18:01:48 +00:00
Jehan 3e53b28f7a libgimp: include the header from the implementation file.
It was failing with the autotools build.
Why did this even compile with our meson build?
2023-01-29 18:01:53 +01:00