Commit graph

1512 commits

Author SHA1 Message Date
Jehan
80d11a46a8 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.
(cherry picked from commit 97d14ebda3)
2013-07-06 00:00:16 +09:00
Michael Natterer
4b957cf404 Bug 701594 - gimp-image-select-item does not recognize path transformations
pdb: Need to gimp_vectors_freeze()/thaw() around stroke modifications
so the vector's preview and the cached GimpBezierDesc are invalidated.
(cherry picked from commit 64887fe06c)
2013-06-04 16:51:20 +02: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
Jehan
2b56b89376 Bug 694201 - gimptool: update to follow new user directory scheme. 2013-02-20 04:10:59 +09:00
Michael Natterer
209116fcad Bug 678732 - gimp-image-insert-layer inserts into a wrong place...
Fix the docs, the function does what it's supposed to do.  Passing
"0, -1" actually means "insert where the ui would insert" and is
supposed to be used when e.g. scripts create layers.
(cherry picked from commit e620eb8cef)
2012-08-04 02:21:59 +02:00
Michael Natterer
0a450f8e22 Bug 680531 - Function gimp-context-get-brush-size takes size argument...
The context getters need PDB @outargs, not @inargs. This "API change"
is OK in stable because the API was totally unusable before this fix.
(cherry picked from commit 01dffdc276)
2012-07-26 16:30:31 +02:00
Michael Natterer
f4ce57aa97 Bug 676566 - Window title becomes "Untitled" after exporting without saving
Fix this and other issues more globally by moving the logic that
formats the image's display name into the GimpImage object, and return
the properly formatted name, e.g. "Foo.xcf", or "[Foo] (imported)"
from gimp_image_get_display_name().

Also add gimp_image_get_display_path() which returns the full path
instead. Use the two functions for formatting the image title, and
apply various other fixes that make sure the UI always uses the same
string to identify the image.

Call gimp_object_name_changed() whenever the save/export status
changes, so the image's cached display name and path get cleared.

(cherry picked from commit 220b28677b)
2012-07-17 22:59:09 +02:00
Mikael Magnusson
0025f9f354 fix typo "equalizee" 2012-04-12 01:28:30 +02:00
Michael Natterer
f2f1eab753 app: add "ERROR" to the values of enum GimpPdbErrorCode
so they are now GIMP_PDB_ERROR_FOO instead of just GIMP_PDB_FOO,
because it was just too confusing wrt enum GimpPdbStatusType.
2012-03-05 19:36:59 +01:00
Michael Natterer
b952f80be0 Bug 658477 - add PDB support for more paint and ink options
Apply heavily modified patch from Es Swartz which adds PDB API for
brush size, angle and aspect ratio, as well as a full interface for
ink. Changed to patch to add all procedures to the "context" group
instead of creating new PDB groups, properly use the new
GimpPDBContext APIs for paint options, and did some general cleanup.
(Warning, completely untested).
2012-03-01 12:58:26 +01:00
Massimo Valentini
39368a410d plugged memory leaks 2012-02-07 17:32:02 +01:00
Michael Natterer
44752a0f09 pdbgen: make it work with a read-only srcdir
Pass srcdir *and* builddir to all pdbgen scripts, and generate all
temp files in $builddir. They get copied for $srcdir only if they have
actually changed, which should never happen on distcheck.
2011-11-06 17:33:20 +01:00
Michael Natterer
d1346d5eb4 pdb: distribute enums.pl
It's in git, so it should also be in the tarball. Fixed distcheck
after we have maintainer mode on by default (also in tarballs).
2011-11-01 17:49:00 +01:00
Michael Natterer
634cf6d620 pdb: add gimp-dynamics-refresh and gimp-dynamics-get-list 2011-10-31 22:22:19 +01:00
Michael Natterer
6ee7b22153 pdb: use the newly added GimpPDBContext paint options for painting
so all paint context settings take part in the push/pop logic.
2011-10-31 22:08:53 +01:00
Michael Natterer
01344f811d pdb: add dynamics accessors to the context procedures 2011-10-31 21:08:12 +01:00
Michael Natterer
94d2ee7bcb pdb: restore the ability to reset the dither matrix to default 2011-10-08 20:28:38 +02:00
Michael Natterer
02038d5dd3 pdb: set_dither_matrix(): check that the matrix array has the right size
Fixes a way to easily crash GIMP.
2011-10-08 16:40:44 +02:00
Mukund Sivaraman
42756159b5 pdb: Mark more pdb args as dead, and regen code 2011-10-08 19:25:32 +05:30
Mukund Sivaraman
61660b33d0 pdb: Mark various pdb args as dead, and regen code 2011-10-08 19:13:03 +05:30
Mukund Sivaraman
6469290439 pdb: Add functionality to drop codegen for dead args 2011-10-08 19:02:09 +05:30
Mukund Sivaraman
2ea49c594c gimptool: Use GIMP_PLUGIN_VERSION instead of GIMP_API_VERSION for scripts dir 2011-10-04 18:29:28 +05:30
Mukund Sivaraman
eb11a466ac gimptool: Replace path generation code with glib functions 2011-10-04 18:28:52 +05:30
Mukund Sivaraman
4e056e79d2 gimptool: Fix system script dir path 2011-10-04 18:11:29 +05:30
Michael Natterer
e071bfa3b6 Bug 656716 - Have a procedure to get a layer from its name
Add gimp_image_get_[layer|channel|vectors]_by_name().
2011-09-24 16:35:59 +02:00
Martin Nordholts
b74c7d0ff6 Bug 656471 - GIMP crashes when File > Properties 2011-08-13 23:03:31 +02:00
Eric Grivel
da37e9ff3e Bug 596410 - gimp-image-get-filename returns NULL for imported files
Make gimp_image_get_uri() and gimp_image_get_filename() behave as in
the GIMP 2.6 days. Add new functions gimp_image_get_xcf_uri(),
gimp_image_get_exported_uri() and gimp_image_get_imported_uri().
2011-08-12 21:15:16 +02:00
Martin Nordholts
0f58d779c1 pdb: Untabify image.pdb 2011-08-12 20:18:45 +02:00
Michael Natterer
2356aad3da Remove gimp-remote for good, it has been disabled since 2008 2011-07-30 18:59:39 +02:00
Nils Philippsen
60c94c69b9 gimp-remote: don't use deprecated gdk_window_foreign_new_for_display()
use gdk_x11_window_foreign_new_for_display() instead
2011-05-03 12:36:41 +02:00
Nils Philippsen
62e3e88ea1 gimp-remote: include gimpbase.h rather than gimpversion.h
this is a followup to commit 844df2b4df
2011-05-03 12:35:34 +02:00
Michael Natterer
856c89a845 libgimp: add guards that #error out if individual files are included 2011-04-28 19:59:52 +02:00
Michael Natterer
cc47b2a600 libgimpwidgets/color: move the cairo color utility functions to libgimpcolor
Add CAIRO_CFLAGS to a lot of Makefiles to make this possible, and
because they pull in cairo via the libgimp headers.
2011-04-28 15:50:39 +02:00
Michael Natterer
8364672b11 tools: #include "libgimpbase/gimpbase.h" and not just gimpversion.h 2011-04-28 12:47:38 +02:00
Kevin Cozens
139fb874a3 Fixed grammatical error in help text for gimp-context-set-feather-radius 2011-04-16 15:00:29 -04:00
Kevin Cozens
bf1eca22a6 Added PDB procedure gimp-context-set-defaults to reset context settings 2011-04-07 22:43:37 -04:00
Kevin Cozens
0d617dabea Fixed a typo (prodecure -> procedure) 2011-04-07 22:43:37 -04:00
Michael Natterer
9424d42d36 pdb: apply recent fixes to the deprecated transform procedures
Don't transform the tiles of group layers, use the item transform API
instead. Go the same code path if there is no selection.
2011-03-25 22:35:46 +01:00
Michael Natterer
1a359a138d pdb: don't recommend deprecated replacement procedures for deprecated procedures 2011-03-25 22:03:14 +01:00
Michael Natterer
4d7dbe233d pdb: do the same optimization as in the transform tool in the commit below 2011-03-25 21:57:56 +01:00
Alexia Death
ce606d9561 app: Fix a dynamics leak from new pdb fix 2011-03-19 22:48:17 +02:00
Alexia Death
5d5430e110 app: Fix pdb size and dynamics brush stuff
[ Mikael: deduplicated brush size setting and fixed some whitespace ]
2011-03-19 18:39:02 +01:00
Michael Natterer
bb80dfdc8e Revert "app: Fix pdb properly this time"
This reverts commit 1a8edd7d1d.
2011-03-19 16:42:53 +01:00
Alexia Death
1a8edd7d1d app: Fix pdb properly this time 2011-03-19 17:12:14 +02:00
Michael Natterer
e24795f167 Bug 600554 - Implement layer group transforms
Same fix for the PDB: if the item to transform is a group layer, call
gimp_item_transform()/rotate()/... directly instead of going through
the wrong cut/transform/paste code path.
2011-03-17 22:00:38 +01:00
Michael Natterer
bb6436cb44 libgimp: deprecate and rename the global pararasite functions
just as it was done for items and images. Remove the "parasite" PDB
group completely.
2011-03-08 14:31:04 +01:00
Michael Natterer
7fae2b2d40 libgimp: rename the "misc" pdb group to "gimp"
So we finally have a proper place for PDB procedures that don't act on
an object like image, item, ...
2011-03-08 13:58:56 +01:00
Michael Natterer
95e498e0c0 libgimp: rename gimp_pdb.h to gimp_pdb_headers.h 2011-03-08 13:42:05 +01:00
Michael Natterer
87646e9ace libgimp: deprecate and rename the image parasite functions
in exactly the way the drawable functios were turned into item ones.
2011-03-08 13:19:21 +01:00
Michael Natterer
5b09e61c46 app: move all GimpTemplate members to private 2011-03-02 10:16:43 +01:00