Commit Graph

43500 Commits

Author SHA1 Message Date
Ell
f04d72d008 Issue #4218 - Color>Invert doesn't work on saved selection channel ...
... or copied RGB channel

In gimp_drawable_merge_filter(), make sure the drawable's source
node is constructed before applying the operation.  The
construction of the source node connects the drawable's filter
stack to the udnerlying source node (usually, the buffer-source
node), which we rely on when calling
gimp_gegl_apply_cached_operation(), since we pass
connect_src_buffer == FALSE.  Otherwise, the operation is applied
to an empty input, instead of the drawable content.

(cherry picked from commit 0e29fc1b21)
2019-11-11 19:01:40 +02:00
Ell
f16ce35f8d app: in GimpHistogram, don't initialize n_bins to 256
... it's no longer needed, and breaks the type's invariants.

(cherry picked from commit 2a292b02e3)
2019-11-11 18:18:55 +02:00
Ell
9f8e244ec1 Issue #4205 - The histogram dock scale is incorrect when an image is opened
In gimp_histogram_view_update_bins(), don't update the view's
range if there's no histogram or the histogram is empty, to avoid
discarding the existing range.  Additionally, improve the range
readjustment when the number of bins changes.

(cherry picked from commit 0c899394b4)
2019-11-11 18:18:55 +02:00
7072b77224 Update Catalan translation 2019-11-10 20:22:43 +01:00
47a4d210ca NEWS: update. 2019-11-08 14:10:25 +01:00
e7478071e8 Issue #4194: resolution passes from 300ppi to 72ppi after saving.
We are running gimp_image_set_imported_file() when saving, with NULL to
drop the tie with the imported file. Let's only change the default
resolutions when we actually set an imported file.

Also set the `resolution_set` flag even when it doesn't change the
current values (hence no undo or signals), for instance setting from 300
to 300 PPI. In such case, even though nothing changes, the resolution
has to still be considered as explicitly set.

In the reporter case, any one of these 2 fixes is enough.
See also commit fef9b1d2a3 (set to 72 PPI as default for imported files
only) and commit a8f552da2f (set imported file to NULL).

(cherry picked from commit 417bf199c8)
2019-11-08 14:07:51 +01:00
04997fc0ae Replace finite() with isfinite() by default
This is part of the C standard also also causing warning on macOS.
2019-11-07 09:09:22 +00:00
4cd23c64e9 Revert finite() fix as it needs to be done in pdb and configure 2019-11-06 21:16:26 +01:00
aff49550ee Fix "finite() is depricated" warning on macOS 2019-11-06 17:04:35 +01:00
03b78e97d0 plug-ins: clean all warnings on metadata plug-in.
I made the various static arrays in headers declared as extern and
defined in a separate implementation file, with additional size constant
when necessary (since G_N_ELEMENTS() cannot be used on partially
defined arrays).

Note that this is better than the original implementation, yet I am not
saying this is ideal either. I am not fond of such code organization and
think a better one could be done. But it would require to dive deeper
into this plug-in and I don't want to right now, nor have the time.

At least now it stopped shouting all these warnings!

(cherry picked from commit 31cbc7e0e6)
2019-11-06 14:27:34 +01:00
bcf2b4c7a6 plug-ins: clean out some warnings.
This cleans just a third of the warnings in this metadata plug-in. It is
a very bad practice to define static const strings in a header file like
this, especially if this header is included in several files. Let's make
these macros.

Also why are these header tags sometimes used with the const name (now
macros), sometimes directly with the string literals? I fixed some of
these, but more string literals are lying around.

Remaining warnings are similar, about const string arrays. If really we
want this, we should declare these extern and define them in a separate
implementation file. This whole plug-in should be really reorganized and
cleaned in depth.

(cherry picked from commit 024a919c77)
2019-11-06 14:27:27 +01:00
1cc2c8c834 Update NEWS 2019-11-06 12:46:51 +00:00
d7bc23eaa6 Update Swedish translation 2019-11-05 20:10:02 +00:00
4133709974 Update Ukrainian translation 2019-11-05 11:43:56 +00:00
316419de7a Revert "Updated Spanish Translation"
This reverts commit f208485871.
2019-11-05 08:39:11 +01:00
f208485871 Updated Spanish Translation 2019-11-05 08:38:22 +01:00
412e383cf0 Update Catalan translation 2019-11-04 19:32:30 +01:00
Ell
ccd5ce6cce app: add "show all" support to the Bucket Fill tool in line-art mode
In the Bucket Fill tool, when using line-art mode, use a
GimpImageProxy as input for the GimpLineArt object, instead of
using the image direclty, when the line-art source is "all visible
layers".  Set the proxy's show-all mode according to the active
shell, so that the line-art uses the full image projection,
including out-of-canvas regions, when in show-all mode.

(cherry picked from commit 43a1c33ecf)
2019-11-04 13:33:47 +02:00
Ell
e79d852d3a app: (re-)add GimpDisplayShell::show-all property
... which corresponds to the shell's show-all mode.  We'll listen
to its "notify" signal in the bucket-fill tool.

(cherry picked from commit 02654b0ac0)
2019-11-04 13:33:47 +02:00
Ell
6349453ad3 app: in GimpLineArt, ref input pickable
... in particular, so that the GimpLineArt object can take
ownership over newly-created GimpImageProxy inputs.

(cherry picked from commit c8b5c81a41)
2019-11-04 13:33:47 +02:00
Ell
c5ff92d71d app: in GimpLineArt, add support for arbitrary buffer extents
In GimpLineArt, add support for arbitrary input-buffer extents,
by shifting/unshifting the input/output buffers before/after
passing them to the main algorithm, so that the algorithm keeps
working with buffers whose top-left corner is at (0, 0).

(cherry picked from commit bce96eb690)
2019-11-04 13:33:47 +02:00
Ell
174f1ea622 app: in GimpImageProxy, implement GimpPickable
In GimpImageProxy, implement the GimpPickable interface, so that
the proxy can be used as both a viewable and a pickable for the
image projection, with direct control over the show-all mode.  This
will allow us to use a GimpImageProxy as input for a GimpLineArt.

(cherry picked from commit 0e02795128)
2019-11-04 13:33:47 +02:00
Ell
d1324ad802 app: rename GimpImageViewable to GimpImageProxy
We're going to have GimpImageProxy implement GimpPickable, so that
it can be used as either a viewable or a pickable proxy for an
image.

(cherry picked from commit 8d8cc12f40)
2019-11-04 13:33:47 +02:00
Ell
defe920d43 app: rename gimpimageviewable.[ch] to gimpimageproxy.[ch]
... in preparation for actually renaming the class, but as a
separate step to keep the history.

(cherry picked from commit 0ddd3330b8)
2019-11-04 13:33:47 +02:00
Ell
e2fe79d859 app: add gimp_image_get_preview_format()
Add an internal gimp_image_get_preview_format(), which returns the
format to use for preview buffers, and use it in both
gimpimage-preview and GimpImageViewable, to reduce duplication.

(cherry picked from commit 74009c8b1e)
2019-11-04 13:33:47 +02:00
c020f8791c Update Japanese translation 2019-11-03 14:35:21 +00:00
15a1a8c695 Update Japanese translation 2019-11-03 14:22:18 +00:00
Ell
ef17d1a5e5 Issue #4172 - Gimp doesn't store negative values between sessions (Text Tool)
In gimp_config_deserialize_fundamental(), cast integer token values
to the target value type *before* negating them, to avoid
performing unsigned negation, which can result in a positive value
when cast to the target value type (in particular, when the target
value type is float/double).

(cherry picked from commit 38fff3b6b3)
2019-11-03 13:42:10 +02:00
639ac3fb9d Update Turkish translation 2019-11-03 02:03:10 +00:00
2150e37dcd Update Turkish translation 2019-11-03 01:57:33 +00:00
4f9718d311 Update Turkish translation 2019-11-03 01:56:39 +00:00
06b61daa80 Add missing -lm to file-psd plug-in
psd-save.c uses RINT which uses floor(). Not sure why this only
caused a failure on our armv7hl build and why it used to work
but we get:

libtool: link: gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wlogical-op -Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o .libs/file-psd psd.o psd-util.o psd-load.o psd-save.o psd-thumb-load.o psd-image-res-load.o psd-layer-res-load.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic -pthread  ../../libgimp/.libs/libgimpui-2.0.so ../../libgimpwidgets/.libs/libgimpwidgets-2.0.so ../../libgimpconfig/.libs/libgimpconfig-2.0.so ../../libgimp/.libs/libgimp-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so ../../libgimpmath/.libs/libgimpmath-2.0.so ../../libgimpbase/.libs/libgimpbase-2.0.so -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lharfbuzz -lfontconfig -lfreetype -lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lbabl-0.1 -lz -ljpeg -pthread
/usr/bin/ld: psd-save.o: undefined reference to symbol 'floor@@GLIBC_2.4'
/usr/bin/ld: /lib/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:756: file-psd] Error 1

And adding -lm seems the right thing to do.
2019-10-31 15:10:15 +00:00
e13e7fd8b6 Set required variables if is running from Apple application bundle 2019-10-31 14:51:24 +00:00
0b49a26d6a app: when interpreter not found in interpreter DB, leave shebang as-is.
In particular, if the shebang is `#!/usr/bin/env lang` and we have not
registered a specific interpreter for `lang`, the system should leave
the env tool search the right interpreter for us. We only bypass env
when we set our own explicit interpreter.

(cherry picked from commit 9e844ae1d7)

Slight modification from master commit: not applying to
palette-to-gradient.py plug-in.
2019-10-30 13:55:13 +01:00
c860d62a63 Installer: properly remove old icons on 32-bit installs and per-user installs 2019-10-29 23:10:34 +01:00
903170b90d Merge branch 'gimp-2-10' of gitlab.gnome.org:GNOME/gimp into gimp-2-10 2019-10-29 21:45:37 +01:00
Ell
41c37e2611 configure.ac: fix escaping of backslashes in compiler version string
There is one more level of unescaping...

(cherry picked from commit d97dd6413a)
2019-10-29 21:27:33 +02:00
989336be64 Installer: skip .debug files when they don't exist 2019-10-29 20:20:39 +01:00
71b83a3b69 Installer: unofficial languages, ghostscript 9.50 2019-10-29 20:18:25 +01:00
61acdb36fe configure.ac: post-release version bump to 2.10.15 2019-10-27 22:37:52 +01:00
a4f55d6c7e configure.ac: bump versions for the 2.10.14 release 2019-10-27 22:13:04 +01:00
90ab98b41d Update Russian translation 2019-10-27 22:43:47 +03:00
daca0a254e Update NEWS add more fixed bugs 2019-10-27 16:41:06 +00:00
f4c87c048e app: fix typo in gimptoolrectangle.c 2019-10-27 16:57:21 +01:00
ceb11d070b desktop: set appdata release date of 2.10.14 to today 2019-10-27 16:48:13 +01:00
775d3b1099 configure,app: depend on babl-0.1.72
(cherry picked from commit fe3e945154)
2019-10-27 06:54:09 +02:00
2fde53eef1 configure. app: depend on gegl-0.4.18 2019-10-27 01:43:54 +02:00
a464b1129b docs, etc: regenerate default gimprc and its manpage 2019-10-26 21:46:48 +02:00
c1f070fbc5 AUTHORS: regenerated 2019-10-26 21:46:48 +02:00
8a397d92f0 Updated Slovenian translation 2019-10-26 21:45:25 +02:00