su-v
97d6629d66
Bug 731446 - Files opened twice via command line
...
Prevent Cocoa command line argument parsing for files, using
same fix as in Gedit commit 86e7dd7b72fc35c6d9b19a75bbc715aee19304b4
2014-09-06 01:06:43 +02:00
Michael Natterer
53f4dda3b4
Bug 735894 - Option to display the image ICC profile...
...
...on the title bar and status bar
Implement %o for the title and status format strings, which expands
to the image profile's label.
2014-09-03 22:20:36 +02:00
Mukund Sivaraman
1dc873b860
app: Fix return types
2014-09-03 09:09:00 +05:30
Michael Henning
36d719c986
app: In GimpBlendTool, don't start the draw tool too early.
...
Also simplify some related logic and rename related functions to
be clearer.
2014-09-02 18:57:14 -04:00
Michael Natterer
bda1cd049d
Bug 735516 - Crop to content fails
...
Return a new enum GimpAutoShrink { SHRINK, EMPTY, UNSHRINKABLE } from
gimp_pickable_auto_shrink() because a simply boolean FALSE doesn't
distinguish between "not further shrinkable" and "no content". Change
the callers accordingly add a special "already cropped" message where
we only had a "no content" message before.
2014-08-31 17:41:54 +02:00
Hartmut Kuhse
50463d8d5a
app: erroneously dereferencing paint_options
...
fixing commit 4d6640ff79
2014-08-31 15:27:12 +02:00
Michael Natterer
1326cc5562
pdb: fix uninitialized variable warning in the convmatrix compat wrapper
2014-08-29 21:37:17 +02:00
Michael Natterer
de1b416c9f
app: forgot a s/const gchar*/GFile*/ in tests.[ch]
2014-08-29 21:36:31 +02:00
Michael Natterer
b6eb88dbf9
Bug 735513 - Fuzzy select (magic wand) freeze w/select transparent areas
...
gimp_pickable_contiguous_region_by_seed(): don't call
find_contiguous_region() with start coords outside the buffer, or it
will run into an infinite loop.
2014-08-27 21:12:46 +02:00
Michael Natterer
f38d3a1672
app: don't try to draw a NULL boundary in gimp_region_select_tool_draw()
2014-08-27 21:10:55 +02:00
Mukund Sivaraman
a805f8426a
app: Use gint64 for dirty_time
2014-08-25 19:55:29 +05:30
Jehan
da4247d87c
app: interpreter arguments for plugins not returned.
...
When a plugin file's shebang would start with "/usr/bin/env", the
interpreter's arguments were not returned by resolve_sh_bang().
2014-08-19 15:04:30 +02:00
Jehan
23245d2788
app: set win32 only code between #ifdef G_OS_WIN32
...
PATHEXT environment variable to determine whether a file is executable
or not is a Windows-only concept.
2014-08-19 02:12:56 +02:00
Jehan
cd0b2f61c0
app: g_file_new_for_uri() return object not freed with g_object_unref().
...
Non-freed GFile object when saving or exporting the first time, i.e.
with default extensions.
2014-08-19 01:38:13 +02:00
Michael Natterer
a0a7e713b4
Bug 706275 - "View/Snap to active path" doesn't snap to layer center...
...
...with the Move tool
Add the missing code to snap to the rectangle's center in
gimp_image_snap_rectangle().
2014-08-17 22:12:44 +02:00
Jehan
c4dbb34199
Fix make distcheck.
...
Use srcdir/abs_srcdir in Makefile.am for dealing with VPATH builds.
2014-08-16 18:59:30 +02:00
Mikael Magnusson
16637900b6
app: initialize variable
2014-08-16 02:54:57 +02:00
Mikael Magnusson
45a9519cec
app: Don't do integer division before saving to gdouble, remove stray ;
2014-08-16 02:38:55 +02:00
Mikael Magnusson
541de6ed9c
plug-ins, pdb: Add missing break statements to switch
2014-08-16 02:25:49 +02:00
Simon Budig
a102690145
remove unnecessary if()
...
Spotted by Andrey Karpov using static code analysis:
http://www.viva64.com/en/b/0273/
2014-08-16 00:37:14 +02:00
Simon Budig
e0e29889b0
fix bogus use of g_strlcpy
...
Spotted by Andrey Karpov using static code analysis:
http://www.viva64.com/en/b/0273/
2014-08-16 00:37:14 +02:00
Simon Budig
56fa168ec3
fix parser for plugin image types
...
Spotted by Andrey Karpov using static code analysis:
http://www.viva64.com/en/b/0273/
2014-08-16 00:37:14 +02:00
Simon Budig
40c06ab685
fix some copy&paste errors
...
Spotted by Andrey Karpov using static code analysis:
http://www.viva64.com/en/b/0273/
2014-08-16 00:37:13 +02:00
Simon Budig
99abc566d4
fix some precedence errors
...
Spotted by Andrey Karpov using static code analysis:
http://www.viva64.com/en/b/0273/
2014-08-16 00:37:13 +02:00
Simon Budig
9a8d2f577e
fix some pieces of nonsensical code
...
Spotted by Andrey Karpov using static code analysis:
http://www.viva64.com/en/b/0273/
2014-08-16 00:37:13 +02:00
Simon Budig
9a245989c0
fix bogus checks against unsigned variables.
...
Spotted by Andrey Karpov using static code analysis:
http://www.viva64.com/en/b/0273/
2014-08-16 00:37:13 +02:00
Jehan
a83ba26f42
tests: make warnings non fatal for tests on win32.
...
g_test_init() makes any warning message fatale by default. While it
makes sense for the main OS that we build on (Linux), I believe that
our tests on Windows are more useful when they finish, even with some
warnings, than stopping because some stupid font warning would occur
(case I encountered, did not know the solution of, and is not really
relevant to the rest of the test).
2014-08-15 21:26:26 +00:00
Jehan
2b64efc11d
tests: gimp_test_utils_synthesize_key_event() not working for win32.
...
gdk_test_simulate_key() has currently no win32 implementation.
Add this implementation in our code until a patch to GTK+ for this is
merged. This fixes 2 `make check` tests for win32.
2014-08-15 21:23:02 +00:00
Jehan
b1fc539f6c
tests: build the test icon theme for all platforms.
...
In particular, we were not building these for win32, which has no
symbolic link concept. So let's use $(LN_S) defined by autoconf for this
purpose, as it will copy files for platforms without ln support.
Moreover this way, we don't create one such folder for each and every
test run and fill up the tmp directory with countless directories, that
we never clean up.
On Win32, this fixes 3 tests which were failing because of the missing
icons.
2014-08-15 21:21:41 +00:00
Michael Natterer
b663b8058f
Bug 734705 - v2.9.1 crashes when scaling an image in indexed colors mode
...
Use gimp_image_get_format() instead of gimp_babl_format() in
gimp_drawable_real_estimate_memsize() because the latter can't handle
indexed formats and returns NULL.
2014-08-15 09:23:02 +02:00
Jehan
b8aabcac5c
Do not use g_io_channel_unix_new() for the win32 platforms.
...
It is advised to use the more accurate g_io_channel_win32_new_fd() or
g_io_channel_win32_new_socket() because GLib can't differentiate between
file descriptors and sockets on Windows, which outputs a warning when
there is ambiguity.
2014-08-12 23:56:10 +00:00
Michael Natterer
4d15f219a7
app: don't use GLIB_CHECK_VERSION (2, 39, 90) for win32 argv parsing
...
Instead, use the new APIs unconditionally.
2014-08-12 15:37:46 +02:00
Michael Natterer
dae366bb6e
configure.ac, *: require GLib 2.40.0
...
Remove gimp_output_stream_[v]printf() and use the new functions from
GLib instead. Use memmove() instead of the deprecated g_memmove().
2014-08-12 15:30:19 +02:00
Michael Natterer
980ba7f85a
app: move memsize functions into their own files gimp-memsize.[ch]
2014-08-12 13:57:57 +02:00
Michael Natterer
cafc316a47
app: port gimp_interpreter_db_resolve() to GIO
2014-08-12 13:15:44 +02:00
Michael Natterer
26f45822e7
app: port gimpconfig-dump.c to GIO
2014-08-12 12:59:12 +02:00
Jehan
66ea9e7ebd
app: double free when plugin fails to execute.
2014-08-10 01:26:09 +00:00
Michael Henning
59dfa2e6e6
app: If the user makes a new gradient, commit the old one
2014-08-04 17:20:58 -04:00
Michael Henning
41e2a01976
app: Tweak the blend tool UI for shapebursts
2014-08-04 12:32:45 -04:00
Michael Natterer
9d54a94f53
app: port plug-in loading to GFileEnumerator
2014-08-04 02:39:52 +02:00
Michael Natterer
9bb3aee163
app: add gimp_file_is_executable() to gimp-utils.[ch]
...
including PATHEXT magic for windows.
2014-08-04 02:38:24 +02:00
Michael Natterer
50568ae258
app: add gegl:distance-transform to Filters->Generic as "Distance Map"
2014-08-03 21:34:32 +02:00
Michael Natterer
6209b1f571
libgimpbase, app: move gimp_file_has_extension() to libgimpbase
...
and use it in GimpModuleDB.
2014-08-03 20:47:37 +02:00
Simon Budig
8af3fec689
app: use the new distance-transform operation in the blend tool
2014-08-03 20:12:01 +02:00
Michael Natterer
a0b9e5c702
libgimpmodule, app: port GimpModuleDB to GFileEnumerator
...
this implies passing the UTF-8 encoded raw module path from gimprc to
gimp_module_db_load() and gimp_module_db_refresh(), which is strictly
speaking an API break, but I seriously doubt that anyone but GIMP is
actually using libgimpmodule.
2014-08-03 18:30:02 +02:00
Michael Natterer
da26597467
app: add gimp_file_has_extension() and use it in GimpDataFactory
2014-08-02 23:29:00 +02:00
Michael Natterer
81aaa1decd
app: use g_str_has_suffix() in file_utils_file_get_ext()
...
g_strrstr() is wrong for checking for suffixes.
2014-08-02 15:55:32 +02:00
Michael Natterer
ab2afa0c1f
app: don't check for a writable dir for each loaded GimpData
...
Instead, do the check once for each element of the data path, and pass
the result to the load functions.
2014-08-02 15:09:33 +02:00
Michael Natterer
2b1735f784
app: move gimp_file_compare() to gimp-utils.[ch]
...
It's a GCompareFunc to be used for finding GFiles in lists.
2014-08-02 15:07:26 +02:00
Michael Natterer
6821eb298c
app: port GimpDataFactory file loading to GFileEnumerator
...
Also slightly change the semantics of gimp_data_set_folder_tags()
to be less complicated.
2014-08-01 20:30:45 +02:00