Commit graph

31508 commits

Author SHA1 Message Date
Michael Natterer
a8aef360b9 app: fix saving/loading of .xcf.gz and other compressed XCFs
Make file_utils_uri_get_ext() public and use it instead of
strrchr(uri, '.'). Also add "xz" to the list of matched special cases,
and some cleanup.
(partial cherry pick from commit e99c0045a2)
2013-05-02 20:12:26 +02:00
Jehan
e083b6790d Revert "app: GimpContainerEntry's text is red when not a valid item."
Somehow breaks the completion popup.

This reverts commit 202c8ed762.
2013-04-29 22:17:18 +09:00
Jehan
202c8ed762 app: GimpContainerEntry's text is red when not a valid item.
If the selected item in a GimpContainerEntry is invalid, or else when the entry
is being updated, the text shows in red.
(cherry picked from commit 64fe3af1a9)
2013-04-29 08:48:29 +09:00
Michael Natterer
e1645fe427 Bug 699100 - Move tool: space-bar inhibits function of Move tool
Don't try to switch to the move tool if the move tool is already active.
Also never bail out early from gimp_display_shell_space_pressed() so we
don't end up in an inconsistent state.
(cherry picked from commit 87584d2f82)
2013-04-28 15:31:30 +02:00
Rafael Ferreira
4d56fbc16b Updated Brazilian Portuguese translation 2013-04-28 09:10:30 -03:00
Sven Claussner
54b28a5b60 Bug 692956 - Bring back 'Color from gradient' option to Paint tools
This patch adds a Dynamic for the 'Color From Gradient' option
and three Paint tool presets (Airbrush, Paintbrush, Pencil), which
use this preset.

	new file:   data/dynamics/Color-From-Gradient.gdyn
	new file:   data/tool-presets/Paint/Airbrush-Color-From-Gradient.gtp
	new file:   data/tool-presets/Paint/Paintbrush-Color-From-Gradient.gtp
	new file:   data/tool-presets/Paint/Pencil-Color-From-Gradient.gtp
	modified:   data/dynamics/Makefile.am
	modified:   data/tool-presets/Paint/Makefile.am
 	modified:   AUTHORS
 	modified:   authors.xml
2013-04-24 19:29:03 +02:00
Enrico Nicoletto
15c79a22ca Updated Brazilian Portuguese translation 2013-04-24 00:40:30 -03:00
Michael Natterer
9069bd8d79 Bug 688348 - Layer tab and Images tab: not updated on dropping...
...one image onto another

gimp_dock_window_display_changed(): make sure the "auto-follow-active"
logic works both ways: when the active image or display is changed in
a dockable, update the global context. Fixes multi-window mode.

gimp_context_real_set_display(): make sure a context's display and
image are always in a consistent state and never have a display that
is not display->image: when display is the same as context->display,
check that the context's image matches display->image, so that after a
gimp_context_set_display(), the context is consistent in all
cases. Fixes single-window mode.
(cherry picked from commit bacc9c9635)
2013-04-23 21:09:40 +02:00
Michael Natterer
4cd97c8cf7 app: make gimp_dock_window_constructed() more readable
by adding a local "factory_context" variable instead of calling
gimp_dialog_factory_get_context (dock_window->p->dialog_factory)
multiple times.
(cherry picked from commit 076f375e78)

This is not a bugfix, just to seamlessly pick the next commit...
2013-04-23 21:09:04 +02:00
Mikael Magnusson
900cc4108b app: forgot to invert the matrix in corrective mode when transforming the selection. 2013-04-23 17:17:08 +02:00
Michael Natterer
380437e65e app: make GimpContainerEntry robust against reordered parent class destruction
So it will not warn on GTK+ 3.x. One less patch to do in gtk3-port.
(cherry picked from commit e746fa51da)
2013-04-21 21:49:50 +02:00
Michael Natterer
019eb59111 Bug 697530 - zoom during mouse-pan focuses on wrong location
Block all key events while middle-mouse panning, to prevent
accelerators from being invoked.
(cherry picked from commit 3643551280)
2013-04-21 20:02:01 +02:00
Massimo Valentini
ca52016116 Bug 698426: ALL text disappears when changing font ...
of selected text in on-canvas editor

It is necessary to escape font names containing '&'
2013-04-21 17:59:53 +02:00
Michael Natterer
839734463a Bug 694417 - GIMP Segmentation Faults (Segfault, Crash) after Changing Color...
Don't pass a NULL pointer to gimp_text_buffer_get_font_tag() because
it is dereferenced in a call to strcmp().

gimp_context_get_font_name() returns NULL when the selected text
includes spans with different fonts. Add the same special handling for
spans with inconsistent sizes too, and add comments that we should
have the same for the color.

Original patch from Massimo Valentini.
(cherry picked from commit 804313bbec)
2013-04-21 17:54:32 +02:00
Michael Henning
4055ccbe9c app: fix broken build on windows due to not #including windows.h
This was broken after 7392679be9
The corresponding commit on master did not break the build because
windows.h is already included there.
2013-04-20 22:19:12 -04:00
Nils Philippsen
37757e4e8d app: let the tag popup own its tag objects
This should fix crashes in which tag objects got accessed after they
were disposed, because they still were stored with the popup object.
(cherry picked from commit b109e05806)
2013-04-16 11:36:57 +02:00
Mukund Sivaraman
e768d4fa8d imagemap: Rebuild parsers (after .y update) 2013-04-11 20:59:22 +05:30
Mukund Sivaraman
03dfb95f13 imagemap: Don't use strcpy() in unescape_text() (#649172)
strcpy() doesn't like overlapping strings and this causes other failures
in this unescaping code.

Also cleanup the code to follow our coding style.
(cherry picked from commit db95e20b0b)
2013-04-11 14:16:15 +05:30
Martin Husemann
95a9172bd5 imagemap: Unescape simple xml encodings when reading csim format image maps (GB#649172)
(cherry picked from commit bc8a6123c7)
2013-04-11 14:16:08 +05:30
Michael Natterer
3aaa69642e app: allow to pass NULL to gimp_window_set_primary_focus_widget()
(cherry picked from commit 754e4eb919)
2013-04-10 19:31:10 +02:00
Michael Natterer
53d083c844 Bug 675549 - image region does not have focus unless clicked on
We cannot simply randomy move the focus from e.g. a text entry back to
the canvas. Instead introduce global handling of "Escape" and a
"primary_focus_widget" that is always set the the image window's
active canvas. When Escape is pressed, move the focus to that primary
focus widget, or beep if it is already there. Text widgets still get
the key events before that logic and can consume the Escape.
(cherry picked from commit 5880685472)
2013-04-09 15:48:12 +02:00
Téo Mazars
38d8312fde Bug 695418 - Unsharp mask crashes for large radii
Make sure we are working on the image range
(cherry picked from commit 35cc644765)
2013-04-08 18:57:08 +02:00
Милош Поповић
5f4449e956 Updated Serbian Translation 2013-04-08 17:02:24 +02:00
Dimitris Spingos
6d4fd657ff Updated Greek translation 2013-04-08 10:32:33 +03:00
Martin Srebotnjak
0c060b3296 Updated Slovenian translation 2013-04-04 21:04:03 +02:00
Pedro Gimeno Fortea
fb38e0a5f9 Bug 696958 - In-image preview in Transform tools is off by one screen pixel
Simplify the loops without any significant loss in performance, separating
the positive and negative X directions to treat each correctly. Fixes this
bug. (cherry-picked from commit faf2217811)
2013-04-02 17:32:15 +02:00
Pedro Gimeno Fortea
e12243e94e app: Two mostly cosmetic changes
Use a temporary that is less expensive to refer to. Don't loop more
than necessary when comparing pairs. (Cherry-picked from master's
commit c83e7790bf)
2013-04-02 17:12:21 +02:00
Téo Mazars
bc1aad3c23 Bug 683713 - Align visible layers does not work when layers ...
This is a complete rework of the plug-in, the behaviour remains
unchanged.

The implementation spreads all visible layers into one contiguous
array, then applies a simplified rework of the legacy algorithm.
(cherry picked from commit 65d34b7b27)
2013-03-30 16:06:04 +01:00
Petr Kubiznak
7392679be9 Bug 593167 - Support Windows in gimp_get_default_unit()
Function gimp_get_default_unit ported for Windows using standard GetLocaleInfo() function (from windows.h).
(cherry picked from commit 194ef70d74)
2013-03-30 10:22:07 -04:00
Michael Natterer
234e269bc7 tools: increase buffer size in gimptool from 1000 to 4096
(cherry picked from commit fd34fee7f5)
2013-03-27 22:58:53 +01:00
Michael Natterer
e3a524e435 Bug 622054 - Levels Tool gray point picker causes lockup
Bail out in gimp_levels_config_adjust_by_colors() if pure
back or white was picked as gray (gamma).
(cherry picked from commit c865d8f141)
2013-03-27 22:30:25 +01:00
Téo Mazars
333b05be02 Bug 656522 - Scaled Image Rounds Up To Nearest Pixel
Prevent gimp_coordinates_callback () to be called recursively
when x and y are chained.

One call puts all values in a consistent state, a recusive call can
cause side effects (calculations with rounded values)
(cherry picked from commit 24a2113170)
2013-03-27 01:05:29 +01:00
Michael Natterer
c1502c6ff7 Bug 692668 - Browse For Patterns
Increase the max size of the clipboard brush and pattern to 2048x2048
pixels. Still arbitrary but much better.
(cherry picked from commit 8bc4f008e7)
2013-03-26 23:58:22 +01:00
Michael Natterer
9594668e86 Bug 692939 - Zealous crop does nothing
Treat completely transparent pixels as equal, ignoring the hidden
color information.
(cherry picked from commit 720d8fa77a)
2013-03-26 23:40:46 +01:00
Daniel Mustieles
b4ab8184b9 Updated Spanish translation 2013-03-25 12:33:59 +01:00
Christian Kirbach
829113a348 Updated German translation 2013-03-25 11:03:32 +01:00
Piotr Drąg
fc7bdc3dfc Updated Polish translation 2013-03-24 20:46:51 +01:00
Michael Natterer
1e9ef3ac4c Bug 694585 - Export directly to remote ftp completes but reports failed
Fix handling of save errors in file-uri in two ways:

- don't try to check if saving to a directly mounted file succeeded,
  the mount (e.g. via FUSE) might allow writing, but not stat()ing.
  Instead, rely on the return value of gimp_file_save().

- for non-mounted files, provide a separate error message for the case
  where the temporary file contains nothing, which is IMO useless
  paranoia, but the check was probably added for a reason, so keep
  it around.
(cherry picked from commit 7f31929bee)
2013-03-24 18:47:34 +01:00
Daniel Winzen
37feaa106e Updated German translation 2013-03-24 14:27:05 +01:00
Christian Kirbach
68e893c099 Updated German translation 2013-03-24 10:30:13 +01:00
Téo Mazars
c9299082e7 Bug 641951 - Weird spacing with flat brushes
Take brush orientation into account when computing distances in the
coordinate space of the brush.
(cherry picked from commit afa57a507c)
2013-03-23 18:24:34 +01:00
Michael Natterer
2893b1199c Bug 695980 - Dereferencing type-punned pointer compile warning
Use local variables to avoid type-punned pointer warning.
2013-03-23 00:04:51 +01:00
Nils Philippsen
061764f8b2 pagecurl: clean up generated header file again
(cherry picked from commit 82c3ef5f41)
2013-03-22 14:07:50 +01:00
Nils Philippsen
1b53d7cc61 pagecurl: fix build order for generated headers
don't distribute these headers either
(cherry picked from commit 968b3ffb43)
2013-03-22 14:07:50 +01:00
Michael Natterer
6dc727767b po: some perl magic to fix the license string in all translations 2013-03-22 00:05:11 +01:00
Michael Natterer
19176e0166 app: remove <> around the gnu.org URL in GIMP_LICENSE
because GtkAboutDialog interprets it as email address.
(cherry picked from commit 19d417a745)
2013-03-22 00:03:57 +01:00
Daniel Sabo
8e9c103f8a Set PYTHONHOME in the OSX launcher script 2013-03-21 03:40:26 -07:00
Michael Natterer
15c5a9db32 Bug 696240 - Changing Gradient From Script-Fu Drop Down Causes GIMP to Crash
gimp_gradient_select_run_callback(): Don't free the color values array
twice.
(cherry picked from commit ed2849cd52)
2013-03-21 01:52:24 +01:00
Javier Silva Ortiz
de56ec5e6e Updated Spanish translation 2013-03-19 17:00:12 +01:00
Dimitris Spingos
f3f2fd0b18 Updated Greek translation 2013-03-19 12:06:15 +02:00