Michael Natterer
e4a96c738e
app: factor out duplicated code to gimp_tool_palette_get_button_size()
...
and use that function in GimpToolPalette and GimpToolbox.
2010-11-20 10:20:52 +01:00
Michael Natterer
281969b45d
app: add GimpToolPalette which derives from GtkToolPalette
...
and move all of GimpToolbox' tool button code there.
2010-11-19 23:52:09 +01:00
Michael Natterer
b5ece8b364
app: the ink sensitivity spin scales need two decimal digits precision
2010-11-19 15:19:24 +01:00
Michael Natterer
6960dda6f2
app: draw GimpSpinScale's label with style->text, not style->fg
2010-11-19 14:08:37 +01:00
Michael Natterer
04c4eedb4c
app: indentation
2010-11-19 12:02:57 +01:00
Alexia Death
2b8605639d
app: Disable somewhat obsolete stroke smooth
2010-11-17 19:55:16 +02:00
Alexia Death
20afb328a7
app: Unify direction calculation for painting and stroking
2010-11-17 00:03:07 +02:00
Michael Natterer
7a3dc6ee38
app: remove unused #includes
2010-11-15 00:23:18 +01:00
Michael Natterer
41269d35be
app: fix antique copyright header
2010-11-14 22:13:36 +01:00
Michael Natterer
dc564954d5
app: namespace the ink blob
...
Blob -> GimpBlob, blob_foo() -> gimp_blob_foo() etc.
2010-11-14 16:43:21 +01:00
Michael Natterer
c4cd420ef8
app: rename GIMP_INK_BLOB_TYPE_ELLIPSE to GIMP_INK_BLOB_TYPE_CIRCLE
...
- TYPE_SQUARE is also named SQUARE and not RECTANGLE
- serialization doesn't suffer from the changed name because it's the
default value that never gets serialized
- a lot of messy code in the ink options can be replaced by a one-liner
because the enum names now match their resp. stock items
2010-11-14 16:29:42 +01:00
Michael Natterer
ae9f6d1b3f
app: remove the unused gimp_display_shell_expose_vectors()
2010-11-13 23:02:07 +01:00
Michael Natterer
5cea26b6e5
app: gimp_display_shell_expose_region(): return if the canvas is not realized
...
All GTK+ exposing functions do the same.
2010-11-13 22:58:43 +01:00
Michael Natterer
a9217d4233
app: set the grid canvas item invisible by default
2010-11-13 22:58:10 +01:00
Nelson A. de Oliveira
f72d8a4a39
Move file opening block to after some tests
...
Instead fclosing fp for every return, it's better to move the block
to a lower position, since it's not used before.
2010-11-12 21:56:17 +01:00
Nelson A. de Oliveira
7666e5cf36
Fix memory and descriptor leaks
2010-11-12 21:56:17 +01:00
Michael Natterer
e4532fe2a8
app: call gimp_canvas_item_begin,end_change() around passe partout changes
...
Also remove the "highlight" member from the GimpDisplayShell struct.
2010-11-12 20:18:03 +01:00
Michael Natterer
458230bf8d
app: use a GimpCanvasPassePartout for drawing the crop highlight
...
and remove all old drawing logic.
2010-11-12 19:47:51 +01:00
Michael Natterer
cca8273f5e
app: fix the canvas passe partout's extents
2010-11-12 19:45:01 +01:00
Michael Natterer
e7f8758f5c
app: remove gimp_image_map_is_busy() again
2010-11-10 19:37:58 +01:00
Michael Natterer
dc9018bd14
app: implement GimpTool::options_notify()
2010-11-10 19:08:39 +01:00
Alexia Death
5fa1e9ea40
app: Tell the user how to commit the cage transform
2010-11-10 19:11:49 +02:00
Michael Natterer
ef44bfedad
app: check for GIMP_BUTTON_RELEASE_CANCEL, not GDK_BUTTON3_MASK
2010-11-10 14:39:30 +01:00
Mikael Magnusson
372bc90f65
app: fix right-click cancelling a transform tool
...
to only revert back to before the current drag, not do a full reset
2010-11-10 14:39:06 +01:00
Mikael Magnusson
d6e76a10d6
app: fix redraw after cancelling a transform tool with right-click cancelling
2010-11-10 14:35:27 +01:00
Michael Natterer
32926c9b6a
app: implement GimpTool::options_notify()
...
instead of connecting to the tool options manually.
2010-11-10 14:20:33 +01:00
Michael Natterer
9e5eca8fd1
app: add virtual function GimpTool::options_notify()
...
which gets called on each "notify" from the tool options. This way
tool can simply implement this method instead of connecting to
"notify" themselves individually.
2010-11-10 14:18:33 +01:00
Michael Natterer
3b09aaa5f1
app: property ID enums don't need to be public
2010-11-10 11:40:48 +01:00
Michael Natterer
3ac37bbff0
app: formatting; move variables to local scopes
2010-11-10 09:30:07 +01:00
Michael Natterer
6bf13efbc8
app: use gimp_widget_flush_expose() for the statusbar's progress
2010-11-10 00:16:34 +01:00
Michael Natterer
41cad26f12
app: don't run the main loop manually after calling gimp_progress_set_value()
2010-11-10 00:14:22 +01:00
Michael Natterer
1741d39d8b
app: gimp_widget_flush_expose() return if the widget is not drawable
2010-11-10 00:13:07 +01:00
Michael Natterer
f6a284dc4c
app: use a canvas progress in the cage tool
...
This is a proof-of-concept hack that needs review and comments before
being used generally.
2010-11-09 19:35:54 +01:00
Michael Natterer
cff73863c5
app: add GimpCanvasProgress, an on-canvas progress item
2010-11-09 19:35:04 +01:00
Michael Natterer
cacf8b550f
app: add gimp_widget_flush_expose() utility function
...
which flushes all pending exposes for a widget without running the
main loop. Useful for updating progress bars without returning to the
main loop.
2010-11-09 19:33:15 +01:00
Nils Philippsen
d2ebadcfb9
colorxhtml: check validity of source_type
2010-11-09 11:33:49 +01:00
Michael Natterer
63fcfb15a2
app: use the new shifting API instead of reimplementing it
2010-11-09 11:32:40 +01:00
Michael Natterer
1541d8b666
app: make the shift-coordinates-by-anchor functions public API
2010-11-09 11:27:51 +01:00
Michael Natterer
3f6a70f7fe
app: define one more standard tool handle size
2010-11-08 22:48:50 +01:00
Michael Natterer
cf0402f069
app: consistent handle sizes for tool drawing
...
Replace a myriad of defines in different tools by three consistent
sizes defined in gimpdrawtool.h.
2010-11-08 22:37:00 +01:00
Martin Nordholts
d101062433
po: Update POTFILES.in
...
Update POTFILES.in for make distcheck.
2010-11-08 08:05:18 +01:00
Martin Nordholts
232adf8eb5
Update gimprc
2010-11-07 15:02:20 +01:00
Martin Nordholts
e1b8f8efdf
libgimpmath: Update gimpmath.def
2010-11-07 15:02:08 +01:00
Michael Natterer
a73348c561
app: fix handle hovering detection, it was using the wrong radius
2010-11-06 00:06:13 +01:00
Michael Natterer
31aa09a11f
app: add proper cursors that show what will happen
2010-11-06 00:06:13 +01:00
Alexia Death
c791ed0dca
app: Fix coordinate adjustment bug in cage tool
2010-11-06 00:52:43 +02:00
Michael Natterer
9d604a545f
app: move all the cage modifying logic to button_release()
...
so any interaction can be canceled by holding BUTTON3 while
releasing. Add additional state "hovering_handle" so we can do proper
drawing that matches what will happen on mouse interaction.
2010-11-05 23:49:48 +01:00
Michael Natterer
f4c98fbad6
app: don't use a GimpVector2 for the cursor position
...
because less code is more readable.
2010-11-05 22:30:10 +01:00
Michael Natterer
9867cf62c3
app: -1000 is a valid cursor position, use G_MINDOUBLE as "no cursor"
2010-11-05 22:25:14 +01:00
Michael Natterer
baf964a734
app: rename member handle_moved to moving_handle
2010-11-05 22:21:56 +01:00