Commit graph

28217 commits

Author SHA1 Message Date
Michael Natterer
1f8a835e40 app: fix GimpCanvasBoundary's extents 2010-09-29 23:24:01 +02:00
Mukund Sivaraman
c83294f4ce Minor coding style fix 2010-09-30 01:56:02 +05:30
Michael Natterer
fe5b6eddc0 app: indentation 2010-09-29 22:20:02 +02:00
Michael Natterer
7edfa2ca54 app: start an infrastructure where the shell keeps around its canvas items
- Invalidate the proper area when an item gets added or removed.
- Draw the kept canvas items instead of calling a draw tool function.
- The draw tool now sets its item on the shell.
2010-09-29 22:12:01 +02:00
Michael Natterer
81cfb44047 app: use a GimpColorPanel not a GimpColorButton in the text style editor
so we get proper color previews in the popup menu.
2010-09-29 21:14:51 +02:00
Michael Natterer
42e137fc74 app: rename gimp_display_shell_draw_area() to draw_image() 2010-09-29 20:58:13 +02:00
Sven Neumann
2ef259cd20 app: use GimpRGB as mask color
Instead of passing GimpChannelType as mask color to
gimp_display_shell_set_mask(), change that function to accept a
GimpRGB color.

Adapt GimpForegroundSelectTool, the only user of the display mask
feature, to this change.
2010-09-29 20:35:00 +02:00
Sven Neumann
a7413bd784 app/display: implement drawing of selection mask
Use cairo_mask_surface() to render the selection mask (as used by
the foreground selection tool).
2010-09-29 20:35:00 +02:00
Sven Neumann
1eb77f6360 app/display: refactor RenderInfo code 2010-09-29 20:34:59 +02:00
Sven Neumann
375567df6f app/display: sprinkle render code with const qualifiers 2010-09-29 20:34:59 +02:00
Sven Neumann
b3182be59c app/display: remove obsolete includes 2010-09-29 20:34:59 +02:00
Sven Neumann
260c8560e4 app: remove gimp_display_shell_render_{init,exit}
The functions had become mostly obsolete and we can just use a
static scratch buffer for rendering.
2010-09-29 20:34:59 +02:00
Sven Neumann
d5d5f4fb3f app/display: adjust a comment to reflect the current state of the code 2010-09-29 20:34:59 +02:00
Sven Neumann
dd1e858921 app/display: introduce a style for dimming 2010-09-29 20:34:59 +02:00
Sven Neumann
eb5bb6363e app/display: draw the crop highlight using cairo
Instead of dimming the actual pixels, apply a translucent fill to
the area outside the highlight rectangle.
2010-09-29 20:34:59 +02:00
Sven Neumann
ccee0ec41a app/display: let cairo render the checkerboard
Instead of blending the scaled image data onto the checkerboard and
then painting this image to the screen, render the image data into
an ARGB cairo image surface. Then paint a checkerboard on the canvas
and the image on top of it.
2010-09-29 20:34:59 +02:00
Michael Natterer
ebeb933350 app: add gimp_display_shell_expose_item() and use it in the draw tool 2010-09-29 20:10:21 +02:00
Michael Natterer
7367ec1b7c app: fix the extents of filled rectangles and invalidate less pixels
for large unfilled ones: if larger than 64x64 (arbitrary), invalidate
only the actual lines.
2010-09-29 19:58:59 +02:00
A S Alam
ea2c1994f4 update for Punjabi 2010-09-29 22:57:38 +05:30
Mukund Sivaraman
5dfb2782dd Use libapp_generated_sources in Makefile.am 2010-09-29 00:39:23 +05:30
Nils Philippsen
6b1aabfa71 add git-version.h to BUILT_SOURCES
This is so that it gets built before automake descends into subdirs.
2010-09-28 18:19:34 +02:00
Nils Philippsen
0c0470f9d6 use computed copyright year in Windows rc files 2010-09-28 17:56:16 +02:00
Nils Philippsen
f507a6aad1 update copyright years translations where possible 2010-09-28 17:11:56 +02:00
Nils Philippsen
0e57af80f4 make update-po 2010-09-28 16:15:28 +02:00
Nils Philippsen
c9b03ef8ff app: use last git commit year for copyright label 2010-09-28 15:07:45 +02:00
Nils Philippsen
37d9876742 app: define GIMP_GIT_LAST_COMMIT_{TIMESTAMP,YEAR} macros 2010-09-28 14:25:43 +02:00
Alexandre Prokoudine
eed3b054bc Porting to new API: add-[layer|channel] > insert-[layer|channel] and more 2010-09-28 09:10:07 +04:00
Alexandre Prokoudine
9f2f17851c Porting to new API: add-[layer|channel] > insert-[layer|channel] 2010-09-28 03:44:30 +04:00
Alexandre Prokoudine
b02ba67199 Porting to new API: add-[layer|channel] > -insert-[layer|channel] 2010-09-28 03:30:33 +04:00
Alexandre Prokoudine
ac5e9f93d7 Updated Russian translation 2010-09-28 02:50:31 +04:00
Michael Natterer
e869e83f56 app: add the text tool's selection rectangles to a filling group
Doesn't look any better but is a step in the right direction.
2010-09-27 23:04:18 +02:00
Michael Natterer
d7cb20b0d5 app: add group filling support to GimpCanvasItem and GimpCanvasGroup
The code is almost identical to the group stroking feature.
2010-09-27 22:59:36 +02:00
Michael Natterer
b63e26e45d configure.ac: fix previous commit 2010-09-27 21:32:18 +02:00
Michael Natterer
673064d7c9 app: disable deprecated GTK+ API until version 2.22
and don't disable it for the future 2.24 and later.
2010-09-27 20:10:59 +02:00
Michael Natterer
3f2641c4be app: put the bounding box lines into a stroking group 2010-09-27 19:32:25 +02:00
Ville Pätsi
50a34c230a app: Changed tool display colors and opacities 2010-09-27 20:08:49 +03:00
Tor Lillqvist
ee7a922cba No SYMPREFIX should be used for 64-bit Windows
Earlier builds of mingw-w64 misguidedly used the _ prefix, but not
current ones. Thanks to Fridrich Strba.
2010-09-27 18:22:29 +03:00
Sven Neumann
8d93dfa923 app: remove xor-color property from gimprc 2010-09-26 23:21:40 +02:00
Michael Natterer
7db14ffca9 app: remove gimp_display_shell_transform_coords() 2010-09-26 23:09:23 +02:00
Michael Natterer
3b7999a218 app: remove gimp_display_shell_transform_points() 2010-09-26 23:06:35 +02:00
Sven Neumann
74885082ee app/base: formatting 2010-09-26 23:03:16 +02:00
Michael Natterer
7ed79e9fe1 app: fix off-by-0.5 in boundary drawing
which doesn't seem to have any visual effect...
2010-09-26 23:00:23 +02:00
Michael Natterer
06da10bc08 app: change boundary drawing by tools to work like the selection
- GimpCanvasBoundary takes unsorted BoundSeg arrays now and uses
  gimp_display_shell_transform_boundary() and gimp_cairo_add_boundary().
- Nobody calls boundary_sort() any longer for the purpose of displaying
  a boundary.
- gimp_display_shell_transform_boundary() got offset parameters
  so it can transform things that are not in the image's coordinate
  system.
2010-09-26 22:41:04 +02:00
Michael Natterer
8f9ec0650f app: move code from GtkObject::destroy() to GObject::dispose() 2010-09-26 22:38:01 +02:00
Michael Natterer
0e17e44ba4 app: move code from GtkObject::destroy() to GObject::dispose() 2010-09-26 22:35:49 +02:00
Michael Natterer
4492725110 app: add some (disabled) code that draws the untransformed brush outline 2010-09-26 22:27:55 +02:00
Sven Neumann
1d17042efb app/display: don't evaluate alpha value several times
The GIMP_CAIRO_ARGB32_SET_PIXEL() macro will evaluate the alpha
parameter multiple times, so we better calculate alpha beforehand.
2010-09-26 22:25:49 +02:00
Sven Neumann
2f3c6af28b app/display: fix cairo drawing of transform tool image preview
Don't access the cairo image surface directly, instead use the
GIMP_CAIRO_ARGB32_SET_PIXEL() macro that takes care of
pre-multiplying the colors by the pixels alpha component.
2010-09-26 22:15:07 +02:00
Sven Neumann
8f9ffe597d libgimpwidgets: add const qualifiers
Sprinkle GIMP_CAIRO_ARGB32_SET_PIXEL() with const qualifiers.
2010-09-26 22:12:13 +02:00
Michael Natterer
c3102bde81 app: move the GimpCanvasGroup typedef to display-types.h 2010-09-26 19:20:14 +02:00