Commit Graph

44999 Commits

Author SHA1 Message Date
Ell
d97dd6413a configure.ac: fix escaping of backslashes in compiler version string
There is one more level of unescaping...
2019-10-29 21:27:21 +02:00
288b4097b5 devel-docs: fix and update the libgimp docs 2019-10-28 12:07:57 +01:00
Ell
6ea003902d meson: fix last commit 2019-10-28 08:48:46 +02:00
Ell
0ce7c25dd4 meson: improve host cpu detection
See gegl@6bcf95fd0f32cf5e8b1ddbe17b14d9ad049bded8.
2019-10-28 08:01:19 +02:00
c8bf85cc54 pdb: item.pdb: '3,0' is not a version, it's '3.0' 2019-10-27 18:56:53 +01:00
d217028032 app: fix typo in gimptoolrectangle.c
(cherry picked from commit f4c87c048e)
2019-10-27 16:58:42 +01:00
f0077265b4 configure, meson, app: depend on gegl-0.4.18 2019-10-27 01:37:24 +02:00
91db910aca Updated Slovenian translation 2019-10-26 21:43:40 +02:00
5319e44008 Updated Slovenian translation 2019-10-26 21:42:12 +02:00
Ell
549a606b2f app: don't use the deprecated GTimeVal in gimp-test-session-utils.c
GTimeVal, as well as g_file_info_get_modification_time(), have been
deprecated in GLib 2.62.  Use g_file_info_get_attribute_uint64()
instead.
2019-10-26 22:33:20 +03:00
Ell
6b87e2f90c configure.ac: add AC_MSG_RESULT() for color-profile directory check 2019-10-26 22:22:25 +03:00
dbd1bb1f90 gitlab-ci: no need to specify explicitly -Dbuildtype=debugoptimized.
This has now been changed to be the default meson build by Ell in the
previous commit.
2019-10-26 13:00:46 +02:00
Ell
f7c487f535 meson: use "debugoptimized" as the default build type
... to match the default autotools behavior.
2019-10-25 17:27:28 +03:00
010a4fe058 gitlab-ci: move the prefix to root for simpler paths in artefacts. 2019-10-24 22:14:41 +00:00
7fdd78c6ea gitlab-ci, build: add a wrapper for GIMP binary to Win32 CI result.
A few commands need to be performed the first time for glib to work
properly, and gdk-pixbuf loaders to be found. I add them in a wrapper
script so that it's easy to ask people to test the dev builds (even
though it's not necessary to run these commands each time, but who
cares!).
2019-10-24 22:14:41 +00:00
6f6358bef6 Updated Danish translation of gimp-script-fu 2019-10-24 23:53:26 +02:00
6c96ce3a56 Updated Danish translation of gimp-python 2019-10-24 23:53:26 +02:00
27c86f7bb6 Updated Danish translation of gimp-libgimp 2019-10-24 23:53:25 +02:00
a0a6039e5c Updated Danish translation 2019-10-24 23:32:35 +02:00
2baeb87b3a gitlab-ci: use debugoptimized built type for the Win32 CI build. 2019-10-24 17:04:15 +00:00
ce761ccc95 build: add DrMingw in the Windows CI build.
If the build results are used for testing, may be useful to have some
debugging, as proposed by Ell.
2019-10-24 17:04:15 +00:00
4d8a61af34 CID 225792 Resource leak in script-fu-server.c
Variable ai and ai_curr going out of scope at line 496.
Variable ai going out of scope at line 545.

Revealed by Coverity Scan.

(cherry picked from commit 1ce1b0eebe)
2019-10-24 18:05:58 +02:00
94852a3957 build: (Win32 CI) cairo as dependency of GEGL.
Without Cairo, GEGL does not build gegl:npd operation which is required
in GIMP.
2019-10-24 14:18:06 +00:00
3da8b9cc18 build: mask glib and pango from pre-built Win32 package for the CI.
Let's make sure they are not pulled in as dependency of other packages.
This fixes the Win32 CI build now that we fixed the Pango minimum
requirement in meson files.
2019-10-24 14:18:06 +00:00
126a2352cd gitlab-ci: (Win32) add install prefix to artifacts.
This would allow us to propose people to test CI builds.
2019-10-24 14:18:06 +00:00
e112141836 Update Polish translation 2019-10-24 15:49:43 +02:00
Ell
211b7de729 app: add babl version info to $ gimp -v
... and any other users of gimp_version().
2019-10-24 14:00:48 +03:00
286de59494 meson: wrong pangocairo minimum requirement. 2019-10-24 12:47:37 +02:00
dad65000e1 plug-ins: port file-raw-save to GimpProcedureConfig and propwidgets
and remove its builder file.
2019-10-23 19:08:34 +02:00
db6a0c6841 po-libgimp: update POTFILES.in 2019-10-23 19:08:34 +02:00
ba77ce58c7 plug-ins: use begin_export() and end_export() in file-xbm
so the "gimp-comment" parasite is handled automatically.
2019-10-23 19:08:34 +02:00
c25778c882 plug-ins: use begin_export()/end_export() in file-csource
and remove all manual "gimp-comment" parasite code.
2019-10-23 19:08:34 +02:00
e21f78e577 plug-ins: add an aux "comment" argument to file-png-save
which is now automatically synced with the image's "gimp-comment"
parasite.
2019-10-23 19:08:33 +02:00
f7c7924564 libgimp: automatically handle the image comment in GimpProcedureConfig
as in, sync it with a "comment" property on the config if one
exists. Also allow gimp_procedure_config_begin_export() and
end_export() to skip GimpMetadata handling, for file formats which
don't support it.
2019-10-23 19:08:33 +02:00
991703a7ee plug-ins: minor cleanups in file-jpeg, no porting to new stuff yet 2019-10-23 19:08:33 +02:00
c7c0397fbe libgimp: add gimp_procedure_find_argument(), aux_argument(), return_value() 2019-10-23 19:08:33 +02:00
Ell
6adf77e13a app, menus: add gegl:normal-map to Filters -> Generic 2019-10-23 20:04:38 +03:00
0b81e4d056 CID: 228176 Fix a Resource leak
This patch fixes a resource leak which was discovered by Coverity Scan.

(cherry picked from commit 3d7d46ea97)
2019-10-23 14:42:07 +02:00
Ell
eb6f544c18 app: avoid spurious channel switch in histogram editor when switching drawbles
Add an n_components parameter to gimp_histogram_clear_values(),
which allows to set the new component count when clearing the
histogram.  This is useful to seed the histogram with the correct
number of channels, for display purposes, before starting an async
histogram calculation.  We use this in GimpHistogramEditor, to
avoid resetting the view's channel back to "Value" each time the
active drawable changes.
2019-10-22 16:12:48 +03:00
Ell
8bd4ae34f5 app: fix gimp_hisotgram_n_components() for empty histograms 2019-10-22 16:12:48 +03:00
Ell
fc17f0ed0c app: streamline GimpHistogram; avoid spurious channel switch in histogram view
In GimpHistogram, get rid of the "n-channels" property and
corresponding gimp_histogram_n_channels() function.  The former
returned the actual number of channels, but this wasn't too useful,
as channel values may not be sequential; the latter returned the
number of components.  Instead, add an "n-components" property and
a corresponding gimp_histogram_n_components() function, both of
which return the number of components.  Furthermore, add a
gimp_histogram_has_channel() function, which determines if the
histogram has a given channel; this allows for simple testing for
channel availability, which was done wrong in various places.

Adjust the GimpHistogram code for the changes, and clean it up,
fixing a few bugs.

Adjust users of GimpHisotgram for the changes.  In particular,
in GimpHisotgramView, fix the channel-availability test when
setting the view's histogram (which happens whenever the active
drawable's preview is frozen), to avoid erroneously swithcing the
view's channel back to "Value" when a non-RGB channel is selected.
2019-10-22 15:50:13 +03:00
2f01751907 Issue #4119: GIMP main window not restored from Taskbar under MS Windows
Tested in a VM. Minimized window is properly deiconified and showed to
the front. Though a window in the back (not minimized) is not moved to
the front.
2019-10-20 19:44:41 +02:00
ca77fb2c95 plug-ins: mktables.c in file-dds is unused.
There were 2 warnings of unused functions on this file, and masking
them, we were ending with a whole file #ifdef-ed 0. So let's just get
rid of the whole useless file.
2019-10-20 17:11:34 +02:00
5fe20497c5 libgimp: (meson) set GIMP_DISABLE_DEPRECATED for introspection.
No need to introspect deprecated API, especially for the new non-C APIs
after a major version update.
This also sync both the autotools and meson-generated GIR files.
See also #4018.
2019-10-20 16:47:40 +02:00
371f9578cb CID 225808 Arguments in wrong order
Swapped arguments: height is passed to width. width is passed to height.

Please check the function in /app/core/gimpbrush.c at line: 606

void
gimp_brush_transform_size (GimpBrush     *brush,
                           gdouble        scale,
                           gdouble        aspect_ratio,
                           gdouble        angle,
                           gboolean       reflect,
                           gint          *width,
                           gint          *height)

(cherry picked from commit aeadaaeb6c)
2019-10-20 15:27:37 +02:00
303ba93c5e 225614 Copy-paste error
Copy-paste error: extensions in proc->extensions looks like a copy-paste error.
Should it say prefixes instead?

(cherry picked from commit c326552872)
2019-10-20 15:27:37 +02:00
93a0b640d2 CID 228074: Missing varargs init or cleanup in file-tiff-io.c
missing va_end: va_end was not called for ap_test.

(cherry picked from commit a7a18cc83f)
2019-10-20 14:27:53 +02:00
61f7eb768c Checking wrong sizeof in gimpmetadata.c
"Buffer 'strdata' is being written before its old content has been used."

(cherry picked from commit c5f597d5c0)
2019-10-20 01:01:06 +02:00
0f8b9ed4aa CID 228155: Resource leak in file-tga.c
Variable fp going out of scope leaks the storage it points to.

(cherry picked from commit e6b0b992df)
2019-10-20 00:30:00 +02:00
da6c2f890c CID 227971: Resource leak
Leaked storage: Variable infile going out of scope leaks the storage it points to

Discovered by Coverity Scan.

(cherry picked from commit 477c9458ab)
2019-10-19 23:56:30 +02:00