Commit graph

42393 commits

Author SHA1 Message Date
Jehan
1a28878943 app, configure: add a --enable-win32-debug-console build option.
Debugging stable versions under Windows is a pain because we don't have
access to the standard outputs. The debug console is indeed only built
on unstable builds. Let's make the debug console a separate build option
to allow building stable versions for debug (obviously the default
behavior when not configuring, is same as before, i.e. stable without
console and unstable with console).
2018-08-12 22:20:34 +02:00
Jehan
c49afa4f84 plug-ins: replace s/printf/g_printf/
When cross-compiling, I got various linking errors for printf() calls:
> undefined reference to `libintl_printf'

I am unsure why, since this is not recent code, and it used to build
fine with mingw64 compilers (last I cross-built, which is many months
ago). Anyway g_printf() works fine, all necessary libs are already
linked, and it is supposed to be a synonym. So let's just go the easy
way and use g_printf() only.
2018-08-12 20:59:48 +02:00
Jehan
d1d9eb17e5 configure: GLIB_COMPILE_RESOURCES is wrong when cross-compiling.
AM_PATH_GLIB_2_0 m4 macro actually computes this value using
$PKG_CONFIG. Yet $PKG_CONFIG variable is the pkg-config tool looking for
target libraries (not host), hence it would return the executable
`glib-compile-resources` built for the target.

Also using the same variable name invalidates our test: our own
AC_PATH_PROG was never run as the variable was already set. And no
environment variable could override this test anymore either. This is
why I rename the test variable to HOST_GLIB_COMPILE_RESOURCES.
2018-08-12 19:13:13 +02:00
Jehan
2587b85aaa libgimpthumb: another missing link to libgimpbase.
Again this error was only raised when cross-compiling.
2018-08-12 15:30:28 +02:00
Jehan
0865e9db1f tools: fix linking error.
Though no error was raised during a native build, a cross-build was
choking on this missing link to libgimpbase and failing.
The error returned by the linker though was a bit amiss.

Fixes:
> gimp-test-clipboard.o: In function `test_clipboard_copy_callback':
> tools/gimp-test-clipboard.c:419: undefined reference to `g_file_get_contents'
> collect2: error: ld returned 1 exit status
2018-08-12 15:24:24 +02:00
Jehan
a727131036 NEWS: keep up-to-date. 2018-08-12 13:04:01 +02:00
Jehan
3bbebaf6e0 Issue #1999: Opening the Preferences dialogue triggers Xcode warning.
It seems that calling `lldb` when it is absent triggers some popup
proposing to install Xcode on macOS. This is obviously not good. Let's
check presence with g_find_program_in_path() instead. I was refraining
from doing so until now, because this function allocates memory, hence
may not do well during a crash.
Fortunately we don't need to check for lldb during crash (unlike gdb
which has some unacceptable behavior for older versions, at least on
FreeBSD) so that should be ok.

(cherry picked from commit 04bbe941d5)
2018-08-11 00:34:43 +02:00
Jehan
c05bd7b6c9 app: small code cleaning.
Removing unused declaration of icons_set_icon_theme().
And reorder a bit the declarations to match the definition order.

(cherry picked from commit ae19441ddc)
2018-08-11 00:34:43 +02:00
Martin Srebotnjak
6bc992fc3a Updated Slovenian translation 2018-08-10 20:49:36 +02:00
Michael Natterer
b1fbf1eb63 Issue ##2000 - Linked and unlinked chain icons look almost identical
Make the gap of the broken chain icons of the "Color" theme wider.
2018-08-10 15:56:24 +02:00
Rūdolfs Mazurs
23c877cb09 Update Latvian translation 2018-08-10 13:54:59 +00:00
Rodrigo Lledó
3cf34c7ab9 Update Spanish translation 2018-08-10 11:54:34 +00:00
Tim Sabsch
83c764817f Update German translation 2018-08-10 11:46:00 +00:00
Tim Sabsch
eeb942612e Update German translation 2018-08-10 10:59:44 +00:00
Anders Jonsson
b785d7752c Update Swedish translation 2018-08-10 07:46:19 +00:00
Ell
dfe57b37cd app: fix group layer drawable update during size change
In gimp_group_layer_update_size(), never suspend drawable updates
(and, in fact, remove the option to suspend drawable updates
entirely,) and instead never update the drawable during the call to
gimp_drawable_set_buffer_full(), and flush the group's projection
*after* setting the drawable's buffer, so that any pending updates
will happen after the group's buffer and size are up-to-date.

This fixes some missed drawable updates.

(cherry picked from commit fc2c640ca2)
2018-08-10 03:21:14 -04:00
Ell
2f1041bed0 app: fix projection update-area offset upon buffer allocation/reisizing
In GimpProjection, change gimp_projection_add_update_area() to take
coordinates in the projection's coordinate system, rather than the
image coordinate system, and move the offset adjustment to the
projectable invalidation handler.

Modify gimp_projection_projectable_structure_changed() to pass
projection-space coordinates to gimp_projection_add_update_area().

gimp_projection_get_buffer() and
gimp_projection_projectable_bounds_changed() already pass
projection-space coordinates to gimp_projection_add_update_area(),
which was wrong before, when the projection had a nontrivial
offset, but is correct now.

(cherry picked from commit 2d63bc6e0a)
2018-08-10 03:21:14 -04:00
Piotr Drąg
895dd005b2 Update Polish translation 2018-08-10 06:46:51 +02:00
Ell
e10d5852c1 app: add gegl:long-shadow to the menus
(cherry picked from commit 537bf4ec6a)
2018-08-09 19:03:06 -04:00
Ell
e1e637c238 app: keep sanity/blacklist gegl op lists alphabetically sorted
(cherry picked from commit b6c56a6ae9)
2018-08-09 19:03:06 -04:00
Ell
cd086c94b3 configure.ac: require GEGL >= 0.4.7
(cherry picked from commit d4ef45bdbd)
2018-08-09 19:03:06 -04:00
Rūdolfs Mazurs
4409d5496d Update Latvian translation 2018-08-09 19:24:28 +00:00
Martin Srebotnjak
5f371bc84f Updated Slovenian translation 2018-08-09 20:52:56 +02:00
Martin Srebotnjak
03e95eb893 Updated Slovenian translation 2018-08-09 20:50:47 +02:00
Rūdolfs Mazurs
b17619399f Update Latvian translation 2018-08-09 18:46:37 +00:00
Martin Srebotnjak
02a4ce19d6 Updated Slovenian translation 2018-08-09 20:44:21 +02:00
Rūdolfs Mazurs
ee89bfad52 Update Latvian translation 2018-08-09 18:40:16 +00:00
Martin Srebotnjak
c27ba74e71 Updated Slovenian translation 2018-08-09 20:27:32 +02:00
Anders Jonsson
6c201827a7 Update Swedish translation 2018-08-08 23:23:26 +00:00
Anders Jonsson
b43a84c6fb Update Swedish translation 2018-08-08 23:16:39 +00:00
Claude Paroz
ef1f98863a Updated French translation for libgimp/plugins 2018-08-08 09:52:14 +02:00
Michael Natterer
af2a27f1c9 Issue #1662 - GIMP crashes while using cage transform when selection is active
Fixed by implementing Massimo's two findings:

gimp_operation_cage_transform_process(): if aux_buf is NULL, bail out
after initializing out_buf with identity vectors, fixes the crash.

gimp_cage_tool_create_filter(): set the drawable filter's region to
GIMP_FILTER_REGION_DRAWABLE, fixes offset when there is a selection.

(cherry picked from commit 49dfc6143d)
2018-08-07 20:11:52 +02:00
Piotr Drąg
6e656aedcb Update Polish translation 2018-08-07 18:53:43 +02:00
Tim Sabsch
d83fb5b9dd Update German translation 2018-08-07 16:23:44 +00:00
Mario Blättermann
b8ef5a8527 Update German translation 2018-08-07 16:13:23 +00:00
Rodrigo Lledó
338154ea0e Update Spanish translation 2018-08-07 12:33:46 +00:00
Øyvind Kolås
3712e688f2 configure/app: depend on GEGL 0.4.6
(cherry picked from commit cb132d2a97)
2018-08-07 02:42:47 -04:00
Øyvind Kolås
c1ec74badc configure/app: depend on babl 0.1.54
(cherry picked from commit 5fdcc0dfbb)
2018-08-07 02:42:47 -04:00
Jehan
b22c22a288 desktop: preparing release for GIMP 2.10.6.
(cherry picked from commit 343bfbf259)
2018-08-06 15:39:29 +02:00
Anders Jonsson
8b893bb817 Update Swedish translation 2018-08-06 11:35:43 +00:00
Anders Jonsson
7057490298 Update Swedish translation 2018-08-06 11:29:31 +00:00
ONO Yoshio
34b54971d8 Fix file-pdf-save exports broken vertical text.
(cherry picked from commit f0e585e7ff)
2018-08-06 12:14:08 +02:00
Rodrigo Lledó
4d6074fe23 Update Spanish translation 2018-08-06 09:52:20 +00:00
Rodrigo Lledó
c7574ff02c Update Spanish translation 2018-08-06 09:50:01 +00:00
Ell
5826a399b2 Issue #1125 - Transform tools temporarily disables layer mask
In GimpCanvasTransformPreview, add the necessary bits to the
preview graph so that, when transforming a layer, the layer's
opacity and mask are correctly applied to the preview.  Note that
since we're still not rendering the preview as part of the image
graph, the output is not always accurate, but it should be good
enough in most cases.

(cherry picked from commit 2ac91e0fc3)
2018-08-06 04:21:49 -04:00
Rodrigo Lledó
f6e7e9e633 Update Spanish translation 2018-08-06 07:22:21 +00:00
Piotr Drąg
34cb8fd231 Update Polish translation 2018-08-05 19:10:57 +02:00
Jehan
0bf695dc0f Issue #1974: and again another memory leak.
Thanks to Massimo for reporting all these!

(cherry picked from commit b3c9089ea2)
2018-08-05 11:49:09 +02:00
Jehan
51e5da1f93 Issue #1974: another memory leak when saving a file.
(cherry picked from commit 50221e1438)
2018-08-05 11:49:09 +02:00
Jehan
71f37d417c Issue #1974: Memory leak in gimpimage.c.
Ok my previous fix was wrong (at least for the part in the macro). This
is a macro, not a function. So each time we write _reason, the call to
g_strdup_printf() is reevaluated, hence data is allocated.
The right fix is to prepend `tmp` to the list, not `_reason`.
Thanks to Massimo for the debugging, as always!

(cherry picked from commit 2912fe7c17)
2018-08-04 12:59:21 +02:00