Commit Graph

41917 Commits

Author SHA1 Message Date
Bruno Lopes da Silva eeb61e5b42 Update Brazilian Portuguese translation 2018-07-08 17:34:22 +00:00
Piotr Drąg a6ee02b72b Update Polish translation 2018-07-08 17:37:49 +02:00
Michael Natterer a1f2464ed6 libgimpwidgets: forgot one s/H/h/ in LCh 2018-07-08 17:29:55 +02:00
Piotr Drąg ac05d72072 Update Polish translation 2018-07-08 17:23:18 +02:00
Michael Natterer 926dc070ef app, libgimp*: make user visible color model labels consistent
- "LCh" intead of "LCH"
- "CIE LCh" instead of "CIELCh"
- "HSV Hue" instead of "Hue (HSV)" for all models/components
2018-07-08 16:15:13 +02:00
Michael Natterer 6c3b1112be app: make the rectangle options a bit narrower, still too wide... 2018-07-08 14:45:48 +02:00
Vinzenz Vietzke 3c96ba4d84 Update German translation 2018-07-07 20:48:45 +00:00
Michael Natterer 370680f9bc Issue #1805 - Sample Points keep resetting themselves to "Pixel"
Don't destroy the color frames when the number of points changes.
Instead, simply hide them so they keep their color model, but add an
upper limit of an arbitrary number of 16 frames to keep around.
2018-07-07 19:17:58 +02:00
Snehalata B Shirude c6b63589c2 Added Marathi translations
Forward port of 9a08f499c6 from gimp-2-10.
2018-07-07 18:20:31 +02:00
Jehan de649f4d7a po: adding app/dialogs/extensions-dialog.c in POTFILES.in.
Fixing the CI build!
2018-07-07 18:11:09 +02:00
Jehan a4c1d73b75 icons: toilet paper should always be white!
I know that the idea of black toilet paper is traumatizing nomis! ;-)
So here it is, using the CSS "!important" trick to override GTK+ CSS
recoloring code.
In order for the icon to be always visible, even on light background, I
am adding a path around the toilet paper shape (which this time will
be properly recolored by GTK+ with the foreground color, hence making
the icon clearly visible).
2018-07-07 17:08:02 +02:00
Jehan 56717f80cc icons: fix symbolic icon gtk-select-color.
There was again a visible square.
2018-07-07 16:23:43 +02:00
Jehan 22099db280 app: new GimpExtensionDetails widget.
The extension dialog will show details about an extension (long
description, screenshot, upstream URLs, etc.) with this widget.

Update the GimpExtensionList to send a "extension-activated" signal on
double click, and make the extensions dialog react on it to display the
extension details for the activated extension.

This is all still mostly a skeleton GUI, but it is starting to get into
shape.
2018-07-07 16:10:51 +02:00
Jehan 869f345ff0 app: new GimpExtensionList widget.
This is used to show the user/system or uninstalled extensions.
2018-07-07 16:10:51 +02:00
Jehan ff12c2d903 app: a skeleton for the extension GUI.
This is using GTK+3 widgets, so I make sure to keep it well separated
from core code. The gimp-2-10 version will have to rework the GUI, but
the GtkListBox and GtkSwitch are nice and make things easier, so it is
worth using them here).
2018-07-07 16:10:50 +02:00
Jehan 20b399e9bf app: add some GimpExtension and GimpExtensionManager API.
To be used in the next commit.
I keep the GUI and core changes well separated in different commits so
that the core is easy to cherry-pick even though I will have to have
different GUI code.
2018-07-07 16:10:50 +02:00
Jehan b9b8676cb8 app: use GIMP_VERSION for version comparison.
GIMP_APP_VERSION does not include the micro version.
Also make version comparison with org.gimp.GIMP mandatory to force good
practice. This way, extension makers will have to advertize the version
of GIMP it works for, which will make a sane ecosystem of working
extensions only (hopefully!).
2018-07-07 16:10:50 +02:00
Adrian Perez de Castro 9fae08595d plug-ins: help-browser Web view does not need a scrolled window
In WebKitGTK+ 2.x the WebKitWebView widget handles scrolling itself
and does not need to be contained inside a GtkScrolledWindow.
2018-07-07 13:00:23 +00:00
Snehalata Shirude aa2cdb2aa9 Added Marathi translation
Forward port of dccb2e3ead from the gimp-2-10 branch.
2018-07-07 11:49:01 +02:00
Michael Natterer 34a0c36602 plug-ins: need to initialize "name" now in file-pat.c 2018-07-07 10:49:17 +02:00
Ell 49ca383fa4 app, pdb: use gimp_babl_is_valid() in more places
Use gimp_babl_is_valid(), added in the previous commit, to validate
image-type/precision combinations in various functions.
2018-07-06 13:44:57 -04:00
Ell a0a62656d2 Issue #1792 - Xcf file crashing gimp-console-2.10 ...
... (valgrind reports Invalid read)

Add gimp_babl_is_valid(), which takes a GimpImageBaseType and a
GimpPrecision, and determines whether the image-type/precision
combination is valid.  Use this function to validate that loaded
XCFs use a valid type/precision combination, before trying to
create the image.  Otherwise, we get a CRITICAL, and eventually a
segfault, when the combination is invalid.

Use the same function to validate the arguments of
gimp_image_new().
2018-07-06 13:06:46 -04:00
Øyvind Kolås 8f63397ef7 app: gimp:semi-flatten propagate babl space 2018-07-06 15:27:55 +02:00
Øyvind Kolås 11dd90eb89 app: gimp:threshold-alpha propagate babl space 2018-07-06 15:09:18 +02:00
Øyvind Kolås f3a757ff33 app: gimp:set-alpha propagate space 2018-07-06 15:03:37 +02:00
Øyvind Kolås 045328c889 app: gimp:grow propagate babl space 2018-07-06 14:53:16 +02:00
Øyvind Kolås 4d5a967d6a app: gimp:shrink propagate bable space 2018-07-06 14:51:45 +02:00
Øyvind Kolås df4f9e0d9b app: propagate babl space in pointfilter base class 2018-07-06 14:51:23 +02:00
Øyvind Kolås ae2c30ad0e app: gimp:flood propagate babl space 2018-07-06 14:50:08 +02:00
Øyvind Kolås 38b1502024 app: gimp:desaturate propagate babl space 2018-07-06 14:48:26 +02:00
Øyvind Kolås 0b4d41c2ee app: gimp:compose-crop propagate babl space 2018-07-06 14:48:13 +02:00
Øyvind Kolås 5e8a5cf999 app: gimp:border propagate babl space 2018-07-06 14:47:27 +02:00
Michael Natterer 1fc55c1572 app: switch off overlay scrollbars in tool options
and remove the viewport, GtkScrolledWindow adds one automatically now.
2018-07-06 14:24:43 +02:00
Michael Natterer 6a7a010769 app: link tests against APPSTREAM_GLIB_LIBS 2018-07-06 13:26:07 +02:00
Michael Natterer 9b56ca8c1d Issue #1730 - pat file that crashes gimp-2.10
Introduce GIMP_PATTERN_MAX_SIZE (10000) and GIMP_PATTERN_MAX_NAME (256)
and validate pattern dimensions and pattern name length against them.

Add GIMP_BRUSH_MAX_NAME and validate that too.

Also make sure that the names are properly terminated, and some
cleanup.
2018-07-06 13:07:28 +02:00
Michael Natterer 8195a56261 app, plug-ins: move GIMP_BRUSH_MAX_SIZE to gimpbrush-header.h
and use it in the brush file plug-ins.
2018-07-06 12:31:06 +02:00
Michael Natterer e759ce3558 app, plug-ins: clean up gimpbrush-header.h and gimppattern-header.h
Namespace the header structs, s/GBRUSH/GIMP_BRUSH/,
s/GPATTERN/GIMP_PATTERN/.
2018-07-06 12:06:08 +02:00
Daniel Mustieles bd09e6d4ed Update Spanish translation 2018-07-06 07:51:15 +00:00
Daniel Mustieles 2aa1d0c7cc Update Spanish translation 2018-07-06 07:49:39 +00:00
Daniel Mustieles 5612b47f29 Update Spanish translation 2018-07-06 07:48:02 +00:00
Daniel Mustieles 1e29f8bb8d Update Spanish translation 2018-07-06 07:44:34 +00:00
Rodrigo fc9131cc7a Update Spanish translation
(cherry picked from commit dd6efd79c9)
2018-07-06 06:48:14 +00:00
Ell ed033b1cb5 app: properly shut down gimp-parallel in stable versions
In app_exit_after_callback(), call gimp_gegl_exit() before
gegl_exit() when performing a quick shut-down in stable versions,
so that gimp-parallel, and, in particular, the async thread pool,
is properly shut down.  Code running in the async thread pool may
use GEGL (in particular, now the drawable previews are rendered
asynchronously), and calling gegl_exit() while it's still running
is unsafe.
2018-07-06 02:16:55 -04:00
Ell 114d49510f app: log actions upon activation before emitting "selected" signal
In GimpAction, instead of connecting the action-history log
function to the action's "activate" signal as a user-provided
handler, call it directly from the default handler.

In subclasses of GimpAction, chain to the parent's activate()
function before emitting the "selected" signal, so that we always
log the action in the history before responding to it.

This allows us to avoid the hack in commit
6544ce4301.
2018-07-06 00:08:00 -04:00
Ell b4aece8a27 app: avoid CRITICAL when loading XCF with empty gimp-text-layer parasite 2018-07-05 22:47:45 -04:00
Ell e97f2510dc app: avoid CRITICAL when loading XCF with empty symmetry parasites 2018-07-05 22:47:45 -04:00
Ell eafefc7d81 libgimpbase: gracefully reject Exif/IPTC/XMP metadata of invalid size
In gimp_metadata_set_from_{exif,iptc,xmp}(), gracefully reject data
of invalid size, returning an error instead of raising a critical.

In particular, this avoids a CRITICAL when loading an XCF with an
empty exif-ata parasite.
2018-07-05 22:47:45 -04:00
Ell d4ff57c793 app: avoid CRITICAL when loading XCF with empty gimp-image-metadata parasite 2018-07-05 22:47:45 -04:00
Ell b54256fbdc app: avoid CRITICAL when loading XCF with empty gimp-image-grid parasite 2018-07-05 22:47:45 -04:00
Ell 8e798e9cf2 app: avoid CRITICAL when writing 0-length data to XCF
In xcf_write_int8(), avoid calling g_output_stream_write_all() with
data == NULL and count == 0, in which case it raises a CRITICAL and
doesn't set bytes_written, which we proceed to use uninitialized.
This can happen, e.g., when writing an empty parasite.
2018-07-05 22:47:45 -04:00