Ell
45efe6c405
app: Modify gimp_gegl_apply_border() to take a style parameter
...
instead of the feather parameter.
The BORDER_STYLE_HARD and BORDER_STYLE_FEATHERED styles are implemented
using the "gimp:border" operation, as was done previously. The
BORDER_STYLE_SMOOTH style is implemented by performing a "gimp:grow" and
a "gimp:shrink", and subtracting the shrunk image from the grown image
using "gegl:substract".
gimp_channel_border() is modified to pass either BORDER_STYLE_HARD or
BORDER_STYLE_FEATHER, depending on its feather parameter, to maintain
the current behavior. The next commit replaces it with a style
parameter as well.
Mass parameter alignment changes to gimp-gegl-apply-operation.h. Sigh...
2016-05-08 19:22:24 +00:00
Ell
46a9690353
app: Add GimpChannelBorderStyle enum
...
Will be used as a parameter to control the behavior of
gimp_channel_border(), and the corresponding "Select -> Border..."
action, instead of the feather flag.
Can be one of:
- GIMP_CHANNEL_BORDER_STYLE_HARD: Current behavior, unfeathered.
- GIMP_CHANNEL_BORDER_STYLE_SMOOTH: Smooth border, better handling
partial selection, implemented as explained in the next commit.
- GIMP_CHANNEL_BORDER_STYLE_FEATHERED: Current behavior, feathered.
2016-05-08 19:22:24 +00:00
Michael Natterer
d37d39bc71
app: some cleanup in gimp_prop_profile_combo_box_new()
...
- don't warn if an object property is passed (for GFile properties)
- pass the history file to gimp_color_profile_combo_box_new()
2016-05-08 21:13:55 +02:00
Michael Natterer
3244637dc4
app: enable color management when a profile is assigned to the image
2016-05-08 20:56:54 +02:00
Michael Natterer
20f5e25195
app: add gimp_prop_profile_combo_box_new()
...
and remove the same but less flexible code from the prefs dialog.
2016-05-08 20:38:46 +02:00
Michael Natterer
a544ad4718
app: #include "gimpimage-color-profile.h" in gimplayer-new.c
2016-05-08 19:56:16 +02:00
Michael Natterer
1da4236e44
app: set the image's "is color managed" in gimp_image_new_from_drawable()
...
based on the src image's setting.
2016-05-08 19:53:16 +02:00
Michael Natterer
cc83d9461c
app: move the image-duplicate action next to image-new
...
Just code rordering.
2016-05-08 19:53:16 +02:00
Michael Natterer
58d17e70be
app: add Image -> Color Management -> Color Management Enabled
...
To enable/disable color management for the image.
2016-05-08 19:53:16 +02:00
Michael Natterer
e69bb90197
app: show the image's "is color managed" state in the window title string
...
Instead of the profile name, print "(not color managed)".
2016-05-08 19:53:16 +02:00
Michael Natterer
8eb6cdf488
app: pass profiles around along with the buffers in the transform code
...
"transform" as in flip, rotate, affine. Same reasoning as in the
gimp_selection_float() commit below.
2016-05-08 18:35:40 +02:00
Michael Natterer
2739c34573
app: pass the right color profile around in gimp_selection_float()
...
This doesn make any difference because a NULL profile would do the
same, but it's safer to pass the actual profile instead of relying on
the magic meaning of NULL in the call to
gimp_layer_new_from_gegl_buffer().
2016-05-08 18:33:22 +02:00
Michael Natterer
5ec6d2c0f7
app: same fix as below in gimplayer-new.c
...
Don't use the (wrong) global display color managment switch to
determine whether or not to convert the buffer to the image's
profile. Use the image's "is color managed" switch.
2016-05-08 18:30:17 +02:00
Michael Natterer
0e3c7ea204
app: handle profile conversion correctly in gimp_layer_convert()
...
We used to depend on the global color management OFF switch from
prefs, but that's meant for display color management. Now, don't do a
profile transform if the target image's color management is disabled.
2016-05-08 18:23:09 +02:00
Michael Natterer
cc9154b425
app: don't return any cached transforms is the image is not color managed
2016-05-08 18:20:19 +02:00
Michael Natterer
34a826d735
app: return built-in profiles from GimpColorManaged::get_color_profile(image)
...
if the image is not color managed.
2016-05-08 18:15:36 +02:00
Michael Natterer
c28244c49d
app: enable color management when the image is converted to a profile
2016-05-08 18:12:28 +02:00
Michael Natterer
7fffa9dc2a
app: don't run and color profile import if the image is not color managed
2016-05-08 18:10:50 +02:00
Michael Natterer
801b1bb9bc
app: reorder private functions in gimpimage-color-profile.c
2016-05-08 18:06:16 +02:00
Michael Natterer
81845552ef
app: add a per-image "is color managed" switch
...
in order to enable/disable color management for this image. Completely
unused at the moment.
2016-05-08 18:02:57 +02:00
Piotr Drąg
1dc9deb309
Updated Polish translation
2016-05-08 14:21:32 +02:00
Kristian Rietveld
a31fe9521f
libgimpwidgets: Mac OS X: fix build
2016-05-07 09:09:06 +02:00
Michael Natterer
c3c4387d35
app: add Image -> Color Management -> Save Color Profile to File...
...
using the stuff added in the last few commits.
2016-05-07 03:01:18 +02:00
Michael Natterer
6c64cb0f16
libgimpwidgets: support saving profile in GimpColorProfileChooserDialog
...
Add the right action buttons, enable overwrite confirmation, and add
user-writable folders to the shortcuts pane. Also use the right API on
OS X instead of hardcoding /Library and ~/Library.
2016-05-07 01:36:23 +02:00
Michael Natterer
83df7f410d
libgimpwidgets: more parameters for gimp_color_profile_chooser_dialog_new()
...
Add "parent" and "action", contraidicting myself from two commits
earlier.
2016-05-07 01:19:26 +02:00
Michael Natterer
f7f9174a9c
Revert "libgimpwidgets: remove gimp_color_profile_chooser_dialog_new()"
...
This reverts commit 2bfd0711e8 .
Don't ask...
2016-05-07 00:57:40 +02:00
Michael Natterer
2bfd0711e8
libgimpwidgets: remove gimp_color_profile_chooser_dialog_new()
...
Its API was too limited, and adding parameters for what we need next
would be equally random. It's a rarely used and mostly internal
widget, so simply use g_object_new().
2016-05-06 22:57:32 +02:00
Kristian Rietveld
61a1c877c1
libgimpwidgets: Mac OS X: read ICC profile from the correct buffer
...
Clearly, the buffer to read the ICC profile from is pointed to by
"buffer", not "data" which is a CFDataRef. I doubt the old code was
ever tested.
2016-05-06 20:53:41 +02:00
Kristian Rietveld
48721b5152
libgimpwidgets: update OS X code to get display profile to new API
...
The API that is currently used is deprecated since 10.6.
2016-05-06 20:53:09 +02:00
Michael Natterer
1bfd57b99c
libgimpwidgets: add a shortcut to the profile chooser dialog on OS X too
...
Apparently it's "/Library/ColorSync/Profiles".
2016-05-05 19:40:52 +02:00
Jordi Mas
31a1d543db
Update Catalan translation
2016-05-05 07:29:37 +02:00
Michael Natterer
46096a17e3
libgimpcolor: add gimp_color_profile_save_to_file()
2016-05-04 20:40:04 +02:00
Michael Natterer
086dc60505
libgimpcolor: don't leak the path in gimp_color_profile_new_from_file()
2016-05-04 18:58:37 +02:00
Michael Natterer
95f7cab96c
app: don't use a NULL profile to create the new "layer from visible"
...
While NULL does the right thing, better not rely on that magic parameter,
pass the right profile and let the profile convert logic do its job.
2016-05-04 00:00:28 +02:00
Michael Natterer
08b67de9bf
app: don't disable profile import when display color management is off
...
It's the wrong switch, and the dialog has its own "don't ask me again"
logic.
2016-05-03 23:57:04 +02:00
Tobias Ellinghaus
2359c29895
plug-ins: Only have one thumb loader for darktable
2016-05-03 15:10:32 +02:00
Yolanda Álvarez Pérez
bcdd2ebdd1
Updated Spanish translation
2016-05-03 11:10:04 +00:00
Michael Natterer
58f8808847
app: transfer the right profile in gimp_image_new_from_drawable()
...
Use the drawable's profile not the image's.
2016-05-03 12:51:52 +02:00
Michael Natterer
f1f91ecc2f
app: don't reverse lists in GimpFilterStack and GimpUndoEditor
...
GimpList has a tail pointer now and can be traversed in reverse order.
2016-05-03 01:05:49 +02:00
Piotr Drąg
1334788ce4
Updated POTFILES.in
2016-05-02 12:22:21 +02:00
Tobias Ellinghaus
3123b49852
plug-ins: Add a bunch of formats for file-darktable
...
The mime types will need some love, and the magics might be buggy, but
only testing it in the wild will tell.
2016-05-02 00:20:45 +02:00
Kristian Rietveld
596d5f7435
pygimp: disable deprecation warnings for gimpmodule, drawable, tile
...
We need to bind deprecated methods and cannot just implement these using
the replacements. So therefore, do not disturb us with deprecation
warnings for these files.
2016-05-01 21:44:04 +02:00
Kristian Rietveld
b1117908f4
pygimp: add override for gimp_zoom_preview_get_source
2016-05-01 21:44:04 +02:00
Kristian Rietveld
a2d7a04700
pygimp: add overrides for two _convert_surface() methods
2016-05-01 21:44:04 +02:00
Kristian Rietveld
f29877dcc4
pygimp: require Pycairo in configure, link gimpui against pycairo
2016-05-01 21:44:04 +02:00
Kristian Rietveld
7934e1c8f1
pygimp: make GimpParasite type known to the code generator
2016-05-01 21:44:03 +02:00
Kristian Rietveld
fd7c1eff47
pygimp: add type definition for GimpColorManaged
2016-05-01 21:44:03 +02:00
Kristian Rietveld
f3583e21c5
pygimp: add GimpColorConfig object
2016-05-01 21:44:03 +02:00
Kristian Rietveld
5a1c4e035d
pygimp: disable deprecation warnings for gimpui.c
...
gimpui.c is the language binding which is generated from gimpui.defs.
We need to bind deprecated methods, so please do not disturb us
with deprecation warnings for this file.
2016-05-01 21:44:03 +02:00
Kristian Rietveld
57a310ebd6
pygimp: add binding for GimpImageType
2016-05-01 21:44:03 +02:00