Commit Graph

33418 Commits

Author SHA1 Message Date
Fran Diéguez 60ede8133d [l10n] Fix little issues in Galician translations 2013-07-23 00:36:20 +02:00
Michael Henning 3712a8df3e app: Use BUILT_SOURCES to make sure generated files are created first. 2013-07-21 21:26:17 -04:00
Michael Henning 175835fa2f app: #include <locale.h> where setlocale () is used. 2013-07-21 21:12:41 -04:00
Jehan 816f651b82 Bug 675436 - Tabs always present when docks shown and absent when docks hidden
The main change is that even with only 1 image in single window mode,
there is now a tab.
Also whatever the number of images when you hide docks with Tab, no tabs
are shown.
2013-07-22 01:19:32 +09:00
Téo Mazars 092f239dfe plugins: port gradient-map.c to gegl and improve it
- Takes 2048 samples instead of 256 to handle properly large palettes.
  It gives also better results with gradients.
- linearly interpolate values between two samples when
  mapping with a gradient, to handle properly float precision.
2013-07-21 18:06:24 +02:00
Jehan 3aaa0a956d Bug 704238 - Notify through status bar that warp effect is committed with ENTER 2013-07-21 08:46:13 +09:00
Michael Natterer de8dc1c96a app: simplify config access in GimpImageWindow
We have a "gimp" member, no need to go via factory->context->gimp.
2013-07-20 15:25:33 +02:00
Jehan 0e93e181a2 app: locales without ISO-639-1 codes should not be ignored
Some languages have no 2-letter ISO-639-1. This is the case in particular
for 3 languages we have translations for: ast (Asturian), csb (Kashubian)
and nds (Low German), which have only 3-letter ISO-639-2/3 codes.
They were not visible in the list of languages in the Preferences dialog
until now.
2013-07-20 15:08:49 +09:00
Téo Mazars 409fa79ec2 plugins: follow alien-map's parameter name change 2013-07-20 01:08:39 +02:00
Téo Mazars 95c235f81f plugins: Add compat wrappers for alien-map
And remove the old plugin
2013-07-19 22:32:10 +02:00
Jehan 2370670396 Bug 704510 - GIMP segfaults on OSX.
Forgot a setenv() with possible a NULL value.
2013-07-19 20:49:40 +09:00
Jehan aa67bec9f0 Bug 704510 - GIMP segfaults on OSX.
setenv() does not behave well on some systems, in particular OSX (and
probably some BSDs), when the set value is NULL. In this case, let's
unsetenv() the environment variable instead.
2013-07-19 11:39:50 +09:00
Michael Natterer d682135d7a app: add gegl:alien-map to Colors -> Map 2013-07-18 22:53:06 +02:00
Téo Mazars 48c18ce784 plugins: port border-average.c to GEGL 2013-07-15 22:48:41 +02:00
Piotr Drąg 464173ad53 Updated Polish translation 2013-07-15 22:37:45 +02:00
Michael Natterer 5b39be5605 Bug 679195 - Foreground Select Tool Mask Inverted
gimp_display_shell_render(): invert the mask so it masks what is *not*
the foreground object.
2013-07-15 01:57:00 +02:00
Michael Natterer d1795ac204 Bug 700193 - undoing paint tools doesn't update last_coords properly
paint_core->start_coords is in fact the last stroke's endpoint and
only used for storing it in GimpPaintCoreUndo, so the last endpoint
can be resotred for straight-line painting after an undo. Make the
code actually doing that.
2013-07-15 00:41:43 +02:00
Michael Natterer 37372555e5 Bug 704118 - crash on invalid number of PLTE entries
Make sure an indexed image always has a colormap. This was the case
before, except one could set a NULL colormap via the PDB.

Add gimp_image_unset_colormap(), and make gimp_image_set_colormap()
never set the colormap to NULL, even if NULL is passed. Change the
only places where actual unsetting makes sense to use unset().

Make some GUI places deal gracefully with palettes/colormaps with zero
entries.
2013-07-14 22:25:44 +02:00
Michael Natterer 89692ef065 app: fix comment in xcf_load_image_props() 2013-07-14 22:01:21 +02:00
Michael Natterer 2cd25ec863 modules: turn GimpColorWheel into a proper dynamically loaded type
So it works with all GObject versions, until we determine how useful
it is generally, and what API it should get for possible
libgimpwidgets inclusion.
2013-07-14 13:41:29 +02:00
Michael Natterer a2334b0b15 Bug 703692 - Unable to Resize Large Left Dock Area
Small fix for the last commit: set a silly small initial size request
on the wrap_box so it doesn't initially request too much and breaks
dock layout deserialization.
2013-07-14 13:27:57 +02:00
Christian Kirbach a0f98b50d5 Updated German translation 2013-07-14 11:56:31 +02:00
Téo Mazars 92e9c0dc4b gfig: Remove unneeded and deprecated drawable accessors. 2013-07-13 19:18:25 +02:00
Michael Natterer 6a5e37b68d Bug 703692 - Unable to Resize Large Left Dock Area
gimp_container_grid_view_viewport_resized(): set the wrap_box'
required width to just one cell_width, not cell_width * columns. This
way it can shrink also when attached to a toolbox dock. It remains
unclear why it could nicely shrink in all other dock columns.
2013-07-13 18:50:55 +02:00
Jehan 7e513faa50 Bug 703787 - Crash during switch from multi to single window mode
Shells can now travel from one window to another. Canvas position code
should therefore not keep track of the image window for a specific shell
but must use whatever is the current window for this shell (even though
it may be a different one before and after the size-allocate).
This also partly fixes some positioning issue during mode switch.
2013-07-13 09:15:21 +09:00
Michael Natterer 13614f6182 app: change GimpData:mtime from time_t to gint64 2013-07-12 16:33:12 +02:00
Michael Natterer 767a5a3217 Bug 703113 - Plug-ins are queried on every launch
Port gimp_datafiles_read_directories() to GIO which seems to get
its stat() calls right on all platforms.
2013-07-12 15:18:38 +02:00
Michael Natterer 4ab02ea2dd app: store plug-in mtime as gint64 instead of time_t
This was an attempt to fix bug 703113 but didn't change anything,
however an explicit always-64 bit type is cleaner regardless, so here
it is.
2013-07-12 14:43:27 +02:00
Massimo Valentini 3cc923d5a5 Bug 703806: GIMP crashes when scaling an image
during an image rescale, while spinning the main-loop,
layer-groups preview generation used to start before their
layers were fully rescaled, so it tried to access tiles that
were not yet there
2013-07-09 19:41:52 +02:00
Daniel Mustieles 99691c74ea Updated Spanish translation 2013-07-09 16:55:09 +02:00
Jehan 8ef5fca062 app - call to keep the active shell in single window mode switch out of loop.
Small fix from commit 2697b29. This previous commit was working well, but
implied calling this method as many time as there are opened shells,
whereas once is enough.
2013-07-08 21:24:50 +09:00
Jehan 112fa53730 Bug 703736: when switching from multi to single window mode, tab order is lost. 2013-07-08 09:34:09 +09:00
Jehan 2697b29963 Bug 703738: when switching between multi and single window mode, keep the same active shell. 2013-07-07 23:52:38 +09:00
Téo Mazars 02fd481c7e plugins: make decompose.c's parasites consistants 2013-07-07 16:08:06 +02:00
Téo Mazars 409cb44e6f plugins: Port compose.c to gegl 2013-07-07 16:08:06 +02:00
Ville Sokk 9daf2b8443 app: remove flush parameter from write-buffer op in GimpApplicator 2013-07-06 21:24:12 +03:00
Téo Mazars dcbe7d7873 plugins: do not edit Makefile.am directly 2013-07-05 20:35:41 +02:00
Téo Mazars ec6720c897 plugins: add compatibility wrappers to motion-blur
and remove the old plugin.
2013-07-05 20:09:13 +02:00
Massimo Valentini 8a7d5c9d16 app: don't pass NULL to g_object_add_weak_pointer
opening many images from the command line used to print:

(gimp-2.9:): GLib-GObject-CRITICAL **: g_object_add_weak_pointer:
assertion 'G_IS_OBJECT (object)' failed

because only the first finds the empty display
2013-07-05 18:13:46 +02:00
Jehan 97d14ebda3 Bug 672100: gimptool returns wrong system plugin dir if libdir has been customized.
On UNIX platforms, use the actual libdir value, which has been set at compile time.
2013-07-05 23:46:54 +09:00
Jehan fc873cd6c3 Bug 576910: Show 'Language' setting languages in native language
Showing the current system locale between square brackets in the
"System Language" item was causing some issues on some systems (showing
some very weird and long value).
This was mostly a cosmetic change anyway with limited gain. Let's
just get rid of it. The main part of the feature (each language
displayed in itself) is still there.
2013-07-05 23:38:10 +09:00
Jehan ba9fbde288 Bug 679083: proper documentation for plug-in-autocrop-layer
The current documentation have users think the argument layer is going
to be cropped, whereas it actually only serves as a base for determining
cropping extents. The active layer is the one to be cropped.
Slightly more complete documentation explaining this.
2013-07-05 23:20:56 +09:00
Massimo Valentini 09682d62ae Bug 629941 - GIMP doesn't exit properly when quitting while loading images
GIMP's "exit" signal was emitted before the handler was connected.

Don't start loading command line images or batch processing before
app_exit_after_callback() is connected. Make sure we don't use
dangling main loop pointers or try to stop a non-running main loop.
2013-07-04 21:36:40 +02:00
Massimo Valentini 6c62eb2238 app: file_open_from_command_line(): don't access a dangling display pointer
Happens if GIMP is quit while the image is being loaded.
2013-07-04 21:07:20 +02:00
Jehan 4eecd9b4ac Bug 576910: small fix on "Show 'Language' setting languages in native language"
glib's g_getenv() doc says: "The returned string may be overwritten by
the next call to g_getenv(), g_setenv() or g_unsetenv()". And I do
g_setenv() calls just after, while I wish to keep the value intact.

As a consequence, even though the previous commit seemed to work just fine,
I duplicate the return value of g_getenv(), just to be on the safe side.
2013-07-03 20:38:42 +09:00
Jehan f6dcde1ee6 Bug 576910: Show 'Language' setting languages in native language
The trick works by temporarily resetting the current locale to localize
each language label in its own lang.
One exception is English that is equivalent to the "C" code, and we make
also some special exception for Chinese where there are very different
variant depending on the region.
I also ensure the "System Language" string is translated in whatever
language is the system actually set to.
2013-07-03 20:02:45 +09:00
Michael Natterer f885085bcf app: view_close_cmd_callback(): no need to check the shell for != NULL 2013-07-03 09:19:22 +02:00
Michael Natterer 027e34230e libgimpthumb: add GIO_LIBS also to gimp_thumbnail_list_LDADD 2013-07-01 19:06:12 +02:00
Yaron Shahrabani 42416cc28f Updated Hebrew translation. 2013-07-01 11:52:12 +03:00
Téo Mazars 385a6b60f3 plugins: finish the port of decompose.c
- Add all missing decompositions needed for compat
- There are still some noticeable differences with the old plugin
  (YCbCr mainly)
- decomposition of alpha is not coherent with gimp's current behaviour.
  It still needs to be discussed.
- clamping is only here for compat, but it's probably not really needed.
- Others decompositions can now easily be added.
- compose.c remains unported
2013-06-30 20:44:04 +02:00