Commit Graph

44895 Commits

Author SHA1 Message Date
Jehan fb0ea13626 meson: add a big fat "experimental" warning at end of meson configure.
It should be clear that the autotools build is still the officially
mandated one for all finale builds (i.e. packaging). Our meson builds
still have bugs (some we know of and are trying to fix, others that we
will probably discover soon) so packagers should be well aware that they
should not use meson (though we highly encourage it for developers so
that bugs can be found).

Adding this warning as someone was asking on a bug report whether
autotools were still being supported (while it's the opposite: meson is
still not officially stable and autotools is still our main build
system).
2019-10-14 18:41:20 +02:00
Rūdolfs Mazurs 4312dc8a53 Update Latvian translation 2019-10-13 11:08:41 +00:00
Jehan fef9b1d2a3 Issue #4068: default pixel density should be 72.0 for loaded images.
New images should obviously still default to the template pixel density
(defaulting to 300.0 PPI when no specific template is selected).

Loaded images though should use a more conservative default of 72 PPI,
first because this is what other software defaults to when no density is
set (so we should keep consistent when possible), and this is also what
the Exif standard (I checked both last version 2.32, and older 2.3)
recommends when no resolution is set.

Technically we differentiate a loaded from a newly created image by
whether or not an imported_file has been set. Of course, any explicitly
set resolution will always override whatever default.
2019-10-12 16:50:13 +02:00
Jehan 30e7be6db1 plug-ins: fix usage of gimp_file_save() in py-slice.py.
Signature changed (commit f3fb3d1a), but build could not catch the
missing usage in non-compiled scripts. Thanks to Massimo for noticing
it.
2019-10-12 13:55:07 +02:00
Jehan fca64f5f66 meson: add an `install-icons` meson target.
We want to be able to install icons only in a quick command when
testing/developing.
Also I realize that Legacy icons are not even installed with meson
build, which is bad! Even though legacy, we want to keep them (at least
for the time being), just as we do with autotools.
2019-10-12 13:25:31 +02:00
Jehan 16d9c1f00d Issue #4049: Colour fill on Line Art Detection misaligned when…
… different layer size/location used.

We need to use the source coordinate space when generating the first
fill buffer, then transform to the target layer coordinate space when
applying the drawable filter.
2019-10-12 13:12:11 +02:00
Jehan d6fa772f22 icons: (meson) gimp-frame and gimp-texture were not installed.
This is a quick and dirty fix to just deal with this specific issue, but
looking at meson rules for icons, it looks like I will need to do a
proper and very detailed review of this part of the build system.
2019-10-12 12:25:55 +02:00
Jehan 9dcdf37ab3 libgimpwidgets: check error return for gtk_icon_theme_load_icon().
In gimp_page_selector_add_frame(), if "gimp-frame" icon cannot be loaded
(which should not happen, but reality can always strike back!), we want
to abort from gimp_page_selector_add_frame() immediately.

Also as a consequence, its return value might be NULL, hence should be
freed with g_clear_object() instead.

This happened here because of broken meson rules (which didn't install
this icon) and ended up in forever looping errors when loading a
multi-page PDF (pages are shown in frames in a dialog):

> (file-pdf-load:12348): GdkPixbuf-CRITICAL **: 11:59:28.513: gdk_pixbuf_copy_area: assertion 'src_pixbuf != NULL' failed
2019-10-12 12:25:55 +02:00
Jehan 1046430df1 meson: add a special target `install-libgimp*` for all libgimp*.
For instance, we can install libgimpwidgets with:
> ninja install-libgimpwidgets

A special target had been previously added only for libgimp.
2019-10-12 12:25:55 +02:00
Asier Sarasua Garmendia 7b2af5b064 Update Basque translation 2019-10-12 07:45:06 +00:00
Asier Sarasua Garmendia 7ab55fbd1e Update Basque translation 2019-10-12 07:31:54 +00:00
Asier Sarasua Garmendia 1a4fbf0c8a Update Basque translation 2019-10-12 06:57:13 +00:00
Asier Sarasua Garmendia 5eb5ee76cb Update Basque translation 2019-10-11 20:02:40 +00:00
Asier Sarasua Garmendia 9c39602485 Update Basque translation 2019-10-11 19:00:36 +00:00
Tim Sabsch 0789315b59 Update German translation
(cherry picked from commit 364fdecec8)
2019-10-11 18:21:53 +00:00
Jehan 9e830c0c30 plug-ins: fix goat-invasion plug-ins installation.
My commit c77c903c8d was obviously wrong since I realize that by fixing
the C plug-in installation, I broke non-C goat-exercise plug-ins
installation. This fixes it.
2019-10-11 14:24:49 +02:00
Jehan 69e993b24e libgimp: remove duplicate gimpprocedureconfig.c (meson).
This is listed twice and is not needed for libgimpui (not listed in
autotools build) and apparently it provokes introspection warnings on
MSYS2 builds.
Thanks to lillolollo and Massimo for debugging this.
2019-10-11 14:07:58 +02:00
Asier Sarasua Garmendia b3f641028e Update Basque translation 2019-10-11 06:56:55 +00:00
luzpaz 92cba86ac2 FIxed typos in app/
Found via `codespell`
2019-10-10 19:39:09 +00:00
Sabri Ünal 3ca179283e Update Turkish translation 2019-10-10 15:18:01 +00:00
Sveinn í Felli 0f035d83d0 Update Icelandic translation
(cherry picked from commit 663fa8e7a5)
2019-10-10 13:07:27 +00:00
Sveinn í Felli 1ba506b574 Update Icelandic translation 2019-10-10 12:59:56 +00:00
Jehan cf6dae6f83 libgimp: fix a type cast warning (win32).
I had this warning when cross-building for Windows 64-bit:

> libgimp/gimpui.c:187:52: warning: passing argument 2 of
> 'gdk_win32_window_foreign_new_for_display' makes pointer from integer
> without a cast [-Wint-conversion]

> note: expected 'HWND' {aka 'struct HWND__ *'} but argument is of type 'guint32' {aka 'unsigned int'}
2019-10-10 14:13:49 +02:00
Jehan f59b0db0c8 app, libgimp: fix more unused function warning (Win32).
Similar to commit 9b328167ab. Apparently the same function is duplicated
into app/.
Also add some comments to detail a bit more where this Win32 different
comes from (i.e. bug 359538 on Bugzilla, commit eac61e1e12).

Moreover I tested the same steps as comment 4 in bug 359538 on master
code. The same hanging issue still exists with GTK+ 3.24.1 (in a Windows
VM at least). I have not investigated further, just wanted to check if
this ifndef could not simply be removed by now. Apparently not.
2019-10-10 14:11:40 +02:00
Rodrigo Lledó ba5f63efb8 Update Spanish translation 2019-10-10 11:30:42 +00:00
Rodrigo Lledó 2b89aafe80 Update Spanish translation 2019-10-10 11:30:03 +00:00
Jehan 590681434b libgimp: sync autotools and meson to the same list of introspectable…
… headers.
gimpitem.h was missing, as noted (again!) by Massimo, which resulted
into introspected plug-ins errors (breaking parenting of classes).
2019-10-10 12:39:07 +02:00
Jehan 8cf4b7a43a libgimp: reduce GObject Introspection warnings.
Thanks to Massimo for helping:

> To reduce the number of warnings down to 2, it is necessary to list
> gimptypes.h and gimpenums.h right after gimp.h and gimpui.h
> gimpuitypes.h at the start of libgimpui_headers_introspectable like
> they are in the corresponding list in Makefile.gi.
>
> Their order evidently matters

See #4018.
Some stuff are still wrong, but this is a first step in the right
direction.
2019-10-10 12:32:05 +02:00
Michael Natterer 9326f4a76c plug-ins: rename all boolean comment arguments to "save-comment"
and let them default to gimp_export_comment(). Set the default value
of all "comment" arguments to gimp_get_default_comment().
2019-10-10 01:32:28 +02:00
Michael Natterer 2409b6f219 libgimp: manage boolean "save-comment" properties automatically
using the GimpProcedureConfig/GimpMetadata mechanism.
2019-10-10 01:30:29 +02:00
Michael Natterer 1c7028aaaa app, libgimp: add boolean "export-comment" gimprc property
export it to libgimp via GPConfig and add new API gimp_export_comment().
Bump the protocol version and improve variable names in both GPConfig
and libgimp/gimp.c.
2019-10-10 00:48:28 +02:00
Michael Natterer 0b3c496968 devel-docs: updates and fixes 2019-10-10 00:25:59 +02:00
Michael Natterer 7f2995d568 libgimp: improve docs for gimp_image_metadata_save_prepare()/finish() 2019-10-10 00:05:49 +02:00
Michael Natterer b5f10b6eda plug-ins: port file-heif and file-webp to the new export stuff 2019-10-09 23:50:14 +02:00
Michael Natterer 8a2f4c9157 plug-ins: port file-png-save to begin_export()/end_export()
which removes quite some boilerplate. Also remove the boolean
"profile_saved" return value of save_image() and instead modify the
config. Add a "bits_per_sample" return value and set value on the
metadata instead of always "8".
2019-10-09 22:51:34 +02:00
Michael Natterer 8219092a6c libgimp: start integrating image export with GimpProcedureConfig
Add gimp_procedure_config_begin_export() and end_export() which
are wrappers around begin_run() and end_run() and additionally
pretty much completely manage GimpMetadata handling.

A GimpProcedureConfig can provide boolean properties "save-exif",
"save-xmp" etc. in order to have them automatically managed by
begin_export() and end_export(). This also restores the feature of
overriding the procedure's saved default values with export
preferences, but not the values from the last export, like it
used to be in 2.10.

Move gimp_image_metadata_save_prepare() and save_finish() (which are
now completely handled by GimpProcedureConfig) from libgimpui to
libgimp, but keep their declarations in the libgimpui header. Not
perfect, but not finished either.

Also fix gimp_image_metadata_save_prepare() to set the affected
GimpMetadataSaveFlags to 0 when the image has no metadata at all.
2019-10-09 22:50:03 +02:00
Jehan 9b328167ab libgimp: fix unused function (Win32).
Fixes:
> libgimp/gimpui.c:402:1: warning: 'gimp_window_transient_realized' defined but not used [-Wunused-function]
2019-10-09 16:34:51 +02:00
Jehan c809e221ec app: fix "Result is not floating-point (UNINTENDED_INTEGER_DIVISION)".
See #3996.
This was a warning raised by the Coverity scan on one of the lines. I
fix also in the same time other arithmetics mixing int and double.
Better be thorough.
The specific warning was on:
> circ = 2.0 * G_PI * (private->width / 2)
where the division was integer, which was probably not intended. Of
course that error (display item only) was likely barely visible anyway,
still…
2019-10-09 14:53:29 +02:00
Michael Natterer 204df59474 Issue #4054 - Missing closing brackets for some BMP saving names
Fix the broken strings.
2019-10-08 22:11:10 +02:00
Michael Natterer 93bfd6f154 plug-ins: port file-aa to GimpProcedureConfig
Now takes an integer index into the aa_formats array instead of the
format's name. "4" is about as magic as "weird aallib format name #4"
so no harm done.
2019-10-08 01:04:59 +02:00
Michael Natterer 4be4d828ad plug-ins: port file-xbm-save to GimpProcedureConfig
and add boolean arguments to control comment and hot-spot
writing. This revives comment writing, which is disabled by default
and comes with a big warning in the dialog.
2019-10-07 20:36:38 +02:00
Daniel Mustieles 95a36c8e47 Update Spanish translation 2019-10-07 07:20:44 +00:00
Rodrigo Lledó e1e179a96c Update Spanish translation 2019-10-07 07:05:55 +00:00
Rodrigo Lledó b4c08d66c2 Update Spanish translation 2019-10-07 07:03:43 +00:00
Rodrigo Lledó 714aea5b15 Update Spanish translation 2019-10-07 06:54:19 +00:00
Michael Natterer 21b5b6b1aa plug-ins: port file-html-table to GimpProcedureConfig 2019-10-06 15:36:48 +02:00
Piotr Drąg d4cdf164df Update Polish translation 2019-10-06 12:54:36 +02:00
Rūdolfs Mazurs a3d74fa09f Update Latvian translation
(cherry picked from commit fe91d99034)
2019-10-05 20:08:59 +00:00
Rūdolfs Mazurs bdfd0055e0 Update Latvian translation
(cherry picked from commit e6ce73d5e1)
2019-10-05 20:06:13 +00:00
Rūdolfs Mazurs 4213dffd4e Update Latvian translation
(cherry picked from commit 0e952a58d5)
2019-10-05 20:00:53 +00:00