Commit Graph

28393 Commits

Author SHA1 Message Date
Mukund Sivaraman 8b57945ebb Convert spaces to tab in def file 2010-10-16 11:48:48 +05:30
Mukund Sivaraman c7f36d1546 Add missing symbols to gimpwidgets.def 2010-10-16 11:48:23 +05:30
Mukund Sivaraman f1a7db80c9 Validate number of colors in XCF colormaps 2010-10-16 04:22:11 +05:30
Mukund Sivaraman 4855d433b0 Validate XCF string length
This patch limits the string length to 16 MB. If problems occur in the
future because 16 MB is small, increase the limit by modifying
MAX_XCF_STRING_LEN.
2010-10-16 04:13:27 +05:30
Mukund Sivaraman 675a9c3950 Decrement sample size just like in the gradients_sample_uniform case 2010-10-15 22:27:01 +05:30
Nils Philippsen bec9e4b4ea pygimp: deprecate gimpui.UnitMenu 2010-10-15 17:27:06 +02:00
Nils Philippsen bc265758b0 pygimp: add wrapper for GimpUnit, GimpUnitComboBox 2010-10-15 17:27:06 +02:00
Nils Philippsen b07eed8208 pygimp: fix building with deprecated GimpUnitMenu 2010-10-15 17:27:06 +02:00
Michael Natterer 628439bc31 app: simplify toolbox wilber drawing a lot 2010-10-15 16:03:36 +02:00
Michael Natterer 37effb99a4 app: use the window's allocation instead of gdk_drawable_get_size() 2010-10-15 15:17:12 +02:00
Michael Natterer 5af8cc1d40 app: translate the cr by allocation.x,y instead of doing this while drawing 2010-10-15 15:06:43 +02:00
Michael Natterer b69eea8cd6 app: implement GObject::dispose() instead of GtkObject::destroy() 2010-10-15 14:08:36 +02:00
Michael Natterer 3c18ba3497 app: implement GObject::dispose() instead of GtkWidget::destroy() 2010-10-15 13:48:36 +02:00
Michael Natterer 756b7310e7 app: cairo_translate() by allocation.x,y instead of doing that when drawing 2010-10-15 13:02:05 +02:00
Michael Natterer 1cc27bcef7 app: port gimp_view_renderer_draw() to take a cairo_t* instead of GdkWindow*
and pass in the cr with clipping set up from the callers instead.
2010-10-15 12:53:58 +02:00
Michael Natterer dc39857238 app: add GimpSegment as replacement for GdkSegment 2010-10-15 12:37:36 +02:00
Michael Natterer 1948feb686 libgimp: implement GObject::dispose() instead of GtkWidget::destroy() 2010-10-15 12:17:10 +02:00
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