Michael Natterer
e01189ca77
app: remove checks from stuff that now works on indexed layers
2012-05-02 17:46:04 +02:00
Michael Natterer
1780cfc1e7
app: remove the !seed_fill case from gimp_drawable_bucket_fill()
...
We use gimp_edit_fill() for that now. Also remove bucket fill's
_full() variant because it's unused now.
2012-05-02 17:46:01 +02:00
Michael Natterer
3ec245a991
app: add opacity and paint_mode to gimp_edit_fill[_full]()
...
and use it instead of bucket-fill in the non-seed-fill case.
2012-05-02 17:46:01 +02:00
Michael Natterer
88388467cc
app: move the layer mask show, edit, apply API from GimpLayerMask to GimpLayer
...
because it would require really evil hacks to honor these properties
in the gegl projection if they were on the mask, and because they
actually belong to the layer.
2012-05-02 17:45:56 +02:00
Michael Natterer
15957cb3c4
app: remove the legacy brightness-contrast code and use GEGL instead
...
it's reasonably fast now.
2012-05-02 17:45:53 +02:00
Michael Natterer
5d1474c17e
app: use GEGL to extract an image's component into a channel
...
Add gimp_image_get_component_format() for that purpose.
2012-05-02 17:45:53 +02:00
Michael Natterer
7c3a796dfc
app: added GimpPickable::get_buffer()
...
Add cached buffers to GimpProjection and GimpImageMap, and use
the new API where possible.
2012-05-02 17:45:50 +02:00
Michael Natterer
63bd108afb
app: always use GEGL to invert drawables
...
and remove the now useless gimpdrawable-invert.[ch].
2012-05-02 17:45:46 +02:00
Michael Natterer
6d3a8fe73d
app: rename gimp_drawable_apply_operation_with_config()
...
to gimp_drawable_apply_operation_by_name() and allow to pass
a NULL config.
2012-05-02 17:45:46 +02:00
Michael Natterer
0623c7f365
app: remove the pointless core wrappers for the below simplified color stuff
...
Instead, provide gimp_drawable_apply_operation_with_config() and call
that from the PDB wrappers directly.
2012-05-02 17:45:45 +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
Massimo Valentini
1658460523
app: don't g_assert_not_reached on GIMP_PDB_FAILED errors
...
calling in a script (gimp-file-load-layer 1 image "notexists.bmp")
used to crash GIMP with the following message:
**
Gimp-PDB:ERROR:gimpprocedure.c:491:gimp_procedure_get_return_values:
code should not be reached
gimp-2.7: terminated: Aborted
2012-03-05 18:36:03 +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
Michael Natterer
2414301799
Review the last few commits and apply some style fanaticism
...
some completely unrelated,
2012-02-07 20:36:55 +01:00
Massimo Valentini
39368a410d
plugged memory leaks
2012-02-07 17:32:02 +01:00
Michael Natterer
056e09a6cb
Remove the makefile.msc build system, it is unmaintained since 2008
2011-12-16 15:53:56 +01:00
Kevin Cozens
a85d21b075
Fixed typo in name text of PROP_SAMPLE_CRITERION enum.
2011-11-07 12:37:15 -05:00
Michael Natterer
15cf0e9659
app: don't leak all GParamSpecs of GimpProcedures
2011-11-04 01:31:45 +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
553e05ec6e
app: add a function to get the paint options from GimpPDBContext
2011-10-29 23:39:46 +02:00
Michael Natterer
b1108c0bd7
app: add a complete set of paint options to GimpPDBContext
...
still no real changes, just preparation for proper PDB API
for paint tools.
2011-10-29 22:43:55 +02: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
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
5642297109
app: fix PDB parameter type mapping for GIMP_TYPE_ITEM_ID
...
and return GIMP_PDB_ITEM for GIMP_TYPE_ITEM_ID.
2011-05-15 01:47:21 +02:00
Martin Nordholts
3474a385f2
app: Add gimp_pdb_get_deprecated_procedures()
2011-05-05 01:01:17 +02:00
Martin Nordholts
be91f01291
app: Add gimp_procedure_name_compare()
2011-05-05 01:01:17 +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
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
b3a597c7de
Revert "app: Fix pdb size and dynamics issues"
...
This reverts commit 9bae2a15cb
.
2011-03-19 16:43:09 +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
Alexia Death
9bae2a15cb
app: Fix pdb size and dynamics issues
2011-03-19 15:14:23 +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