Commit Graph

44809 Commits

Author SHA1 Message Date
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
Rūdolfs Mazurs 5b0e45aa41 Update Latvian translation
(cherry picked from commit 317d692d32)
2019-10-05 19:35:56 +00:00
Rūdolfs Mazurs 8e9a4ef8f1 Update Latvian translation
(cherry picked from commit 907943e1c2)
2019-10-05 19:30:40 +00:00
Michael Natterer d84d42c835 plug-ins: rename procedure file-gtm-save to file-html-table-save 2019-10-05 19:32:17 +02:00
Michael Natterer a59c13b724 plug-ins: port file-csource to GimpProcedureConfig 2019-10-05 19:29:20 +02:00
Michael Natterer 6660dc540d plug-ins: port file-tga-save to GimpProcedureConfig 2019-10-05 12:41:53 +02:00
Michael Natterer f9ddf6ea03 Issue #4008 - Ellipsis missing in File -> Page Setup
Add the missing ellipsis.
2019-10-05 12:22:58 +02:00
Ell 076d9b2a28 app: restore behavior of gimp_gegl_apply_operation() with NULL src_buffer
Restore the behavior of gimp_gegl_apply_operation() prior to
11629fde66 when src_buffer is NULL:
keep the existing operation-node input, instead of using an empty
input.  Unlike gimp_gegl_apply_cached_operation(),
gimp_gegl_apply_operation() doesn't have an explicit
connect_src_buffer parameter.

This fixes empty output when merging layers.
2019-10-05 09:43:22 +03:00
Michael Natterer 8976370bce app: forgot to follow API changes in test-config.c 2019-10-04 21:58:49 +02:00
Michael Natterer 51ecb9929c plug-ins: port file-psp-save to GimpProcedureConfig
...just to realize that the save function is not implemented. At least
we now properly manage a fake argument of a nop procedure, yay.
2019-10-04 21:51:43 +02:00
Michael Natterer efb6ea9ceb plug-ins: port file-fli to GimpProcedureConfig
While testing noticed that the plug-in either loads or saves total
garbage, but also in 2.10, so it's not a recent regression.
2019-10-04 12:26:23 +02:00
Rodrigo Lledó 886d0cae9d Update Spanish translation 2019-10-04 09:58:50 +00:00
Jehan 90591dc7ed gitlab-ci: new build organization.
Rather than having the whole Win32 cross-build into the 'gimp' stage,
break the dependencies and GIMP-only builds in 2 stages.

Since apparently we need to keep the same structure for the native and
cross build (otherwise we don't get parallel builds; in other words, I
didn't find the possibility to set separate pipelines up), I move babl
and GEGL into the same 'dependencies' stage.

Finally I remove the -base rules extended into actual jobs, except for
`.gimp-base` (this is the only which makes sense as it is actually
common to the meson and autotools build).
2019-10-03 20:43:20 +00:00
Jehan aa611bea84 gitlab-ci: set GIT_DEPTH to 1.
We don't need to pull 5 commits of history. Only the HEAD of the
selected branch is needed.
Also define it globally rather than re-defining it in every job to the
same value.
2019-10-03 20:43:20 +00:00
Jehan 5c7f1ce571 gitlab-ci: improve artifacts settings.
First replace the "when: on_failure" rule by a "when: always". We indeed
always want to get log artifact so that we can study a build if
necessary (neither only on failure nor on success; really on all cases,
since even an apparently successful build may have issues we might want
to diagnose).

Also expire all artifacts at 1 week (it seems the default on GNOME's
Gitlab is 4 weeks; we don't need to keep these so long. Even a few days
might be enough actually).

As for the artifacts contents, keep the build dirs rather than the
install dirs. Build dirs allow to check configuration logs and other
kind of logs which are the most useful when diagnosing a failed build.
Now install dirs are also interesting. Maybe we should provide them
again at some point. We'll see. For now I comment them out.
Still keep the install dir for dependencies though, since it seems this
is how data are passed from one job to another.
Note that ideally we would like to provide different artifacts depending
on failure or success but apparently this is currently not possible.
See: https://gitlab.com/gitlab-org/gitlab/issues/18744

Also not sure why for GIMP, the CI was only keeping the build app/tests/
directory. We should really keep the whole dir.
2019-10-03 20:43:20 +00:00
Jehan d27b7a27e0 gitlab-ci: do not export SHELL env variable before crossroad.
This will simply default to bash.
2019-10-03 20:43:20 +00:00
Jehan 2963933695 gitlab-ci: fix crossroad and dnf caching.
This should hopefully speed up successive builds as most packages don't
need to be re-downloaded.
2019-10-03 20:43:20 +00:00
Martin Srebotnjak 9aec05266a Updated Slovenian translation 2019-10-03 22:14:21 +02:00
Ell 2665a6c7a6 app: don't extend layers with no alpha channel when applying filters
In GimpFilterTool, don't provide a clipping option for layers with
no alpha channel, and always clip the result to the layer bounds,
since the extended regions of the result usually require alpha to
be meaningful.

Similarly to last commit, the ideal solution would be to
automatically add an alpha channel as necessary.
2019-10-03 22:26:47 +03:00
Ell 1c67395c21 app: clip floating selection to layers with no alpha channel
Alawys clip a floating selection to its base layer, if the layer
has no alpha channel.  This avoids arbitrarily filling the extended
regions of the layer with, or compositing the floating selection
against, black color.

This is a temporary solution.  Ideally, we'd automatically add an
alpha channel to the layer as necessary.
2019-10-03 22:26:47 +03:00
Ell 783b475b7b app: update drawable bounding box when detaching floating selection 2019-10-03 21:31:26 +03:00
Ell 11629fde66 app: avoid dropping cached data when committing filters
In gimp_gegl_apply_cached_operation(), add a boolean
connect_src_buffer parameter, which determines whether to connect
the source buffer to the operation-node's input, or to use its
existing input.  In gimp_drawable_merge_filter(), pass FALSE for
connect_src_buffer, so that the existing filter-node input is used.
This produces an equivalent result, however, it avoids invalidating
the filter node, and dropping cached data as a result.  In
operations that cache larger areas than the ROI, this avoids
reprocessing already-cached data when processing the rest of the
operation.

Additionally, in gimp_gegl_apply_cached_operation(), use an empty
input for the operation if src_buffer is NULL and
connect_src_buffer is TRUE; previously, we'd use the operation-
node's existing input when src_buffer was NULL.  Furthermore, crop
the operation-node's input to the destination rect when crop_input
is TRUE, even if connect_src_buffer is FALSE.
2019-10-03 20:12:17 +03:00
Michael Natterer 50b8adc715 plug-ins: port file-fits to GimpProcedureConfig 2019-10-03 16:00:17 +02:00
Michael Natterer d02d97e310 libgimpwidgets: add gimp_prop_int_radio_frame,box_new() 2019-10-03 15:59:09 +02:00
Michael Natterer 68f9b540c7 libgimp: fix all GIMP_PROC_ARG,AUX_ARG,VAL_FOO() macros
They all had "class" as first argument (copied from gimpconfig-params.h)
and only worked accidentially because all functions they are used in
happen to have the right local "procedure" variable...
2019-10-02 22:17:37 +02:00
Michael Natterer 871a31f70c plug-ins: remove ddsplugin.h and add ddsread.h and ddswrite.h 2019-10-02 20:54:16 +02:00
Michael Natterer 42564c076a plug-ins: port file-dds-save to GimpProcedureConfig 2019-10-02 20:47:33 +02:00
Ell ec6bbd1937 app: update drawable bounding box when floating-selection bounding box changes
When the bounding box of a floating selection changes, update the
bounding box of the associated drawable, since floating selections
are no longer clipped to the drawable's bounds in general.
2019-10-02 21:35:21 +03:00
Ell d17dc3112f libgimp: fix segfault in gimp_procedure_config_load_default() with NULL error 2019-10-02 20:51:59 +03:00
Ell 1e9bf288ba app: fix CRITICAL when translating selected content
Fix a CRITICAL when creating a floating selection by Alt-dragging a
selection using one of the selection tools.
2019-10-02 18:38:01 +03:00
Ell 64b979c2f3 Issue #2837 - Floating selection is clipped to base layer
When attaching a floating selection to a layer, don't clip the
floating selection to the layer's boundary, and instead resize the
layer to include the entire floating selection when it's anchored.
As per the last commit, this can be prevented by locking the
layer's position.
2019-10-02 18:20:50 +03:00
Ell 6ed6cd78d8 app: don't resize layer when applying filter if its position/size are locked
When applying a filter to a layer whose position and size are
locked, avoid resizing the layer to the result size in ADJUST mode.
We do this by always returning GIMP_TRANSFORM_RESIZE_CLIP in
gimp_item_get_clip() when the position is locked, and properly
updating the drawable-filter's clip mode, and the filter-tool's UI,
when the position lock changes.
2019-10-02 18:20:49 +03:00
Ell aa02f1f35c app: fix use of Clone tool with "sample merged" across images
In GimpSourceCore, when "sample merged" is enabled, derive the
source pickable from the source drawable's image according to the
paint-core's show-all flag manually, instead of using
gimp_paint_core_get_image_pickable(), which uses the destination
image, and would therefore only work when the source and
destination images are the same.

In GimpSourceTool, override GimpPaintTool::paint_prepare() to set
the paint-core's show-all flag according to the source display,
rather than the destination display.
2019-10-02 17:14:36 +03:00
Ell ffd6c2eda2 app: add GimpPaintTool::paint_prepare() vfunc
... which is called when starting to paint, before the tool's
paint-core is started, allowing the tool to configure the core.
Move the call to gimp_paint_core_set_show_all() to the default
implementation of paint_prepare().
2019-10-02 17:14:36 +03:00
Jehan 35f55ef07a devel-docs: update a reference to 32-bit pointers.
Though the description of the POINTER type clearly tells of the new type
size, it was still refered as 32-bit only in this introductory text.
Let's fix this.
2019-10-02 01:13:23 +02:00
Michael Natterer 75396106d1 plug-ins: port file-dds-load to GimpProcedureConfig 2019-10-01 23:31:06 +02:00
Michael Natterer e2ec4e0bd2 plug-ins: more file-dds cleanup 2019-10-01 18:29:42 +02:00