Commit Graph

13455 Commits

Author SHA1 Message Date
Sven Neumann 2cbf8a7c96 pdb: mention gimp_edit_fill() in the gimp_drawable_fill() docs
The gimp_drawable_fill() already mentioned the bucket fill tool.
However the procedure that the developer is most likely looking
for is gimp_edit_fill(), so mention that as well.
2010-09-06 23:19:00 +02:00
Sven Neumann 9486971f07 pdb: the new gimp-image-insert procedures should accept no parent
Allow to pass -1 as parent parameter to the newly added
gimp-image-insert procedures by adding the 'none_ok' flag.
2010-09-06 22:54:53 +02:00
Michael Natterer d0e55640ec pdb: deprecate gimp_image_add_layer,channel,vectors() 2010-09-06 00:15:40 +02:00
Michael Natterer 9e0dccec73 pdb: update docs to mention the new insert procs instead of the add ones 2010-09-06 00:03:29 +02:00
Michael Natterer a547c5d200 pdb: add gimp_image_insert_layer,channel,vectors()
which all take "parent" parameters and allow to insert items in a
tree. We don't have channel or vectors trees (yet) but API symmetry is
more important here than a currently useless parameter.
2010-09-05 23:56:35 +02:00
Michael Natterer 8ab4fbcf28 pdb: add context procedures for the new antialias and feather properties 2010-09-05 23:13:42 +02:00
Michael Natterer e7475c1d52 pdb: add new procedure gimp-item-to-selection
and deprecate all old to-selection APIs. The new procedure uses the
newly added GimpPDBContext properties, so it only has an "operation"
parameter.
2010-09-05 22:38:07 +02:00
Michael Natterer cbcb7515f0 app: increase max value of feather-radius properties to 1000.0 2010-09-05 22:34:24 +02:00
Michael Natterer 2066545b91 app: add GimpPDBContext which holds more state available to procedures
Initially contains antialias, feather and feather radius for the
upcoming gimp-item-to-selection preocedure. Keeping states in the
context reduces the number of parameters of procedures, and both the
state API and the API using the states can be changed/deprecated
independently. Make sure that all procedures and all plug-ins get
GimpPDBContexts instead of plain GimpContexts passed.
2010-09-04 22:17:01 +02:00
Martin Nordholts 3e60cacfd5 app/core: Init bestcolor in gimpimage-convert.c
Init bestcolor in gimpimage-convert.c to fix warning about "may be
used uninitialized in this function".
2010-09-03 08:52:26 +02:00
Martin Nordholts 1801fc70ab app: Use `git describe` for verbose version
Use `git describe` for verbose version, it provides more info than
just the commit ID, and it feels sane to use an existing command for
this. Note that the commit ID is prefixed with 'g'.
2010-09-02 21:28:42 +02:00
Tor Lillqvist 8a8140986f Include cairo.h from correct path 2010-09-02 19:10:10 +03:00
Tor Lillqvist 24386abb3b Increase safety on Windows
Call SetDllDirectory() to reduce risk of DLL hijacking, and call
SetProcessDEPPolicy() to reduce risk of rogue code execution.
2010-09-02 18:40:50 +03:00
Michael Natterer bfce429d24 app: some minor fixes in GimpTextStyleEditor
- initialize all of the color strust in init().
- simplify font_changed().
2010-09-02 00:42:59 +02:00
Michael Natterer ad819263af Bug 620674 - Adding support for multi-colored text layer
Apply slightly modified patch from Barak Itkin that adds colors for
text spans plus GUI to edit these colors.
2010-09-02 00:20:04 +02:00
Michael Natterer 3759b3f0d1 app: render the text layout directly into the layer's pixels
instead of using a mask. Enables color tags. Set the default color
from the text object using a pango color attibute and factor out
GimpTextLayout attribute setting into a utility function.
2010-09-01 23:30:40 +02:00
Sven Neumann 813ee3de88 app: port layout drawing to cairo 2010-08-31 22:59:34 +02:00
Martin Nordholts 0dc4b5de72 Fix a bunch of warnings 2010-08-31 22:46:36 +02:00
Michael Natterer ab852d7409 pdb: add proper error messages for gimp_image_reorder_item() 2010-08-31 17:07:27 +02:00
Michael Natterer b24de26791 libgimp: add gimp_image_reorder_item() for arbitrary reordering in a tree 2010-08-31 11:16:41 +02:00
Michael Natterer 4e2289f736 libgimp: add API to access item groups
A layer tree can be traversed completely now. Tree manipulating
functions still missing.
2010-08-28 18:49:15 +02:00
Michael Natterer 274f210e4c app: remove obsolete includes 2010-08-28 15:33:25 +02:00
Michael Natterer 02abdff8aa app: move the wilber drawing functions to gimpcairo.c 2010-08-28 15:30:02 +02:00
Michael Natterer c0e475e7e2 app: add comment about cairo_t and double buffering 2010-08-28 11:44:11 +02:00
Michael Natterer d1393686ab app: move creating of the cairo_t to gimp_display_shell_canvas_expose()
and pass it down to the drawing functions.
2010-08-28 00:09:31 +02:00
Michael Natterer f0c40d3717 app: port GimpDisplayShell image drawing to cairo 2010-08-27 23:15:25 +02:00
Michael Schumacher 90655d8744 Use $(GIMP_APP_VERSION) in resource object file name 2010-08-27 23:13:34 +02:00
Michael Schumacher 9781cf1523 Bug 574018 - Add a manifest to executables
This step moves the %.rc.o pattern rule to a small include file in the
build/windows/ directory. Michael Natterer suggested this approach in
order to minimize the changes done to each executable's Makefile.am.
2010-08-27 21:31:38 +02:00
Michael Natterer 0d35e8de6d libgimp: add item based API for positions (raise, lower etc.)
and deprecate the resp. functions for layers, channels and vectors.
2010-08-27 16:11:06 +02:00
Sven Neumann ac33ead19d app/widgets: plug memory leak 2010-08-27 15:13:49 +02:00
Michael Natterer 9c63f3d4f1 app: remove gimp_display_shell_draw_selection_segments()
and move its code into selection_render_mask().
2010-08-27 15:03:03 +02:00
Michael Natterer f260cd766e app: add gimp_cairo_add_segments()
which adds an array of GdkSegments to the current path, and use it in
gimpdisplayshell-draw.c instead of duplicating the code three times.
2010-08-27 14:58:43 +02:00
Michael Natterer f4f1c563a2 app: don't include "gimpcanvas.h" any longer 2010-08-27 14:52:27 +02:00
Michael Natterer 3e1b14fd1a app: add widgets/gimpcairo.[ch] for cairo utility functions
and move the stipple pattern creation function there.
2010-08-27 14:41:30 +02:00
Michael Schumacher 82dca2ecf4 Bug 574018 - Add a manifest to executables
Eventually all executables will have the manifest and version resources
linked. In this initial step, the current resources are moved from the
app/ directory to a global build/windows directory.
2010-08-26 22:10:07 +02:00
Sven Neumann b7b93d3d7b app/display: add some const qualifiers 2010-08-26 21:02:47 +02:00
Michael Natterer a6ce99afe0 app: remove point drawing API from GimpCanvas, it's not used any longer 2010-08-26 21:01:21 +02:00
Michael Natterer be2bd189cd app: completely switch to cairo-drawing the selection
and remove all old selection drawing code. Thanks to Benjamin Otte for
pointing out the right optimization.

Also fixes bug #479875 - performance problem drawing a complex selection.
2010-08-26 20:52:52 +02:00
Michael Natterer d745ab3871 app: move the GIMP_CURSOR_SIZE define to a single place in the right header 2010-08-26 19:13:49 +02:00
Martin Nordholts fa6eb03fb2 app/tests: Add 'paintbrush_is_standard_tool' regression test
Add 'paintbrush_is_standard_tool' regression test to prevent bug
624177 from happening again.
2010-08-26 19:05:57 +02:00
Michael Natterer 98ee5e14a2 app: forgot to remove some disabled code 2010-08-26 18:21:04 +02:00
Michael Natterer 58db8a3ef0 app: port GimpDisplayShell selection drawing to cairo
but keep the old code around because it's much faster. The new code is
enabled by defining the CAIRO_SELECTION environment variable.
2010-08-26 18:09:33 +02:00
Sven Neumann f1d89f712d Bug 626446 - segfaults when started with -i argument
We don't need a standard tool-preset object, so just remove the
code that was copied and pasted from other GimpData objects.
Fixes the crash on startup in non-interactive mode.
2010-08-25 21:47:22 +02:00
Michael Natterer cd192adf09 app: undo some of the previous refactorings and keep using GdkSegment
It's not going to be deprecated, so there is no harm in using it; get
rid of all the added _old() functions too.
2010-08-25 21:21:16 +02:00
Michael Natterer d73f088408 app: move the calls to cairo_translate() out of gimpdisplayshell-style.c
and keep them next to the drawing code so it becomes clear why we use
pixel centers in these cases.
2010-08-25 13:01:12 +02:00
Michael Natterer 3f6bb75129 app: pass transformed segments to gimp_display_shell_draw_layer_boundary()
and duplicate quite some code in the spirit of the previous commit
(rename stuff using GdkSegment to _old() and add new functions that
return arrays of BoundSegs, for the lack of a nicer struct). This is
all very ugly and will change.
2010-08-25 01:58:00 +02:00
Michael Natterer 3127d36216 app: rename gimp_display_shell_transform_segments()
to gimp_display_shell_transform_segments_old() as step one
of porting selection drawing to cairo.
2010-08-25 01:37:19 +02:00
Michael Natterer 4e0925a67c app: port GimpDisplayShell layer boundary drawing to cairo
The boundary is temporarily kept around as both BoundSeg and
GdkSegment arrays now, but this uglyness will go away once porting to
cairo is complete.
2010-08-24 18:07:31 +02:00
Michael Natterer b5e49426df app: forgot to remove debug output in xcf_save_choose_format() 2010-08-24 18:04:49 +02:00
Michael Natterer 0d39da7ce8 app: s/num_segs/n_segs/ 2010-08-24 17:36:42 +02:00