Michael Natterer
e737bf77fa
app: add gimp-babl.[ch] and move Babl specific code there
2012-05-02 17:51:08 +02:00
Michael Natterer
85bd6b0dd9
app: pass a format, not bpp, to gimp_viewable_get_dummy_pixbuf()
...
and add tons of <gegl.h> includes.
2012-05-02 17:51:08 +02:00
Michael Natterer
310c1bfb71
app: add gimp_babl_get_description()
...
which keeps around human readable and translatable strings for Babl
formats, as replacement for the to-be-obsoleted image type etc. enum
descriptions.
2012-05-02 17:51:03 +02:00
Michael Natterer
53cf2c657b
app: move the GTK-free cairo utility functions to core/gimp-cairo.[ch]
2012-05-02 17:51:02 +02:00
Michael Natterer
c14738806e
app: use gimp_image_get_layer_format() instead of dealing with image_type
2012-05-02 17:50:57 +02:00
Michael Natterer
3e119c5af7
libgimpcolor: add gimp_rgb[a]_set,get_pixel()
...
which converts from/to any pixel format using Babl. Added tons of
includes and CFLAGS now that libgimpcolor publically uses Babl.
2012-05-02 17:50:43 +02:00
Michael Natterer
867da8f293
app: add gimp_context_get_foreground,background_pixel()
...
which takes a Babl format to convert from/to.
Include <gegl.h> in a million places.
2012-05-02 17:50:41 +02:00
Michael Natterer
37c895ba68
app: have the display renderer ask for the projection's format not image_type
2012-05-02 17:50:40 +02:00
Michael Natterer
36e982e2ed
app: port gimp_image_pick_color() to return a Babl format
...
instead of a GimpImageType.
2012-05-02 17:50:39 +02:00
Michael Natterer
f084704fbd
app: ask the buffer not the tile manager for its size
2012-05-02 17:46:15 +02:00
Michael Natterer
765c2cfea2
app: replace GimpDraable's type by a Babl format
...
and change gimp_drawable_new() and all gimp_layer_new() variants to
take formats instead of types.
2012-05-02 17:46:06 +02:00
Michael Natterer
3441d009f8
app: remove unused tile-manager.h include
2012-05-02 17:46:04 +02:00
Michael Natterer
2c62644f94
app: BoundSeg -> GimpBoundSeg, boundary_foo() -> gimp_boundary_foo()
2012-05-02 17:46:02 +02:00
Michael Natterer
9323c2f28c
app: move base/boundary.[ch] to core/gimpboundary.[ch]
...
No other changes yet, just make the move build.
2012-05-02 17:46:02 +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
ffeb3515db
app: add gimp_edit_fill_full() which takes color and pattern
...
and use it for dropping colors and patterns on the display
and on the layers dialog, instead of using the overkill
gimp_drawable_bucket_fill_full().
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
435feea20a
app: use gimp_cairo_set_source_rgb() wheh setting a GimpRGB
2012-03-05 19:19:47 +01:00
Michael Natterer
0c236cbc48
app: don't draw the grid if it covers the image entirely
...
Regardless of the elaborate discussion in bug #599267 , as soon as the
grid starts covering the image completely (when the is no more spacing
between grid lines), it is entirely useless, so skip drawing it.
2012-03-04 20:19:57 +01:00
Michael Natterer
71e8fc8c3a
app: make sure undrawing the selection doesn't leave right/bottom pixel garbage
...
gimp_display_shell_mask_bounds(): transform the selection bounds with
sub-pixel precision and then apply floor()/ceil() accordingly.
2012-02-21 16:01:53 +01:00
Michael Natterer
fbd746f95a
app: don't rely on gtk_container_remove() to always destroy the child
...
Instead, either destroy the child instead of removing it, or remove
*and* destroy it in cases where the remove() api on the "parent"
doesn't match GTK+'s parent/child relation (like with all our dock
widgets). We can't rely on remove() to implicitly detstroy, because
there might be arbitrary other code holding references, such as
accessibility modules and whatnot. Most likely fixes unclear crashes
in accessibility code and other crashes we blamed GTK+ for.
2012-02-21 00:36:18 +01:00
Mikael Magnusson
cd002dd0c6
app: remove two duplicated variable inits
2012-02-16 11:30:38 +01:00
Michael Natterer
b3c8cbd5a5
app: remove all docks from GimpImageWindow in dispose()
...
Seems to fix irregularly occuring warnings on exit about dialogs
being still around.
2012-02-13 00:12:50 +01:00
Michael Natterer
f70bc837fa
app: remove gimpdisplay-utils.[ch], move its only function to gimpdisplay.[ch]
2012-02-11 17:57:27 +01:00
Massimo Valentini
39368a410d
plugged memory leaks
2012-02-07 17:32:02 +01:00
Michael Natterer
0a68527edc
app: move the GimpWindowStrategy interface from display/ to widgets/
2012-01-30 23:33:21 +01:00
Michael Natterer
79a66d36d2
app: rename GimpWindowStrategy::create_dockable_dialog()
...
to ::show_dockable_dialog() because that's what it wlays does, no
matter if the dialog has to be created or now.
2012-01-30 22:59:09 +01:00
Michael Natterer
4aa866a8b9
Bug 664885 - Open 'Document History' --> always a additional history tab appears
...
In SWM, try to find an existing dialog in
gimp_single_window_strategy_create_dockable_dialog() before falling
back to creating a new one.
2012-01-30 22:53:43 +01:00
Martin Nordholts
64d2dc122a
app: Add and use gimp_dialog_factory_find_widget()
2012-01-10 19:47:52 +01:00
Alexia Death
c2d26d7e03
app: Keep canvas in place when image tabs show/hide
2012-01-04 22:09:07 +02:00
Michael Natterer
056e09a6cb
Remove the makefile.msc build system, it is unmaintained since 2008
2011-12-16 15:53:56 +01:00
Michael Natterer
51a8e66824
app: reduce nesting in gimp_display_shell_canvas_no_image_events()
2011-12-15 22:35:44 +01:00
Massimo Valentini
bea8b93959
app: use projection and not image sizes
...
these are the same nearly always, but during
an image-scale, the image size is updated early
and expose redraw following dialog destruction
uses the projection before the scale.
Basically this patch partly restores the code
before commit 8b8e67ffe2
2011-12-11 17:11:25 +01:00
Michael Natterer
5046f167fd
app: remove checks for grab time consistency
...
because tests need to be able to pass GDK_CURRENT_TIME here, which is
a legal argument to grab functions. Fixes distcheck.
2011-12-11 16:39:01 +01:00
Michael Natterer
8569c6e2f7
app: don't request motion hints on the canvas
...
They are a dark ages concept, and it's almost 2012.
2011-12-10 23:22:08 +01:00
Michael Natterer
022af2610e
app: GimpDisplayShell: fix type of the new grab time members
2011-12-09 23:21:22 +01:00
Michael Natterer
7da455214d
app: merge if() madness into one single even bigger madness
2011-12-09 22:34:44 +01:00
Alexia Death
5ec2bd7287
app: improve ignoring other buttons while one down
2011-12-09 23:27:18 +02:00
Michael Natterer
435b5b4386
app: move variable to local scope in gimp_display_shell_canvas_tool_events()
2011-12-09 20:54:24 +01:00
Michael Natterer
ea49a7b466
app: ignore new button events on the canvas while another button is down
...
Fixes tons of possibly dangerous warnings, and likely some weird
crashes.
2011-12-09 20:53:11 +01:00
Michael Natterer
01f92a3b48
app: get rid of server grabs for almost all canvas interaction
...
Because it's generally the right thing to do, and server grabs broke
badly with input devices / client side windows.
gimpdisplayshell-grab.c: change logic to only server-grab if an event
is passed to the pointer grab/ungrab functions, but always use
gtk_grab_add/remove() which is sufficient in most cases.
gimpdisplayshell-tool-events.c: have the grab functions grab the
server only for space-bar scrolling and do all tool interaction,
including ruler clicks, with gtk_grab_add/remove(). Refactor things
a bit to also use the grab API for button-2 scrolling.
gimpdeviceinfo-coords.c: transform the event's coords to the canvas'
coordinate system, they might come from a ruler now.
This fixes the following bugs:
Bug 645315 - gimp_display_shell_pointer_grab: gdk_pointer_grab failed...
Bug 644351 - Gimp misses some strokes especially when drawing fast
Bug 645747 - Gimp is now unusable on xfce4
2011-12-09 20:20:02 +01:00
Michael Natterer
9781aa65ea
Bug 658467 - Replace g_format_size_for_display() by g_format_size()
...
Use g_format_size() instead of g_format_size_for_display() because
the latter is deprecated.
2011-11-30 23:37:55 +01:00
Michael Natterer
d38ded387d
Bug 663121 - guides are below rotate/transform/shear/perspective preview
...
Add a canvas item group for previews, and a small preview infrastructure
to GimpDrawTool, and put the transform preview into the preview group,
which is below all guides, grid and layer boundaries.
2011-11-16 21:32:29 +01:00
Michael Natterer
ffc9948d6e
app: add a canvas group for tool items
...
so we can control where in the canvas item stack they appear.
Put the group right below the software cursor.
2011-11-16 21:10:43 +01:00
Mukund Sivaraman
d9f1a9eec6
app: Drop redundant assignment
2011-10-12 19:02:49 +05:30
Mukund Sivaraman
6e4a5b1996
app (display): Drop redundant assignments
2011-10-11 10:29:55 +05:30
Michael Natterer
11239c4b17
app: don't use g_list_length() to check if a list is empty
2011-10-09 00:27:53 +02:00
Michael Natterer
a38faefba7
app: use toggle_behavior_mask not CONTROL to trigger zoom-on-scroll
2011-10-07 00:00:42 +02:00
Michael Natterer
59f4396c7b
app: use the toggle_behavior modifier instead of GDK_CONTROL_MASK
...
to switch between dragging a guide or a sample point from a ruler.
2011-10-06 21:10:18 +02:00
Michael Natterer
e8250320d5
app: use gdk_event_triggers_context_menu() for the image menu
...
and clean up button event handling a bit.
2011-10-05 20:04:42 +02:00