Commit graph

42393 commits

Author SHA1 Message Date
Ell
46d4768699 libgimpwidgets: install gimpspinbutton.h
Added in commit 7ab9ee2686.

(cherry picked from commit 03a928409a)
2018-11-19 09:28:58 -05:00
Michael Natterer
ab48f12fd6 Issue #2224 - Use the "Swap folder" setting for the GEGL cache
Move swap/cache and temporary files out the GIMP user config dir:

libgimpbase: add gimp_cache_directory() and gimp_temp_directory()
which return the new default values inside XDG_CACHE_HOME and the
system temp directory. Like all directories from gimpenv.[ch] the
values can be overridden by environment variables. Improve API docs
for all functions returning directories.

Add new config file substitutions ${gimp_cache_dir} and
${gimp_temp_dir}.

Document all the new stuff in the gimp and gimprc manpages.

app: default "swap-path" and "temp-path" to the new config file
substitutions. On startup and config changes, make sure that the swap
and temp directories actually exist.

In the preferences dialog, add reset buttons to all file path pages.

(cherry picked from commit a29f73bd9a)
2018-11-18 18:27:05 +01:00
Piotr Drąg
5bab4a2c4a Update Polish translation 2018-11-18 13:23:40 +01:00
Alexandre Prokoudine
dc7bbe971d Update NEWS 2018-11-16 03:14:14 +03:00
Alexandre Prokoudine
70a1534842 Help menu: various updates
Commented out the inactive plug-ins registry: no point linking to a dead page.

Added links to the roadmap page, main wiki page, and the bug tracker. Placed
the link to the bug tracker one level up from '<Image>/Help/GIMP Online'
to make it more visible.
2018-11-16 03:10:33 +03:00
Ell
6f61a7d431 configure.ac: require babl >= 0.1.60
(cherry picked from commit 3821ce4bcd)
2018-11-15 12:56:13 -05:00
Ell
5b93eee52a app: in scale tool, scale around center even when using numeric input
In the scale tool, when the "around center" option is toggled,
scale the item around its center not only through canvas
interaction, but also when entering width/height values through the
tool GUI.

(cherry picked from commit 786bfa5171)
2018-11-15 12:53:11 -05:00
Jernej Simončič
4991603b2a Installer: remove LIBTHAI_DICTDIR environment variable (no longer needed, see https://gitlab.gnome.org/GNOME/gimp/issues/2496#note_365235 ) 2018-11-14 17:28:49 +01:00
Jehan
fd2008c5c2 NEWS: update. 2018-11-14 13:44:02 +01:00
Jehan
84ce89a9be Issue #2501: Confusing wording in "Export Image as PDF" dialog.
Nothing said what was going to be the order of the page, except by
testing. Now there will be an explicit text, which will be automatically
updated when checking the "reverse order" box.

(cherry picked from commit afe1de950f)
2018-11-14 13:42:36 +01:00
Alexandre Prokoudine
cee9a1a1c6 Update NEWS 2018-11-14 12:27:54 +00:00
ONO Yoshio
cd55cb3102 Issue #2489 - Gimp 2.10.8 layer menu text along path
Related #2064 - text along path not working with vertical text.

(cherry picked from commit a2da1cd596)
2018-11-13 12:56:25 +09:00
Adam Ostruszka
ec300891d3 Update Czech translation 2018-11-13 01:21:31 +03:00
Daniel Korostil
920f66a420 Update Ukrainian translation 2018-11-12 20:08:58 +00:00
Daniel Korostil
936d952312 Update Ukrainian translation 2018-11-12 20:07:47 +00:00
Ell
9ae2e4932d configure.ac: escape backslash chars in compiler version string
When constructing CC_VERSION, escape backslash characters in the
compiler version string, so that they don't get interpreted as
escape sequences by the compiler.  This is especially important on
Windows, where the version string of MinGW may contain backslash
characters as part of paths.

(cherry picked from commit c0b107531e)
2018-11-11 05:49:12 -05:00
Ell
7ca3fe6576 Issue #2473 - Transforming a layer doesn't properly transform its mask
In gimp_drawable_transform_buffer_affine(), avoid modifying the
clipping mode when transforming layer masks, since this function is
used (among other things) to transform layer masks together with
their layer, in which case they should use the same clipping mode
as the layer.

This fixes a regression introduced by commit
2ae823ba2b, causing layer masks to be
transformed with a mismatched clipping mode during layer
transforms, leading to discrepencies between the transformed layer
and the transformed mask.

This commit merely reverts the necessary part of above commit,
fixing the regression, though note that this code is really up for
some serious refactoring: the logic for determining which clipping
mode to use when is spread all over the place.

(cherry picked from commit 45fc30caa7)
2018-11-11 02:28:25 -05:00
Jernej Simončič
47103dc28f Installer: remove lib\gegl-0.2 2018-11-10 22:20:12 +01:00
Jernej Simončič
ed08c1eded Installer: include debug symbols for babl/gegl DLLs in lib\* 2018-11-10 22:05:42 +01:00
Ell
3a584ca151 Issue #2470 - Spacing between grid lines does not stay at 1px ...
... as I would like it to.

Use GimpSpinButton, added in the previous commit, in GimpSizeEntry,
instead of GtkSpinButton.  This avoids updating the spin-buttons'
adjustment values when they lose focus, truncating the value if it
can't be accurately displayed using the corresponding spin-button's
digit count.  Since size-entries can have multiple spin-buttons
using different units, this prevents the value from changing when
entring a value using one unit, and then shifting the focus to, but
not changing, another unit.
2018-11-10 06:57:54 -05:00
Ell
d928ed7252 libgimpwidgets: add GimpSpinButton
GimpSpinButton is a drop-in replacement for (and a subclass of)
GtkSpinButton.  Unlike GtkSpinButton, it avoids updating the
adjustment value when losing focus, unless the entry text has
changed.  This prevents accidental loss of precision, when the
adjustment value can't be accurately displayed in the entry.

Note that libgimpwidgets already defines a (deprecated)
gimp_spin_button_new() function.  This commit stays compatible with
the old function, by defining GimpSpinButton's _new() function as
gimp_spin_button_new_(), and defining a variadic
gimp_spin_button_new() macro, which expands to either the old or
the new function, based on the number of arguments, so that either
function can be used transparently as gimp_spin_button_new().  This
is all gone in master.
2018-11-10 06:57:54 -05:00
Ell
934d896fa8 tools: in performance-log-viewer.py, fix "function()" predicate ...
... when not specifying a thread-ID

(cherry picked from commit 84227fbfec)
2018-11-10 02:52:52 -05:00
Ell
dd52d8d7a5 app: in performance logs, add new-lines between variable definitions
(cherry picked from commit c7f1730702)
2018-11-10 02:52:51 -05:00
Jernej Simončič
3fd5b50f94 Installer: proper fix for libthai 2018-11-10 00:45:43 +01:00
Jernej Simončič
e40a5b9d4c Installer: remove Thai locale temporarily (causes crash on Windows 7) 2018-11-09 22:39:08 +01:00
Jernej Simončič
628a5ecb79 Installer: include extra debug symbols, Ghostscript 9.25 2018-11-09 22:29:32 +01:00
Ell
8e1e6dfb83 tools: add performance-log-coalesce.py to EXTRA_DIST
(cherry picked from commit c61138f8f0)
2018-11-09 02:23:46 -05:00
Michael Natterer
ee8f162151 configure.ac: post-release version bump to 2.10.9 2018-11-08 20:33:33 +01:00
Michael Natterer
a967e8d2c2 configure.ac: bump versions for the 2.10.8 release 2018-11-08 19:34:21 +01:00
Ell
3b07dc1f57 devel-docs: another typo fix in performance-logs.md TOC
:P

(cherry picked from commit 662636041c)
2018-11-08 11:00:08 -05:00
Ell
f8dda0d8eb devel-docs: fix typo in performance-logs.md TOC
(cherry picked from commit 5a077649f9)
2018-11-08 10:17:58 -05:00
Jehan
679e341285 Issue #2431: After coloring a selection and exporting to PDF, file...
... only shows the color (and nothing else) when "Convert bitmaps to
vector graphics where possible" was set.

This is because gimp_drawable_histogram() only checks selected pixels.
So let's make sure we work on a duplicate of the image so that we can
safely remove the selection before processing the export.
2018-11-08 15:24:42 +01:00
Ell
4cc0096450 themes: fix Dark theme tree-view selected text color during editing
In all themes, fix the color of selected text, while editing a
tree-view's item text (such as when renaming a layer), by
overriding tree-view specific styling with the global text-entry
style, for nested text entries inside tree-views.  The text would
previously use the same color as the selection background, making
it unreadable.

This issue affects the Dark and Gray themes, although this fix only
takes care of the Dark theme.
2018-11-08 07:22:55 -05:00
Ell
e23ce84dc0 devel-docs: fix typo in performance-issue screenshot
Gah :)
(cherry picked from commit 49375a3def)
2018-11-08 05:49:46 -05:00
Massimo Valentini
9cb1b66163 Issue #2454: recent libwmf uses pkg-config.
(cherry picked from commit df4e35a846)
2018-11-08 11:45:00 +01:00
Ell
5c51ecba31 devel-docs: fix typo in performance-logs/Makefile.am
(cherry picked from commit baa8aadc83)
2018-11-08 04:24:53 -05:00
Ell
805c5cc8a8 devel-docs: add performance-logs documentation
Add devel-docs/performance-logs/performance-logs.md, which
describes how to record and view performance logs, and how to
report perofrmance-related issues.

(cherry picked from commit fa9161e4f2)
2018-11-08 03:53:40 -05:00
Jehan
4e58d00eae libgimpmath: fix typo in various places: s/orthognal/orthogonal/.
(cherry picked from commit 4dc45f9658)
2018-11-07 23:40:53 +01:00
Jehan
b5e26f0399 libgimpbase: just remove a small typo in a doc comment.
(cherry picked from commit 1c9775d7bd)
2018-11-07 23:39:58 +01:00
Ell
fafeb7bf07 app: a few improvements to the GimpBacktrace Linux backend
Blacklist the "threaded-ml" thread, which seems to mask the
backtrace signal.

Improve signal-handler synchronozation, to avoid segfaulting when
giving up on waiting for all threads to handle the signal.
Furthermore, when one or more threads fail to handle the signal in
time, return a GimpBacktrace instance with backtraces for all the
other threads, and with empty backtraces for all the non-responding
threads, instead of returning NULL and leaking the allocated
instance.  Don't blacklist threads that failed to handle the signal
in time, and instead shorten the wait period for handling the
signal, and yield execution during waiting to lower the CPU usage.

(cherry picked from commit a29d040db5)
2018-11-07 14:26:40 -05:00
Ell
9489b66eec tools: a few improvements in performance-log-viewer.py
In sample-search predicates, remove the "exclusive" parameter of
the "function()" function, and replace it with optional "id" and
"state" parameters, which limit the match to the call-stacks of
matching threads, as per the "thread()" function.

Sort the backtrace thread-list by thread ID.

(cherry picked from commit 0b2d41635a)
2018-11-07 14:26:39 -05:00
Ell
3fdb5b32f7 tools: in performance-log-expand.py, preserve threads with empty stacks
... which can be present in logs since last commit.

(cherry picked from commit fb95d3b86e)
2018-11-07 14:26:39 -05:00
Ell
645e30e641 app: a few fixes to performance-log backtrace output
Fix delta-encoding of performance-log backtraces in certain cases,
and distinguish between empty call-stacks and removed threads.

(cherry picked from commit eec1e1f189)
2018-11-07 14:26:38 -05:00
Jehan
7c7e7c6012 desktop: update release date.
Still hope for tonight! Will it happen?! :-)

(cherry picked from commit 2c4831f90b)
2018-11-07 17:02:13 +01:00
Ell
ee3c6a9323 app: don't let image component mask affect channel colors
Connect GimpImage's gimp:mask-components node to the layers node
*before* connecting the channels node, so that the image's
component mask doesn't affect the channel colors, as is the case in
2.8.

(cherry picked from commit 56920dcdbf)
2018-11-04 13:24:05 -05:00
Ell
bc3847e851 app: avoid allocating empty tempbuf for drawable previews
In gimp_view_renderer_drawable_render(), make sure the preview size
is always at least 1x1.

Fixes commit 8009ea342a.

(cherry picked from commit 963322fdd4)
2018-11-03 04:30:23 -04:00
Ell
a4894b54ad tools: in performance-log-viewer.py, show variable descriptions
In the preformance-log viewer, show instrumentation-variable
descriptions as tooltips for the corresponding treeview rows.

(cherry picked from commit 21b36cd864)
2018-11-03 04:17:56 -04:00
Ell
b8862acee9 app: include variable descriptions in performance logs
Include instrumentation-variable descriptions in the var-defs
section of performance logs, so that they can be displayed
alongside their names when viewing the log.

(cherry picked from commit 646208eff0)
2018-11-03 04:17:55 -04:00
Ell
5456226c99 app: simplify drawable preview rendering
Simplify gimp_view_renderer_drawable_render(), by consolidating
common code paths.  In particular, when rendering the preview as
part of an image, always crop the preview to the bounds of the
image, even when downscaling, to avoid unnecessarily downscaling/
convering cropped-out regions.  We previously only did this when
upscaling the preview by a factor of 2 or more; whatever the reason
for this used to be, it's no longer there.

(cherry picked from commit 8009ea342a)
2018-11-03 04:06:17 -04:00
Ell
4f27efc4a0 Issue #2436 - Crash after downsizing canvas
In gimp_view_renderer_drawable_render(), avoid overflow in preview-
area calculation.  This prevents erroneously setting 'scaling_up'
to FALSE while upscaling the drawable by a very large amount, which
can lead to the creation of a very large GimpTempBuf for the
preview, causing memory allocation to fail.

(cherry picked from commit 0cdbe91e5a)
2018-11-02 21:44:10 -04:00