Commit Graph

44895 Commits

Author SHA1 Message Date
Michael Natterer c8bf85cc54 pdb: item.pdb: '3,0' is not a version, it's '3.0' 2019-10-27 18:56:53 +01:00
Samuel Rats d217028032 app: fix typo in gimptoolrectangle.c
(cherry picked from commit f4c87c048e)
2019-10-27 16:58:42 +01:00
Øyvind Kolås f0077265b4 configure, meson, app: depend on gegl-0.4.18 2019-10-27 01:37:24 +02:00
Martin Srebotnjak 91db910aca Updated Slovenian translation 2019-10-26 21:43:40 +02:00
Martin Srebotnjak 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
Jehan 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
Jehan 010a4fe058 gitlab-ci: move the prefix to root for simpler paths in artefacts. 2019-10-24 22:14:41 +00:00
Jehan 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
Alan Mortensen 6f6358bef6 Updated Danish translation of gimp-script-fu 2019-10-24 23:53:26 +02:00
Alan Mortensen 6c96ce3a56 Updated Danish translation of gimp-python 2019-10-24 23:53:26 +02:00
Alan Mortensen 27c86f7bb6 Updated Danish translation of gimp-libgimp 2019-10-24 23:53:25 +02:00
Alan Mortensen a0a6039e5c Updated Danish translation 2019-10-24 23:32:35 +02:00
Jehan 2baeb87b3a gitlab-ci: use debugoptimized built type for the Win32 CI build. 2019-10-24 17:04:15 +00:00
Jehan 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
Sabri Ünal 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
Jehan 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
Jehan 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
Jehan 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
Piotr Drąg 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
Jehan 286de59494 meson: wrong pangocairo minimum requirement. 2019-10-24 12:47:37 +02:00
Michael Natterer dad65000e1 plug-ins: port file-raw-save to GimpProcedureConfig and propwidgets
and remove its builder file.
2019-10-23 19:08:34 +02:00
Michael Natterer db6a0c6841 po-libgimp: update POTFILES.in 2019-10-23 19:08:34 +02:00
Michael Natterer 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
Michael Natterer 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
Michael Natterer 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
Michael Natterer 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
Michael Natterer 991703a7ee plug-ins: minor cleanups in file-jpeg, no porting to new stuff yet 2019-10-23 19:08:33 +02:00
Michael Natterer 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
Sabri Ünal 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
Jehan 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
Jehan 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
Jehan 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
Sabri Ünal 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
Sabri Ünal 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
Sabri Ünal 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
Sabri Ünal 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
Sabri Ünal 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
Sabri Ünal 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
Sabri Ünal 6dcdbf652b CID 228166: Resource leak in file-raw-data.c
Overwriting fp in fp = fopen(newfile, "wb") leaks the storage that fp points to.

(cherry picked from commit 31001d9f29)
2019-10-19 23:30:28 +02:00
Jehan 4150bbb59f libgimpwidgets: (meson) a whole list of headers were not introspected. 2019-10-19 22:45:59 +02:00
Jehan b8d8424ae0 app, libgimp*: (meson) fix all the generated `*-enums.c`.
More of the files were wrong, or at least not absolutely identical to
the files generated by the autotools. I am not doing any code change
other than trying to make both build systems produce identical files
(except for slight differences on 2 files not worth the effort) even
though maybe some things can be improved (especially on the include
list). Maybe to be improved later.

Also fixing 2 of the previously autotools-generated files because of
space typos which should have been committed earlier.

Finally it is to be noted that there is no logics to copy the generated
files back to the source directory in the meson rules. I am not sure
anyway this is really worth it and maybe we should just stop tracking
these generated files eventually.
2019-10-19 22:32:29 +02:00
Jehan 5d79fba823 libgimpwidgets: (meson) fix gimpwidgetsenums.c generation.
Noticed by Massimo.
gimp_type_set_translation_domain() calls were missing.
Also make so that the output is exactly similar (even whitespaces) as
the autotools one, making it easier to diff, hence maintain.
2019-10-19 17:51:21 +02:00