Commit Graph

7936 Commits

Author SHA1 Message Date
Michael Natterer ecceb9967c plug-ins: remove color-enhance, there is a GEGL op doing almost the same 2018-05-20 21:06:29 +02:00
Michael Natterer a6948b4ba5 plug-ins: s/GtkObject/GtkAdjustment/ in file-wepb 2018-05-20 21:06:29 +02:00
Michael Natterer f133f04dcb plug-ins: s/GtkObject/GtkAdjustment/ 2018-05-20 21:06:29 +02:00
Michael Natterer f85ceecf28 plug-ins: port filter-pack to GTK+ 3.0, still some warnings left 2018-05-20 21:06:29 +02:00
Michael Natterer 4b92434bb9 plug-ins: port map-object to GTK+ 3.x 2018-05-20 21:06:29 +02:00
Michael Natterer dc529eb3d2 plug-ins: don't use style->black and style->white 2018-05-20 21:06:28 +02:00
Michael Natterer db6c2ea658 libgimpwidgets: move all GimpBrowser members to a private struct
The newly added API is ugly and will change.
2018-05-20 21:06:28 +02:00
Michael Natterer fd45ea2051 libgimpwidgets: move all GimpChainButton members to a private struct 2018-05-20 21:06:28 +02:00
Michael Natterer ce2cd374ee Replace gdk_cursor_unref() with g_object_unref() 2018-05-20 21:06:28 +02:00
Michael Natterer d9b56a5dbe Use gtk_widget_render_icon_pixbuf() instead of gtk_widget_render_icon()
because the latter is deprecated.
2018-05-20 21:06:27 +02:00
Michael Natterer 05e2d3c034 plug-ins: port the unit-editor to GtkScrollable 2018-05-20 21:06:27 +02:00
Michael Natterer 4528390412 plug-ins: port lighting to GTK+ 3.0 2018-05-20 21:06:27 +02:00
Michael Natterer d97d68b4d7 plug-ins: port cml-explorer to GtkWidget::draw() 2018-05-20 21:06:27 +02:00
Michael Natterer 467db40298 plug-ins: port sphere-designer to GtkWidget::draw() 2018-05-20 21:06:27 +02:00
Michael Natterer e76468aae9 plug-ins: port the print preview to the new size request API 2018-05-20 21:06:27 +02:00
Michael Natterer 09e214bc11 plug-ins: port some more plug-ins to GTK+ 3.0 2018-05-20 21:06:27 +02:00
Michael Natterer 138a3a4bf3 plug-ins: more s/GtkObject/GtkAdjustment/ 2018-05-20 21:06:27 +02:00
Michael Natterer eb8487b487 plug-ins: s/GtkObject/GtkAdjustment/g in plug-ins/common/ 2018-05-20 21:06:27 +02:00
Michael Natterer 95cd1aa142 plug-ins: port file-png to GTK+ 3.0 2018-05-20 21:06:27 +02:00
Michael Natterer 060ed1a608 plug-ins: port jpeg-save to GTK+ 3.0 2018-05-20 21:06:27 +02:00
Michael Natterer 24924211f4 plug-ins: lots of trivial GTK+ 3.0 porting
Most of it simply s/GtkObject/GtkAdjustment/
2018-05-20 21:06:27 +02:00
Michael Natterer d35fecceb4 configure.ac: remove the option to disable script-fu
Forgot to do this for 2.10.0.
2018-05-18 13:06:24 +02:00
Thomas Manni 806d260601 script-fu: in weave, improve context and undo management
Use a gimp-context-push/pop at the beginning/end of the script
to keep the current context unchanged.

Add undo support for the whole procedure.
2018-05-16 21:44:30 +02:00
Jehan 9fb1c28687 plug-ins: properly free rectScreens after allocating it.
Also avoid global variables when possible. We can just use the data
variable of EnumDisplayMonitors() which will be passed on to the
callback. This is not perfect yet since rectScreensCount is still
global, but let's go for it for now.
2018-05-16 00:39:46 +02:00
Jehan e357e7118c plug-ins: fixing various compilation warnings.
Mostly warnings about wrong types for some function parameters.
There is still a single warning remaining about ignoring the #pragma
macro, but I am not sure what to do about this warning. Apparently it is
something specifically for use with Visual Studio. We don't need this,
but since the contributor uses it, let's keep it.
2018-05-16 00:39:46 +02:00
Jehan 382d6c8ad5 plug-ins: put the initial foreground window back after a screenshot.
This was lost in commit 966843564d. It's not a big deal since this code
path would only happen when the capture using magnification API fails,
yet we may as well make it perfect.
Also taking the opportunity to change the return type to gboolean for
the various capture functions (though it is technically the same,
semantically we were returning success boolean).
And removing a comment which had been duplicated and left at a the wrong
place.
2018-05-16 00:39:10 +02:00
Jehan a0b28589ac plug-ins: properly load user32.dll for SetProcessDPIAware().
Using similar code as other parts of Win32 code.
I hope I am not doing anything wrong. At least now it builds!
2018-05-16 00:39:10 +02:00
Gil Eliyahu ae93b6db18 Plug-ins: fix screenshot bugs in windows.
This fixes bugs 793722 and 796121.
In particular it fixes:
- Single-window screenshot when partly off-screen or covered by another
  window.
- Screenshots when display scaling is not 100%.
2018-05-16 00:39:10 +02:00
Thomas Manni d01bf70f86 script-fu: in slide, use an undo group when working on the initial image 2018-05-15 17:58:11 +02:00
Thomas Manni 316adffaae script-fu: in fuzzy-border, add undo support for the whole procedure 2018-05-15 17:36:27 +02:00
Thomas Manni 9c547e7d71 Bug 795958 - Effect (like "old photo") does not group undo information properly
When working on the current image, enclose the script actions in an undo group.

When working with a copy of the image, disable the undo stack of the new image
at the beginning of the script and reenable it at the end.
2018-05-15 11:40:08 +02:00
Ell 4d4881fe83 plug-ins: in selection-to-path, use sampler object ...
... instead of gegl_buffer_sample()

Ditto.
2018-05-13 19:40:46 -04:00
Ell 2d421d7f07 plug-ins: in smooth-palette, use sampler object ...
... instead of gegl_buffer_sample()

Ditto.
2018-05-13 19:40:46 -04:00
Ell eece91eb06 plug-ins: in file-html-table, use sampler object ...
... instead of gegl_buffer_sample()

Ditto.
2018-05-13 19:40:46 -04:00
luz.paz 69b2e84924 Source and trivial typos
Found via `codespell` and `grep`
2018-05-12 23:44:47 +02:00
Jehan 9d9e9c707e plug-ins: minor cleanup.
In particular tabs were left out in the new file-heif plug-in.
2018-05-11 23:29:40 +02:00
Jehan 05145f44f2 plug-ins: set appropriate status when file-heif's load_image() fails.
Current code was only taking into account cancelation, so we could end
with weird plug-in return:

> HEIF/HEIC plug-in returned SUCCESS but did not return an image

Instead properly set an error status, and echo back the error from the
plug-in or libheif.
2018-05-11 22:48:23 +02:00
Ell 7540ce779d Bug 795716 - Wavelet Decompose takes too long to group layers
Use gimp_image_{freeze,thaw}_layers(), added in the previous
commit, to suppress updates to the Layers dialog while constructing
the decomposed layers, which significantly speeds up the operation
if the dialog is mapped.
2018-05-07 02:56:10 -04:00
Simon Budig 5a048f5b5d imagemap: fix invalid source removal 2018-05-05 20:01:57 +02:00
Michael Natterer b706eaf002 plug-ins: enable metadata loading in file-heif
Do it half-manually for now. Also, there doesn't seem to be metadata
saving API in libhaif.
2018-05-05 14:38:27 +02:00
Michael Natterer 15b9bb1581 plug-ins: port file-heif to GIO 2018-05-05 12:53:39 +02:00
Michael Natterer 7e3fa0c8d8 plug-ins: port file-heif to GEGL, and don't use any deprecated API 2018-05-04 21:14:23 +02:00
Michael Natterer ba149f1759 plug-ins: add HEIF loading/saving plug-in written by Dirk Farin
Thanks a lot to Dirk for contributing this, added him to AUTHORS.

Import the code from https://github.com/strukturag/heif-gimp-plugin.git
as of today. Merged the files into a single-file plug-in. Changed
the code a lot to match our coding style, but only formatting,
no logic changes.

Still uses deprecated GimpDrawable API and no GIO, but I wanted to do
actual code changes separately from the initial import. Also disabled
metadata support because updating that to GimpMetadata was too much
for the initial import.
2018-05-04 20:49:56 +02:00
Michael Natterer 62279047b1 Bug 795763 - Update gimp.org links to https://
Update links to https:// in "About". the "Help" menu, and several
user-visible error messages.
2018-05-03 00:27:29 +02:00
Ell 474e27b27a Bug 795693 - GIMP doesn't enable visibility of vector layers in PSD
In the file-psd plug-in, ignore the 'irrelevant' flag of layers
when loading PSD files; in particular, don't hide such layers
unconditionally.  The 'irrelevant' flag seems to indicate that the
layer's content can be entirely derived without using the layer's
pixel data, and not that the layer itself it irrelevant.
2018-05-01 02:49:19 -04:00
Alexandre Prokoudine 1811d8ebf9 script-fu: fix a typo in the Add Border script 2018-04-30 18:10:08 +03:00
Michael Natterer f3bf8cd53f plug-ins: don't use gimp_rgb_to_cmyk_int() in newsprint 2018-04-28 14:44:23 +02:00
Jan Tojnar aa67a0228b Bug 795620 - Missing gegl in rpath of python/gimp.so
gegl was not listed as a dependency of python/gimp.so, which
omitted it from rpath, breaking the plug-ins on Nix, which relies
on rpaths.
2018-04-28 11:53:44 +02:00
Michael Natterer 710ac0fb52 Bug 795611 - unit-editor.c: Boolean result is used in bitwise operation
Fix "or" expression: it's || not |.
2018-04-28 02:48:56 +02:00
Michael Natterer f35c2cdcec script-fu: port chrome-it.scm to non-deprecated color API 2018-04-26 15:45:04 +02:00