Commit Graph

45543 Commits

Author SHA1 Message Date
Niels De Graef 878804fb01 Cleanup GObject signal marshallers
* Don't generate our own marshallers if they are available in GLib
  already
* Don't set the c_marshaller parameter in `g_signal_new()` if it's a
  default marshaller provided by GLib. See commit message of commit
  39e4aa3c57 on why this is the case.
2020-04-01 21:20:01 +00:00
Jehan 6a972786d9 app: make new feature delete-pixels in Crop tool FALSE by default.
Better have the non-destructive behavior by default.
2020-04-01 21:15:03 +02:00
woob 9a9e2e9a19 app: leave locked pixels alone when cropping
Cropping tools will no longer discard layer data that falls out of the
crop region if the layer's pixels are locked
2020-04-01 18:14:20 +00:00
woob ee97c25b87 app: make deletion of cropped pixels in crop tool optional
Adds a new "Delete cropped pixels" toggle to the crop tool options,
to allow turning off the deletion of layer data that falls out of the
crop region.
2020-04-01 18:14:20 +00:00
Jehan 39890a49eb Issue #4871: Plug-ins not translated.
Revert "app: also localize LC_TIME to GUI language."
This reverts commit a4e65ac836.

LC_TIME format apparently does not accept the broader format with just
the lang part, for instance "fr". The region is necessary, like "fr_FR".
In our supported languages, we were mostly using lang only except for a
few langs where we support regional variants.
This makes sense as time format may be quite different depending on
regions (dates are quite different in GB vs US, though that was actually
one of the cases where we were using accurate locale format).

And the main issue is that it was not only breaking time localization.
Normal string localization (LANGUAGE) got somehow broken as well by
broken LC_TIME.

Anyway for now let's just stick to whatever OS-set time format (even
though it may differ from GIMP Preferences-set language defaults).
2020-04-01 18:02:42 +02:00
Jehan 56ffa2fd11 app: no generic comment when no revision comment set.
After discussing with Schumaml and Houz on IRC, let's just drop the
generic comment which may be confusing and is probably unecessary,
especially now that I write the revision number (present and new ones).
So let's just assume people understand that they should update, even
when GIMP version stays the same (this was the case I was the most wary
about, that people think the notification is an error as since they have
the last version, they don't have to update GIMP).

I hesitated to at least leave just the simple "It is recommended to
update." sentence but after much hesitation, let's go with no generic
comment at all. The download button by itself should suffice.

Of course, when a specific revision comment is set in
gimp_versions.json, it is still displayed.
2020-04-01 16:41:58 +02:00
Yuri Chornoivan 98bd6f4b61 Update Ukrainian translation 2020-03-31 06:26:09 +00:00
Brian Popow 56ec3163b5 Fix German translation (Teams-Translation-German-de-Issues-#22) 2020-03-30 22:07:20 +02:00
Jehan 8f17d0b0d1 app: remove deprecated GimpContainerGridView.
This class has been removed for nearly 2 years.
2020-03-30 20:39:54 +02:00
Jehan a55e898c96 app: GUI improvements to the update display in About dialog.
- Instead of the download link being just a link button (similar to
  browser "blue text" links), make it a proper button encompassing the
  update icon and the download text "Download GIMP X.Y.Z".
- Make also the revision number part of the download information.
- Frame title is now "Update available!" instead of "New version
  available!" (because it's not necessarily a new version, it can also
  be just a package revision. "Update" is more generic).
- When no update is available, the "Check for updates" button is big and
  has a label, and also now an icon. When an update is available, hence
  we display now a button for the download link, the "Check for updates"
  button becomes small with icon only in order not to take visual
  priority over the download itself (yet allowing to re-check for even
  newer information).
2020-03-30 20:38:13 +02:00
Yuri Chornoivan e3c9ff780a Update Ukrainian translation 2020-03-30 15:35:49 +00:00
Jehan 21e090aba5 app: display revision number in About dialog if > 0. 2020-03-30 15:44:23 +02:00
Jehan 75a03b02f4 app: let's display the release comment in update notification…
… when there is one such comment.
2020-03-30 15:37:34 +02:00
Jehan a05b085112 app: show time of last version update check.
As noted on IRC, after the first update check on a given day, it looks
like the check button does nothing. Therefore also display the check
time to clearly show the button click was taken into account (simply
there are no updates, hence only displayed check time is updated).
2020-03-30 14:52:18 +02:00
Jehan 7f3bb72c8c app: print gimp_versions.json parsing error on stderr.
Do it even on stable builds as it can help diagnose bugs on releases.
Note that the issue we had just know with casing on the build-id would
not have been seen by such stderr output anyway. Just in case for future
issues.

(cherry picked from commit dd4cec577d)
2020-03-30 14:43:41 +02:00
Tobias Ellinghaus 9908c14fbf
devel-docs: Fix id of PROP_BLEND_SPACE 2020-03-30 11:04:59 +02:00
Piotr Drąg 7ad16a4eb1 Update Polish translation 2020-03-29 13:01:02 +02:00
Yuri Chornoivan e819318b70 Update Ukrainian translation 2020-03-28 17:32:51 +00:00
Yuri Chornoivan fb96a29249 Update Ukrainian translation 2020-03-28 17:29:50 +00:00
Yuri Chornoivan 5c0eda6264 Update Ukrainian translation 2020-03-28 17:26:45 +00:00
Yuri Chornoivan c41382f61d Update Ukrainian translation 2020-03-28 17:23:59 +00:00
Jehan d76c8e8cc3 app-tools, app: gimp-debug-tool crashing with NULL release_date.
The crash dialog was failing to be created when using the last version
of GIMP!
2020-03-27 19:54:11 +01:00
Jehan dd705e21c0 app: fix minor indentation bugs. 2020-03-27 19:54:11 +01:00
Ell 6ed9b2bb7a Issue #4846 - Symmetry origin is wrong when painting on offset drawable
In gimp_symmetry_{mirror,mandala}_update_strokes(), adjust the
symmetry origin according to the drawable offset, so that it
remains fixed relative to the image regardless of the drawable
position.
2020-03-26 20:29:40 +02:00
Ell 75435c8e6b app: in GimpToolButton, select active tool in menu
In a GimpToolButton representing a tool group, select the group's
active-tool item when showing the menu.
2020-03-26 13:00:28 +02:00
Ell 83f935873a Issue #4858 - Duplicated image shows NULL in warning when closing it
In gimp_image_duplicate(), explicitly mark the new image as dirty,
so that its dirty time is set.  This avoids showing a NULL message
in place of the dirty time when closing the image.
2020-03-23 22:31:02 +02:00
Ell 74b0d2ad14 app, menus: add gegl:bloom to Filters -> Light and Shadow 2020-03-23 21:31:45 +02:00
lillolollo 0389e6f9e4 App file-data-gex.c fix incompatible pointer type 2020-03-22 20:06:10 +00:00
Ell 5678153797 app: apply spin-scale gamma to input, not output
In GimpSpinScale, apply the slider gamma to the input [min,max]
range, rather than the output [0,1] range, using an odd gamma
curve, in particular, so that we handle negative values correctly.
2020-03-22 13:29:54 +02:00
Jehan 92fd5675b1 gitlab-ci: enabling make check on master CI.
Also install missing xauth (required by xvfb-run).
`make check` was broken on CI, but got fixed by commits 707d3c6f64,
f6e9c6ee6f, 2c1efdedf0 and of course the present one.
2020-03-19 17:44:24 +01:00
Jehan 2c1efdedf0 app: do not free non-allocated DBus manager.
While this issue was unseen so far on common desktop machines, the CI
build encountered it, hence failing 6 of the unit tests.
A connection to the bus could not be established hence the dbus_manager
was never allocated, and finally it would crash at exit if we tried to
unref it unconditionnally. Use g_clear_object() instead.

Also add some stderr output for easier debugging, for when one of the 2
possible error cases might happen (as documented by g_bus_own_name()).
2020-03-19 17:44:24 +01:00
lillolollo 450ebd5e2b App gimptooleditor fix tooltip text 2020-03-19 14:25:52 +00:00
Ell ee2a65af0d Issue #4827 - Modified settings requiring a restart aren't saved
When checking for updates, write the new timestamp and version info
to Gimp::edit_config, instead of Gimp::config, and rely on its
auto-save mechanism to save the changes, in order to avoid having
to save Gimp::config on exit, which overrides modified settings
that require a restart, such as the UI language, as they are only
reflected in Gimp::edit_config.

This fixes the bug, but can cause the new update info to be
discarded if the Preferences dialog is open while checking for
updates, and is subsequently canceled.  Ideally, the update info
should live in a separate file, rather than in gimprc.
2020-03-19 12:40:00 +02:00
Jehan f6e9c6ee6f gitlab-ci: add missing dependencies.
Dependencies must be reinstalled on different jobs, even when related.
Fixes these CI errors on unit testing:

> GEGL-Message: 22:30:35.867: Module '/builds/GNOME/gimp/_install/lib/x86_64-linux-gnu/gegl-0.4/matting-levin.so' load error: libumfpack.so.5: cannot open shared object file: No such file or directory
> GEGL-MESSAGE: Module '/builds/GNOME/gimp/_install/lib/x86_64-linux-gnu/gegl-0.4/raw-load.so' load error: libraw.so.19: cannot open shared object file: No such file or directory

(cherry picked from commit a90d547cc0)
2020-03-19 11:07:18 +01:00
Jehan 707d3c6f64 libgimp: fix wrong assert in gimp_procedure_config_set_values().
The first property of a GimpProcedureConfig is the related
GimpProcedure. All others are the procedure arguments.
Also fixing the pspecs index while looping since we want to start at 1
to loop through arguments for the same reason.

Among other things, this was breaking the calls to file_save() and
several unit tests.

(cherry picked from commit 48acb361a3)
2020-03-19 11:05:19 +01:00
Yuri Chornoivan 489c5c9d05 Update Ukrainian translation 2020-03-18 10:18:02 +00:00
Yuri Chornoivan 6df7a948b4 Update Ukrainian translation 2020-03-18 10:05:20 +00:00
Yuri Chornoivan cc55af7b95 Update Ukrainian translation 2020-03-18 09:42:42 +00:00
Michael Schumacher 0108d7e214 Change order of CFLAGS for SSE tests
This makes the configure tests for SSE support fail if CFLAGS specify -mno-sse2 or/and -mno-sse4.1.
Fixes #4363.
2020-03-17 18:49:46 +00:00
Jehan 8fd2f1e0e3 Issue #4745: make check test-desktop failed.
Please translators, read the translation comments! ;-)
2020-03-17 19:39:57 +01:00
lillolollo 3c6cf7fb3f Meson add suggested warning flags from Massimo 2020-03-17 17:52:26 +00:00
Jehan 9032df515b meson: change option relocatable-bundle = yes|no|platform-default
As discussed in patch !208. Now that the feature is implemented as a
meson combo, let's have (hopefully) clearer values than
enabled|disabled|auto.
2020-03-17 18:48:54 +01:00
Jan Tojnar 564d35fd2e meson: relocatable-bundle should not be a feature
When we build GIMP with `-Dauto_features=enabled` to ensure we have
fully-featured GIMP and to have it warn us when we are missing some
optional dependency, Meson also enables relocatable bundle.

This is unexpected since being relocatable is a binary property rather
than a feature. This patch switches it option to a combo type to make
it ignore auto_features option.
2020-03-17 16:59:10 +00:00
Jehan bed95ebca7 Revert "build: fix json-c cross-build for Windows."
This reverts commit 2b2a6b03ed.
My commit has been merged upstream.
2020-03-17 12:39:23 +00:00
bootchk 8d5afa76e7 issue 4669 2020-03-17 12:34:01 +00:00
luz.paz a928452eba Fix typos
Found via `codespell -q 3 -S ./ChangeLog*,*.po -L als,ang,ba,chello,daa,doubleclick,foto,hist,iff,inport,klass,mut,nd,ower,paeth,params,pard,pevent,sinc,thru,tim,uint`
2020-03-17 12:30:45 +00:00
Ming Chen 7a4254dda1 m4macros: update ax_gcc_func_attribute.m4 to serial 12
The serial 7 of m4macros/ax_gcc_func_attribute.m4 has an issue that when
Wstrict-prototypes is used with gcc, the attribute detection always
fails even if the attribute is actually supported. In such case the fish
cache will never be constructed. It's fixed in serial 12 of the macro in
autoconf-archive and this change updates the one distributed with GIMP
to serial 12.
2020-03-17 10:42:32 +08:00
Jehan 2b2a6b03ed build: fix json-c cross-build for Windows.
I submitted a patch upstream:
https://github.com/json-c/json-c/pull/556

For the time being, I disable some warnings to at least have a working
CI.
2020-03-15 23:53:39 +01:00
Jehan 505967c4d2 gitlab-ci: fix recently broken CLang compilation.
Fixes:
> /usr/bin/ld: cannot find -lomp
2020-03-15 22:43:17 +01:00
Piotr Drąg a701e6224a Update Polish translation 2020-03-15 14:20:33 +01:00