Commit Graph

45128 Commits

Author SHA1 Message Date
Jehan 8b5060349a meson: allow non-dist non-git builds but mark them unsupported.
Reported by Jan Tojnar as a comment to commit e4c7fc23 that builds from
simple archives of the repo contents (without the .git tree) are
currently broken. Well this is normal, as we only support builds from
release versions or from the repository where we can extract a git hash.
Any other kind of nightly build can be from any commit out of thousands
and is maintenance hell.

To be nice though, let's unbreak such builds, but they will be clearly
marked as unsupported (warning at configure time + the extract commit
hash will now be labelled "unknown (unsupported)", which will be a
visible string in About and on unstable version canvases).
Basically do so at your own risk.

Also generate INSTALL all the time (not sure why it was only generated
in non-git case).
2019-11-21 12:38:25 +01:00
Jehan 370499676f build: add a patch for OpenBlas on Windows.
Actual patch contributor wants confidentiality to avoid leaking
proprietary information or whatever (I am not sure either what to be
scared of as it's all good and harmless to me, but let's respect the
request). See also #4246 for more details.
2019-11-20 17:26:57 +01:00
Michael Natterer 05896b4e2f libgimpbase: rename and reorder the values of enum GimpSelectCriterion 2019-11-19 22:25:57 +01:00
Michael Natterer 0141a28419 libgimpbase: remove enum value GIMP_FOREGROUND_EXTRACT_SIOX 2019-11-19 21:25:26 +01:00
Michael Natterer 0e5a03605a libgimpwidgets: remove enum value GIMP_CONVERT_PALETTE_REUSE 2019-11-19 21:21:16 +01:00
Michael Natterer 1be4ec2100 libgimpbase: remove enum GimpBlendMode, it's not used any longer 2019-11-19 21:13:31 +01:00
Michael Natterer c287fb6239 libgimpwidgets: reorder enum GimpIntStoreColumns
so LABEL and ABBREV are next to each other.
2019-11-19 21:06:05 +01:00
Michael Natterer 876199a03f devel-docs, libgimp: update some .gitignore files 2019-11-19 20:40:22 +01:00
Jehan 9a043d0fc9 Issue #4251: (meson) dbus-glib-1 not required.
As written in previous commit, this is not a dependency since commit
c4460e84.
2019-11-16 19:26:58 +01:00
Jehan 5f2a6940e3 app, devel-docs: remove dangling DBUS_GLIB_* variables.
dbus-glib is no more a dependency since commit c4460e84, i.e. already
since 2013!
2019-11-16 19:19:02 +01:00
Jehan ea379ef5a9 meson: fix CC_VERSION.
The way we use CC_VERSION macro is to give information on the compiler
used during build. This information may be useful when debugging in
particular. So we can't just use `cc.version()` which only gives a
version number, not even the name of the compiler.

Restore the logics of autotools where we were using the result of `cc
-v` (for gcc and clang) and testing various CLI options for other
compilers.

Also this test may fail on meson because of various bugs, which I now
reported and provided patch for (hopefully soon merged). In particular,
when using ccache, the command run fails (also I have to change newlines
in C-style `\n` myself as meson's set_quoted() creates broken header
when newlines are present).

If it fails, let's at least store the compiler name + its version, still
more useful than version only.
2019-11-14 20:47:01 +01:00
Salamandar e4c7fc2334 Change logic to detect .git directory on repositories (or file on submodules) 2019-11-14 14:14:53 +00:00
Félix Piédallu 9cd0584e90 Add script to install files in the dist tarball.
Add a check inside Meson to detect if we're building from a git clone
or a dist tarball.
(in thie later, don't generated INSTALL.in and git-version.h)
2019-11-14 12:25:07 +01:00
Félix Piédallu 86c5720375 Use variables for minvers, partly fixes #4132. 2019-11-14 11:39:59 +01:00
Jehan 6124be59b7 configure: fix typo which was breaking the build. 2019-11-13 13:25:23 +01:00
Dimitris Spingos 54020c2597 Updated Greek translation 2019-11-13 14:23:31 +02:00
Jehan 324d62c863 meson: update the broken libheif test (similarly to autotools). 2019-11-13 12:52:43 +01:00
Jehan f051e6d238 Issue #4185: Plug-in “file-heif.exe” crashes exporting HEIF/HEIC.
My previous test (commit 41285813a5) was a bit misinformed. So it turns
out bug #4185 is for all platforms and the broken libheif versions are
1.5.0 and 1.5.1 only.

So my new test (platform independent) is: prefer libheif versions with
profile support, except 1.5.x; then prefer lower versions without
profile support; and only as last resort accept 1.5.x versions (but
output a warning).
2019-11-13 12:33:14 +01:00
Alexandre Prokoudine d1bb192d7d Fix make check by replacing metadata-tags.h with metadata.c as spotted by grem 2019-11-12 23:36:20 +03:00
Jehan f9752f39b0 meson: add a libmypaint < 1.4.0 warning.
Same as what I did for the configure script. Note that I break commits
in 2 to make the autotools commits easily backportable to gimp-2-10,
i.e. without any meson files.
2019-11-12 17:21:25 +01:00
Jehan 5da252ca18 Issue #2543: gimp doesn't open on debian stretch (libmypaint crash).
Known bug in libmypaint dependency. It has been fixed in libmypaint
1.4.0, which we cannot hard require unfortunately (Debian testing still
at 1.3.0).

Still let's make add a warning so that packagers are aware of the issue
and update when possible.
2019-11-12 17:13:05 +01:00
Jehan 59dcd29f1e meson: fix HAVE_LIBHEIF_1_4_0 macro.
It was typoed as HAVE_LIBHEIF_4_1_0 so profile support was never
working for HEIF format.

Also add warnings and better output, similar to configure script one.
2019-11-12 15:58:06 +01:00
Jehan 41285813a5 configure: improve libheif detection and output.
Replace the "Heif >= 1.4.0" line in the summary output by a comment in
the "Heif" line explaining this is about profile support.

Also add a >= 1.6.0 test and output a warning for Windows and macOS (cf.
bug #4185).
2019-11-12 14:48:26 +01:00
Jehan 1032632e63 build: update flatpak nightly manifest.
Tested with these changes. It is a working flatpak for our dev code.
2019-11-12 13:08:59 +01:00
Jehan 053fbd7da5 po: fix missing semicolon in Basque translation.
I am not touching the translation, only the formatting for the Keywords
field in desktop file. As requested by a translation comment, all
translations of this field need to end with semicolon too (without, we
get validation warnings).
2019-11-12 13:08:59 +01:00
Alan Mortensen b6e558ae89 Updated Danish translation of gimp-plug-ins 2019-11-12 03:30:57 +01:00
Michael Natterer 24cadf8589 plug-ins: port file-mng-save to GimpProcedureConfig and propwidgets
and some cleanup, this is one half-finished mess, but at least
now a ported mess.
2019-11-12 01:36:56 +01:00
Christian Kirbach 0a5a363ceb Update German translation 2019-11-11 22:56:23 +00:00
Ell 0e29fc1b21 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.
2019-11-11 19:01:37 +02:00
Ell 2a292b02e3 app: in GimpHistogram, don't initialize n_bins to 256
... it's no longer needed, and breaks the type's invariants.
2019-11-11 18:16:53 +02:00
Ell 0c899394b4 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.
2019-11-11 18:16:52 +02:00
Jordi Mas c297131d37 Update Catalan translation 2019-11-10 20:47:41 +01:00
Jordi Mas 8356a4d98c Update Catalan translation 2019-11-09 22:48:49 +01:00
Jehan 417bf199c8 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).
2019-11-08 14:02:27 +01:00
Michael Natterer 79df3dd1e3 plug-ins: port file-pnm-save to GimpProcedureConfig
and clean up export type selection by introducing an enum.
2019-11-08 10:15:02 +01:00
Michael Natterer 7229b842bf app: image-cmds.c was regenerated 2019-11-08 10:14:30 +01:00
Jehan 9772b7162c meson: remove duplicate line.
finite() was searched twice.
2019-11-07 15:46:37 +01:00
Alex Samorukov 2cb0493b2f Replace finite() with isfinite() by default
This is part of the C standard also also causing warning on macOS.

(cherry picked from commit 04997fc0ae)
2019-11-07 10:13:59 +01:00
Oleksii Samorukov 00106b1d45 Revert finite() fix as it needs to be done in pdb and configure
(cherry picked from commit 4cd23c64e9)
2019-11-06 21:22:17 +01:00
Jehan 235b40e965 Issue #4189: Missing warnings on meson build.
We want to see deprecation warnings. Otherwise we'll just never fix them
if we are not constantly reminded of their existence.
2019-11-06 17:16:26 +01:00
Oleksii Samorukov 669b4e92fc Fix "finite() is depricated" warning on macOS
(cherry picked from commit aff49550ee)
2019-11-06 17:07:32 +01:00
Michael Natterer 6592671e21 desktop: set appdata release date of 2.10.14 to today
(cherry picked from commit ceb11d070b)
2019-11-06 14:30:43 +01:00
Jehan bf599067ce plug-ins: meson change for previous commit.
In a separate commit to make the rest easier to cherry-pick on
gimp-2-10.
2019-11-06 14:26:23 +01:00
Jehan 31cbc7e0e6 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!
2019-11-06 14:24:42 +01:00
Jehan 024a919c77 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.
2019-11-06 13:36:12 +01:00
Jehan fdf5c7edce meson: add -Wformat to common cflags.
This fixes the following warning during GIR generation:
> cc1: warning: -Wformat-security ignored without -Wformat [-Wformat-security]

And anyway it is useless to set -Wformat-security if -Wformat is not set
as well, so if we want one, let's have both.
2019-11-06 12:54:04 +01:00
Anders Jonsson 557fd172e3 Update Swedish translation
(cherry picked from commit d7bc23eaa6)
2019-11-05 20:11:54 +00:00
Niels De Graef cc21ec304f libgimpmath: Use G_DEFINE_BOXED_TYPE()
This isn't any functional change, but allows us to get rid of some of
the GObject boilerplate.
2019-11-05 10:14:29 +00:00
Niels De Graef a551043ffe libgimpbase: Use G_DEFINE_BOXED_TYPE()
This isn't any functional change, but allows us to get rid of some of
the GObject boilerplate.
2019-11-05 10:14:29 +00:00
Niels De Graef cb0ae619d1 app: Use G_DEFINE_BOXED_TYPE()
This isn't any functional change, but allows us to get rid of some of
the GObject boilerplate.
2019-11-05 10:14:29 +00:00