Commit Graph

36689 Commits

Author SHA1 Message Date
7934e1c8f1 pygimp: make GimpParasite type known to the code generator 2016-05-01 21:44:03 +02:00
fd7c1eff47 pygimp: add type definition for GimpColorManaged 2016-05-01 21:44:03 +02:00
f3583e21c5 pygimp: add GimpColorConfig object 2016-05-01 21:44:03 +02:00
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
57a310ebd6 pygimp: add binding for GimpImageType 2016-05-01 21:44:03 +02:00
79ce219a32 Bug 761823: TIFF export generates corrupted output...
... if picture has EXIF
2016-05-01 19:57:37 +02:00
a856fdab50 plug-ins: forgot to change an #include after renaming screenshot files 2016-05-01 19:25:52 +02:00
eb6ce6ebc6 plug-ins: rename all screenshot win32 files to screenshot-win32-* 2016-05-01 19:20:56 +02:00
ed80db30c9 plug-ins: convert win-snap to screenshot
works as win-snap, lots of optimizing work to be done.
2016-05-01 19:10:57 +02:00
ad25307a3b plug-ins: remove the magic from file-nef-load
It was matching a lot of TIFFs.
2016-05-01 18:41:21 +02:00
6b4dd30fca app: prefer magic-less file procedures again when matching a filename
This essentially reverts 1bf8eef14f
which tried to prefer file procedured that are GIO-enabled over
indirect loading via the file-uri plug-in. But file-uri is gone now so
we can treat all file procedured the same again, restoring the
original logic.

Now a file procedure which specifies only an extension is again
preferred over magic matching.
2016-05-01 18:41:21 +02:00
fe351b7c35 Updated Portuguese translation 2016-05-01 14:43:34 +00:00
a659036b40 app: switch the list of tools to using "append" mode
and ret rid of registering tools in reverse order, and reversing the
list after deserializing it.
2016-05-01 16:05:44 +02:00
0ab6e6be69 app: make sure the last *visible* layer is displayed in normal mode
The bottom visible layer must be rendered in normal mode because
every other mode on top of nothing renders nothing.

Before, we would display a stack's last layer in normal mode, which
was a braindead attempt to make the layer stack look like in 2.8. Now
we set GimpFilter's "is-last-node" property the right way by looking
at the filters' visibility in GimpFilterStack.
2016-05-01 15:38:36 +02:00
39909b6008 app: replace GimpList's internal GList with a GQueue
so we can easily iterate in reverse order, and access the last element
in O(1). Nothing makes use of this yet.
2016-05-01 15:22:44 +02:00
7ae81e70b9 app: move the "visible" property from GimpItem to GimpFilter
Same for the "visibility_changed" signal. GimpItem keeps its
visibility API because it adds undo over GimpItem's API.
2016-05-01 14:27:43 +02:00
c11c61d00e Updated Polish translation 2016-05-01 12:43:54 +02:00
8c107963e6 app: implement GimpColorManaged in GimpDrawable
so now all drawables have a profile. Default to the babl format's
bultin profile and override to use the image's format in GimpLayer.
2016-04-30 23:41:32 +02:00
5c57885ac3 app: add ellipses to the color mode conversion menu items
if they show a dialog.
2016-04-30 19:41:09 +02:00
329d5c0a0f app: #include gimp-babl.h in gimpimage-convert-type.c 2016-04-30 18:50:23 +02:00
5aff776a8a app: rename convert-type-dialog.[ch] to convert-indexed-dialog.[ch] 2016-04-30 18:49:02 +02:00
182da6d2e9 Bug 765176 - ICC profile conversions between grayscale and RGB images
When converting between RGB and GRAY and the image has a profile,
invoke the convert profile dialog with the newly added image type
conversion feature.
2016-04-30 18:35:52 +02:00
12f9aa9bd2 Bug 765176 - ICC profile conversions between grayscale and RGB images
Add a dest_profile parameter to gimp_image_convert_type() so a profile
can be chosen when converting between RGB and GRAY. Has no GUI yet.
2016-04-30 18:35:52 +02:00
33adec2a3e app: add gimp_image_validate_color_profile_by_format()
which checks if a color profile is suited for pixels of a Babl format.
2016-04-30 18:35:52 +02:00
1cf04cc4b9 app: prepare the color profile dialog for doing RGB <-> GRAY conversion
Get rid of individual constructors for assign and convert, instead
have one constructor that takes a dialog type enum. No new features
yet in this commit.
2016-04-30 18:35:52 +02:00
ef8b802032 app: move indexed conversion to gimpimage-convert-indexed.[ch]
It's so much code and takes so many additional parameters over RGB and
GRAY conversion, it got its own place and function now.
2016-04-30 18:35:52 +02:00
4086932e8d app: tiny and completely irrelevant stylistic cleanup 2016-04-30 18:35:52 +02:00
ef4ab94a12 app: change GimpDrawable::convert_type() to take a target profile
instead of just a boolean "convert_profile". This takes the logic to
figure the right target profile out of gimp_layer_convert_type(), it
can't possibly know everything about how to convert anyway, and having
the logic in the callers conveniently splits it up and distributes its
parts to the places they belong.

This commit should cause no behavor change and is just preparation for
fixing bug 765176.
2016-04-30 18:35:52 +02:00
3708f50fd9 Updated Hungarian translation 2016-04-30 12:45:51 +00:00
fb5d4ac076 pygimp: remove calls to gimp_context_set_transform_recursion
This deprecated function is currently a no-op anyway.
2016-04-29 21:35:43 +02:00
bb4cb5b4c1 pygimp: fix typo 2016-04-29 21:35:43 +02:00
6746e502c2 pygimp: fix implicit enum casts 2016-04-29 21:35:43 +02:00
04ef2c34db pygimp: python-console: ensure initial width of 80 characters 2016-04-29 21:35:43 +02:00
2f1c947abc pygimp: pyconsole: set up a default size of 80x40 characters
A default width of 80 characters makes Python help readable by default.
2016-04-29 21:35:42 +02:00
cd5dfb8642 pygimp: pyconsole: use appropriate Pango function to estimate char width 2016-04-29 21:35:42 +02:00
d9bb8d18f9 pygimp: pyconsole: replace raw_input builtin with modal raw input
We need to run raw_input in modal mode, such that we can return the
text that has been entered as the return value. This makes the use
of "raw_input()" within the pyconsole work as well as makes "help()"
not get stuck (it was blocking on input on stdin).
2016-04-29 21:35:42 +02:00
229285379b pygimp: pyconsole: comment the code a bit
So the code can be understood by mere mortals like me.
2016-04-29 21:35:42 +02:00
a795c1c4ff pygimp: pyconsole: coding style 2016-04-29 21:35:42 +02:00
21a4999230 pygimp: pyconsole: remove unused method 2016-04-29 21:35:42 +02:00
3d86a6c709 plug-ins: Use GIMP's internal profile when loading EXR
... when it's appropriate.
2016-04-29 13:10:30 +02:00
1c4fc5620f Updated Italian translation 2016-04-29 08:47:17 +02:00
207e904d7a Bug 765685: Disambiguates octal-escaped output in c-source image output
Fixes the plug-in output to render decimal digit
characters as octal escaped, so they can't be acidentally
combined in preceding escaped sequences. (i.e. the sequence
of values '255, 49'  is now rendered as '\377\049' instead of
 '\3771')

Thanks Steve Baker for noticing and reporting the issue.
2016-04-27 23:46:19 -03:00
52af9145d7 libgimpcolor: handle palette formats in gimp_color_profile_get_format()
Return "R'G'B'[A] u8" and "TYPE_RGB[A]_8" and babl and lcms formats.

I'm not sure which code triggered the warning about an unhandled
format, but now it handles indexed images too.
2016-04-27 00:48:23 +02:00
3a34a2b54c Bug 764320 - Xsane Gimp no device dialog
Pass the run_mode again to GIMP_EXTENSION plug-ins, this got lost in
the cleanup in commit dda06ac065.
Spotted by Massimo.
2016-04-26 16:10:08 +02:00
68b91cc9f6 plug-ins: Get an image size when creating thumbs with darktable
The reported size isn't very precise but close enough to get an idea of
what you will get. The problem is that raw files always have some unused
regions that get cropped away later.
Another source of discrepancy can be manual cropping by the user in
darktable, but there isn't much we can do about that.
2016-04-26 13:38:33 +02:00
980b08e380 plug-ins: Don't start darktable when creating thumbnails
... instead use the non-interactive darktable-cli. This is still
somewhat work in progress as the image size isn't returned yet.
2016-04-26 01:03:35 +02:00
9888824730 plug-ins: Try harder to export an image from darktable
Before there wouldn't be any intermediate file being written when
darktable sees more than one XMP file. Now the first image in its
temporary database gets exported.
2016-04-25 15:34:36 +02:00
eca44cc87d app: fix file_check_magic_list() to handle "and" matches again
where the magic is only supposed to match if all magics in the "and"
list match.
2016-04-25 01:04:07 +02:00
f3502d72b3 plug-ins: add a magic for Nikon NEF files to file-darktable
...which I hope is the right one...
2016-04-25 00:35:39 +02:00
6af83a5a08 app: improve file magic matching
Change file magic matching from using a simple boolean "magic matches"
logic to using a matching quality. The quality is measured by the
number of bytes that matched.

Matching a single file procedure's magics now tries all magics and
returns the best match quality.

Searching a file procedure for a given file now tries all file
procedures and returns the one with the best match quality.

This fixes raw camera files being opened as TIFF, given a better magic
than just the generic TIFF magic is provided.
2016-04-24 23:56:57 +02:00