314a6ab926
app: merge the layer, channel and vectors repositioning APIs
...
into an API based on GimpItem.
2010-07-08 18:08:13 +02:00
70a3addcb9
app: harden precondition checks in GimpItemTree
...
Instead of checking if the item is attached and belon's to the tree's
image (which did miss e.g. passing a channel to the layer tree), we
now check if gimp_item_get_tree(item) returns right tree.
2010-07-08 15:06:19 +02:00
706900c4f6
Bug 589010 - Don't make Alt-Clicked layers active
...
Add a "pre-clicked" signal to GimpCellRendererViewable that can
prevent a selection from happening. Move the Alt-Click code in
GimpLayerTreeView to this signal and if a layer is Alt-Clicked, don't
go ahead and make the layer active. Also add a test for this use case.
2010-06-27 21:46:53 +02:00
2813fce0b8
Bug 613838 - Error in gimp-hue-saturation PDB call
...
The "hue" parameter from the PDB is in a [-180..180] range, not in
[-100..100]. Note that unlike stated in the bug, this is not an
incompatible change, because it simply got broken between 2.4 and
2.6.
2010-06-27 01:15:46 +02:00
d596695afc
app: run dispose explicitely on the paint_options before unrefing them
2010-06-26 23:22:53 +02:00
324fa432b6
app: free the tag_ref_counts hash table in dispose()
2010-06-26 18:25:44 +02:00
e24c2d2249
app: add a local "container" variable to make the code more readable
2010-06-26 15:49:10 +02:00
e0d5bab077
app: remove the static variables for the "standard_foo" fallback members
...
Instead, call gimp_foo_get_standard() when a fallback object is
needed (keeping them around as static variables was a silly
micro-optimization).
2010-06-24 22:33:33 +02:00
b2b1cb135b
app: move the instance debug facility to the new file app/gimp-debug.c
...
Build it unconditionally but enable it via GIMP_DEBUG=instances
2010-06-24 19:11:56 +02:00
44e6acbef8
app: the name of the standard paint is "gimp-paintbrush" not "GimpPaintbrush"
2010-06-24 18:38:19 +02:00
67590c04d1
app: unref tool options and presets in dispose() instead of finalize()
2010-06-24 18:38:18 +02:00
bfbdf1cfb8
app: unref the paint options in dispose() instead of finalize()
2010-06-24 18:38:18 +02:00
5db9d31498
app: drop all object references in dispose() insatead of finalize()
2010-06-24 18:38:18 +02:00
06bf098fa9
app: run dispose on the tool infos before unrefing their container
...
because they contain reference cycles with the tool options
2010-06-24 18:38:18 +02:00
a5b6544b6e
app: unref options->tool_info in dispose() instead of finalize()
2010-06-24 18:38:17 +02:00
c9bde335f0
app: don't additionally ref the standard data objects
...
Instead, set their statically remembered pointer as a weak pointer so
it's nullified automatically if they are ever finalized. Doesn't
actually get rid of them upon exit yet, this is just a preparation.
2010-06-24 18:38:16 +02:00
e44d81bd4b
app: add a debug facility that keeps track of allocated GimpObjects
2010-06-23 22:32:14 +02:00
09ebdcb06b
app: don't leak each transformed brush mask
2010-06-22 23:06:35 +02:00
5930b13084
app: add context to all undo descriptions
...
Description of undo actions should be marked as action descriptions,
and not as commands. This is required for translation for some
language (like Hebrew) that require a different grammatical tense for
describing actions
2010-06-09 18:50:23 +02:00
5dd9e4bbc3
app: remove member GimpDrawable::has_alpha
...
because it is always the same as GIMP_IMAGE_TYPE_HAS_ALPHA(drawable->type),
so simply use that instead.
2010-06-08 10:10:04 +02:00
8a27702ac3
app: add simple macros GIMP_TIMER_START() and GIMP_TIMER_END()
...
which measure the time taken between them and print out a message.
Use it for projection benchmarking and add timing to scaling.
2010-06-06 20:24:27 +02:00
17961941fc
app: use gegl:scale for scaling if use-gegl is TRUE
2010-06-06 19:54:44 +02:00
301b990a46
app: add gimp_drawable_apply_operation_to_tiles()
...
which uses a passed-in tile manager instead of
the drawable's shadow tiles as sink.
2010-06-06 19:52:39 +02:00
8cefb2913e
app: use g_strcmp0() where strings can be NULL instead of checking manually
2010-06-06 19:15:49 +02:00
6d67ffd6f0
app: some cleanup in GimpFilteredContainer
2010-06-06 18:55:07 +02:00
72bcb72c44
app: rename gimp_template_create_image() to gimp_image_new_from_template()
...
and move it from gimptemplate.c to gimpimage-new.c
2010-06-05 22:42:00 +02:00
649bd8f678
Bug 619131 - Attempting to flip FG/BG hard-edge gradient locks up GIMP
...
Don't have the "prev" pointer of the right gradient segment point to
itself, causing an infinite loop when iterating the gradient reversed.
2010-05-20 10:11:18 +02:00
b0d02666a3
app: A few more generic aspect ratio fixes
2010-05-14 20:58:27 +03:00
74f907ca33
app: Fix curve application to tilt aspect ratio maping
2010-05-10 00:22:39 +03:00
4816a61dcb
app: Aspect ratio fixes
2010-05-10 00:21:55 +03:00
0cb1ada818
app: convert aspect ratio to scale_x&scale_y just before matrix transform
2010-05-10 00:11:07 +03:00
506469f9f9
app: minor formatting cleanup
2010-04-26 18:52:49 +02:00
5e1c9d228c
app: Fix tool preset editor init
2010-04-24 18:51:42 +03:00
06c1b290d0
app: Add tool preset editor to controll what elements get applied
...
I had to remove the asserrt in tool preset constructor, because with it
it wasnt possible to initalize an empty model object for the editor.
At init time the gimp object passed to the constructor is not yet available.
2010-04-24 17:55:54 +03:00
93ab387fb4
app: add use flags to tool preset
2010-04-24 15:54:35 +03:00
8f813ec52b
app: print a warning if a wrong tool is set on a GimpToolOptions object
...
Use a real g_warning() because this is a programming error. Please
report all warnings.
2010-04-21 20:53:16 +02:00
bb00c53bf5
app: make sure tool options are created with the right tool set
2010-04-20 20:04:24 +02:00
c835fad2c9
app: make sure GimpToolOptions always have the right GimpToolInfo set
...
Override GimpContext's "tool" property and add an evil function that
makes sure we don't set a tool that doesn't match the options. Needed
because tool options are read from disk and thus unreliable per se,
additional we were stupid and wrote wrong tool options to disk.
2010-04-20 20:00:34 +02:00
5c3cf19095
Revert "app: Make drawable updates happen at fixed framerate"
...
This reverts commit 32aca3c8b6 .
Clearly needs more review, thinking and discussion.
2010-04-18 15:03:16 +02:00
32aca3c8b6
app: Make drawable updates happen at fixed framerate
2010-04-18 15:53:22 +03:00
4c4c861aa1
app: make sure GimpToolPreset got the "gimp" construct property passed
...
and pass a Gimp when creating the preset editor's local model.
2010-04-11 16:18:21 +02:00
b676a1add0
app: make tool preset loading work
...
- add "Gimp" property to GimpToolPreset
- implement GimpConfigInterface::deserialize_property() and deserialize
the "tool-options" locally so we can pass the required "gimp" construct
property.
2010-04-11 15:43:29 +02:00
caad58d203
app: add a GimpContext parameter to GimpDataLoadFunc
2010-04-11 13:12:41 +02:00
4fcf34699f
app: flip context and name parameters in GimpDataNewFunc
2010-04-10 19:55:42 +02:00
78a4cae2d5
app: Rewire the the feature formely known as harndess back to gui as force
2010-04-09 00:44:52 +03:00
9ed712ddc4
app: Fix ceil/floor amplifying errors in transform size calculation
2010-04-08 00:31:40 +03:00
430b0e5517
app: add a GimpContext parameter to all functions which create GimpData
...
and pass a context whereever needed. Fix up gimp_tool_preset_new()
to actually make a copy of the context's active tool's options.
2010-04-05 13:26:31 +02:00
98a5e77200
app: formatting
2010-04-04 18:56:40 +02:00
efed2bf623
app: some cleanup and fixes in the tool preset infrastructure
2010-04-04 13:58:55 +02:00
29f7fe87b0
Base infra for tool presets.
2010-04-03 21:06:15 +03:00