Commit Graph

28376 Commits

Author SHA1 Message Date
Michael Natterer 38999b7dd4 libgimp: implement GObject::dispose() instead of GtkObject::destroy() 2010-10-15 12:04:36 +02:00
Michael Natterer 47c6b25f23 libgimpwidgets: transform the cr to widget coords
Get rid of allocation.foo and also kill all the rectangle intersection
that are not really optimizations on such a small widget.
2010-10-15 11:09:47 +02:00
Michael Natterer 3584b662a6 libgimpwidgets: transform the cr to widget coords
and get rid if all the allocation.x and .y
2010-10-15 10:40:37 +02:00
Michael Natterer 1de338ea9d libgimpwidgets: port the GimpChainButton lines to cairo
A proper two-pixel line in FG color looks a lot less shabby...
2010-10-15 10:35:28 +02:00
Michael Natterer 84274e2230 libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy() 2010-10-15 02:34:29 +02:00
Michael Natterer b67dbdc6ca libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy() 2010-10-15 02:25:51 +02:00
Michael Natterer a9e6297110 libgimpwidgets: implement GObject::finalize() instead of GtkObject::destroy() 2010-10-15 02:12:33 +02:00
Michael Natterer 6a10ded221 libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy() 2010-10-15 02:07:55 +02:00
Michael Natterer b25ac7b68d libgimpwidgets: add "percent" support to GimpUnitStore
and enable "menu_show_percent" again in GimpSizeEntry.
2010-10-15 01:27:02 +02:00
Michael Natterer e5faf090ca libgimpwidgets: add gimp_unit_store_set,get_has_pixels()
to allow having unit combos without "pixels". Adapt GimpUnitComboBox
to not assume that the unit is equal to the index in the store and
enable "menu_has_pixels" in GimpSizeEntry again.
2010-10-15 00:15:48 +02:00
Michael Natterer f2bd06e2d1 libgimpwidgets: move GimpUnitStore members to a private struct 2010-10-14 23:22:22 +02:00
Michael Natterer c36f762f7d libgimpwidgets: deprecate GimpUnitMenu and gimp_prop_unit_menu_new()
Add gimp_prop_unit_combo_box_new() and adapt all places using the
prop_unit_menu. Some things are broken now, like there are no pixel
digits set, resolution unit menus show "pixels" and warn badly when
pixels is selected, and file-pdf-load is not built right now.
More fixes to come...
2010-10-14 23:03:34 +02:00
Michael Natterer 74458f46ee app/libgimpwidgets: move GimpUnitStore and GimpUnitComboBox to libgimpwidgets 2010-10-14 22:15:25 +02:00
Michael Natterer af518f9e84 libgimpwidgets: use GObject::dispose() instead of GtkObject::destroy() 2010-10-14 17:47:48 +02:00
Michael Natterer b24c25d317 app: don't use GET_PRIVATE() before the precondition check 2010-10-14 17:33:07 +02:00
Michael Natterer 843d9e35ad libgimpwidgets: replace GdkGC* with gpointer for an unused struct member 2010-10-14 17:22:56 +02:00
Michael Natterer 8e0dd56feb app: fix crashes by not trying to navigate on a NULL layout
Add boolean return value to gimp_text_tool_ensure_layout() and check
it where needed. Also fix the new VISUAL_POSITIONS navigation code yet
again.
2010-10-14 11:01:16 +02:00
Michael Natterer 852196eb3d app: fix insert and overwrite cursors for RTL text
by using the right function to figure the location of both kinds of
cursors. Also fix crash in my last cursor movement commit: check for
error values returned by pango_layout_move_cursor_visually() and don't
try to move the cursor beyond the buffer boundaries.
2010-10-14 02:45:32 +02:00
Michael Natterer f3c2a75e44 app: overwrite cursors can have negative widths in RTL text 2010-10-14 02:43:37 +02:00
Michael Natterer 0c7ec05035 app: honor text direction when moving the cursor
Use pango_layout_move_cursor_visually() instead of e.g. simply using
gtk_text_iter_forward_cursor_position() when "right" was pressed.
This is much more correct now but still not 100% right.
2010-10-14 01:01:33 +02:00
Michael Natterer 56c50741d3 app: honor the "gtk-show-input-method-menu" setting
and hide the input method menu when it's FALSE.
2010-10-14 00:13:35 +02:00
Sven Neumann beef765b4f Bug 631885 - GIMP fails to import a path from SVG
If a moveto is followed by multiple pairs of coordinates, the
subsequent pairs are supposed to be treated as implicit lineto
commands.

The parser used to ignore this part of the SVG specification and
treated subsequent pairs of coordinates as moveto commands (which
is correct in general, but for moveto commands there is this
explicit exception of the general rule).
2010-10-13 22:01:58 +02:00
Sven Neumann 4236990351 app/vectors: formatting 2010-10-13 21:52:10 +02:00
Barak Itkin 8cf6695a50 Fix Bug 631742 - Can't change color of first letter
Fix the bug by making sure we set the base color before setting the markup which
contains color for specific regions. This is a temporary fix, it solves Bug
631742 and introduces a less critical bug (which is described as part of Bug
631934) that will be solved with upcoming design changes.
2010-10-12 02:13:28 +02:00
Michael Natterer c79deb40dd app: don't use a timeout for delaying display flushing
because it might never be called. Instead, check the time since
the last flush_now and make sure they are at least 20 ms apart.
2010-10-11 23:33:33 +02:00
Michael Natterer be2037ce03 app: limit realtime image updates to about 50 fps
which increases responsiveness while painting quite a bit.
2010-10-11 22:49:10 +02:00
Michael Natterer 11bc11d2f7 app: add back the draw timeout 2010-10-11 22:27:32 +02:00
Michael Natterer 38153d7476 app: gimp_paint_tool_oper_update(): stop/start the draw tool only when needed 2010-10-11 22:26:52 +02:00
Christian Krippendorf ff03681bdf Bug 627328 - GIMP 2.6.10 segfaults when CTRL-left click on a layer mask
Move the g_signal_emit() to the end, because the cell->renderer could
be changed and cause a segfault. Also check cell->renderer before
dereferencing it.
2010-10-10 22:32:22 +02:00
Alexandre Prokoudine fee17f8712 Cleanup of recent changes in porting scripts to new API. Marked layer names in carved-logo.scm for translation while at that 2010-10-10 21:07:24 +04:00
Sven Neumann 0a7e3f929f po-script-fu: add contact-sheet.scm to POTFILES.skip instead 2010-10-10 17:48:19 +02:00
Sven Neumann 388c654319 Revert "Added forgotten contactsheet.scm script to the list of translatables"
as the script isn't distributed.

This reverts commit 8f7e1ac8dc.
2010-10-10 17:45:49 +02:00
Alexandre Prokoudine 8f7e1ac8dc Added forgotten contactsheet.scm script to the list of translatables 2010-10-10 18:41:30 +04:00
Alexandre Prokoudine 3abf6de944 Porting scripts to new API, marking layer names for translation 2010-10-10 17:59:29 +04:00
Sven Neumann 4d18135b46 script-fu: use "Rule" instead of "Hrule" 2010-10-10 01:56:00 +02:00
Sven Neumann 9100fd1c62 script-fu: don't include whitespace used as separator in translatable string
Actually we should use a printf()-like syntax here to make such strings
translatable.
2010-10-10 01:54:11 +02:00
Alexandre Prokoudine 0a4657ae9f Porting scripts to new API, marking layer names for translation 2010-10-10 03:52:15 +04:00
Alexandre Prokoudine e1a705c125 Marking layer names for translation 2010-10-10 03:41:21 +04:00
Alexandre Prokoudine e062acbc64 Porting scripts to new API, marking layer names for translation 2010-10-10 03:40:59 +04:00
Alexandre Prokoudine 466523f732 Porting scripts to new API 2010-10-10 02:40:48 +04:00
Sven Neumann bf6a2e6451 app/base: formatting 2010-10-10 00:32:30 +02:00
Alexandre Prokoudine bb9c1210b3 Porting to new API: add-[layer|channel] > insert-[layer|channel] and more, perspective-shadow.scm will need revisiting re. new item transformation API 2010-10-10 02:14:53 +04:00
Michael Natterer 3de4d7263a app: Bug 631619 - Drawing artifacts spread by paintbrush outline on canvas
Add a transform matrix to GimpCanvasBoundary and get rid of the whole
BoundSeg transform code in boundary.c and gimpbrushcore.c, it was
impossible to get this right on that level. Also fix te extents of
GimpCanvasBoundary os it leaves no artifacts.
2010-10-09 22:00:19 +02:00
Michael Natterer f8d6821790 app: get rid of selection_control() in core/ and display/
- replace gimp_display_shell_selection_control() by undraw() and restart()
  which actually say what they are doing
- remove enum GimpSelectionControl
- replace GimpImage::selection_control() by ::selection_invalidate()
  because none of the other enum values was used any longer
2010-10-09 20:28:37 +02:00
Martin Nordholts c1c42f193d app: Remove 'use_cpu_accel' from gimp_init_for_{,gui_}testing()
Remove silly 'use_cpu_accel' parameter from gimp_init_for_testing()
and gimp_init_for_gui_testing().
2010-10-09 18:50:34 +02:00
Barak Itkin 9805ed7dd8 i18n: Add Hebrew and Ukrainian to po-tags/LINGUAS 2010-10-09 18:11:57 +02:00
Michael Natterer cc8c546ed0 app: turn "edit-mask" into a property of GimpCanvasLayerBoundary 2010-10-09 15:34:20 +02:00
Michael Natterer 545e65dda6 app: add gimp_display_shell_selection_pause() and _resume()
and use them instead of gimp_display_shell_selection_control() with
the resp. enum values. Remove the GIMP_SELECTION_PAUSE and _RESUME
enums values and thus the presence of this concept in the core.
2010-10-09 14:26:33 +02:00
Michael Natterer e11ca44ba0 app: use gimp_display_shell_selection_control() in the paint tool
not gimp_image_selection_control(). The image dealing with that
is an artifact that is going to die.
2010-10-09 14:07:04 +02:00
Michael Natterer 71a50bc58a app: rename selection member "hidden" to "show_selection"
and invert its meaning. This has confused me long enough now...
2010-10-09 12:55:11 +02:00