Commit Graph

26692 Commits

Author SHA1 Message Date
Martin Nordholts caccbe8b67 app/tests: Add XCF write-and-load sanity test
Lay a foundation for having automated XCF file format testing. The
only current test constructs an image, writes it to a file, loads a
new image from that file, and makes sure the loaded image is in the
state we expected, i.e. the same state as the original file.

Next up is adding GIMP 2.6 regression testing to this test suite.
2009-12-21 19:04:48 +01:00
Martin Nordholts 8efb46bd0b app: Remove unused include #include <sys/types.h> in base/base.c 2009-12-21 17:25:01 +01:00
Martin Nordholts facac1a49c devel-docs: Update ui-framework.txt with GimpMenuDock and GimpToolbox 2009-12-20 20:43:57 +01:00
Martin Nordholts a7cb4742c5 app: Correct a comment regarding dock window factory 2009-12-20 20:30:16 +01:00
Martin Nordholts 90d7ffde1a app: Make all GimpDialogFactory members private
Add necessary trivial API that allows us to make remaining
GimpDialogFactory instance members private, and make them private.
2009-12-20 20:21:26 +01:00
Alexia Death dbf844c012 app: Disable history buffer via use of gimprc option
Adds non-UI option to disable the use of often buggy history buffer.
This option defaults to false, since a lot of device/X/GDK combos are broken
and the resulting stroke often actually looks better without history events.
Put (use-event-history yes) in gimprc if you want more events and possibly bugs.
2009-12-20 18:46:25 +02:00
Alexandre Prokoudine b503cfc560 Updated Russian translation, again 2009-12-20 19:25:30 +03:00
Alexia Death 1f4098200a Revert "app: Removing code for making use of the X event history buffer"
This reverts commit af4717e78f.
People want it, to see when the backend is fixed.
2009-12-20 17:29:22 +02:00
Alexia Death af4717e78f app: Removing code for making use of the X event history buffer
X event history buffer is major source of problems. Almost all reports
about painting at an offset from the cursor in GIMP seem to originate
from history buffer bugs either at X or GTK level. There are device&X
combinations that work fine and there are others that are broken.
With current smothing the benefits of using the buffer are almost gone
and more exact does not always mean better to look at.
2009-12-20 16:27:03 +02:00
Martin Nordholts 8699511bbd app: global_dock_window_factory -> global_dock_factory
With GimpDock not being a toplevel any longer, it makes more sense to
name global_dock_factory global_dock_window_factory. Do that.
2009-12-20 14:41:02 +01:00
Martin Nordholts b8fe7278c8 app: Add GimpDialogFactoryPrivate
Add and use GimpDialogFactoryPrivate for the members that are not used
by clients. Remove initialiation in _init() for member put in the
private struct, the struct is zeroed for us.
2009-12-20 12:30:59 +01:00
Martin Nordholts 1ed1f5e31d app: Format static function prototypes in widgets/gimpdialogfactory.c 2009-12-20 12:28:12 +01:00
Lucian Grijincu 7fde4a75db Updated Romanian translation 2009-12-19 19:02:46 +02:00
Alexia Death 355f1bfd56 app: Fix tabs to spaces for dynamics 2009-12-19 17:36:27 +02:00
Marco Ciampa 119c0b3059 Updated italian translation. 2009-12-19 13:40:11 +01:00
Martin Nordholts b237e9343e app: dialogs_toolbox_get() -> dialogs_toolbox_new() 2009-12-19 12:33:27 +01:00
Martin Nordholts a0ffbd17b1 app: Continue cleanup of macro definitions in dialogs/dialogs.c
Move all macros definitions at the top and decorate struct
initialization values with the corresponding member names. Also do
some whitespace adjustments.
2009-12-19 11:26:10 +01:00
Martin Nordholts 5f03cf20d7 app: Improve readability of macros in dialogs/dialogs.c
As a workaround for not using C99, specify struct member names with
comments instead.
2009-12-19 10:36:05 +01:00
Martin Nordholts 6eb3e65445 app: Remove unused variables in gradient_options_gui() 2009-12-19 09:29:49 +01:00
Martin Nordholts a5ef19fb59 app: Cleanup actions/windows-commands.c from last commit
I forgot to rename a function and initialie a variable.
2009-12-19 09:29:35 +01:00
Martin Nordholts 2b7f8f7a7e app: Inline gimp_dialog_factory_show_toolbox()
Merge gimp_dialog_factory_show_toolbox() into the only caller
windows_show_toolbox() to get rid of one non-generic GimpDialogFactory
function.
2009-12-19 09:23:47 +01:00
Alexia Death 6d3ee267be data: Add the dynamics files that missed commit after rename 2009-12-18 23:07:00 +02:00
Alexia Death b95dda6eea app: Fix dynamics mixing for inputs&outputs that have paint options toggles 2009-12-18 20:51:23 +02:00
Alexia Death d2ad292848 app: Remove repeat options from gradient for paint tools
Repeat for gradient/color or any other dynamic driving is provided by fade.
2009-12-18 20:51:23 +02:00
Alexia Death 2337581a2d data: Fix a typo(extra p in taper) for two dynamics presets 2009-12-18 20:51:23 +02:00
Alexandre Prokoudine 523708d849 Updated Russian translation 2009-12-18 20:36:14 +03:00
Martin Nordholts 30bb7b5891 Bug 604796 - Restore keyboard method to acquire screenshot
Move the mnemonic 't' in the File menu from 'Create Template...' to
'Create'.
2009-12-18 18:33:51 +01:00
Martin Nordholts ef6bd20c3b app: When paned widget is removed, clear drag handler
When paned widget is removed, clear drag handler. Not clearing was a
copy and paste mistake.
2009-12-17 19:51:13 +01:00
Khaled Hosny a0b0d72dd7 Updated Arabic translation 2009-12-17 11:01:30 +02:00
Sven Neumann cfc3c4c693 initialize all fields of GimpCoords (based on a patch by Massimo) 2009-12-14 20:28:47 +01:00
Michael Natterer 335597ce7d Bug 604508 - gimp-layer-new-from-visible should work from updated projection
Call gimp_pickable_flush(projection) before creating a new layer from it.
2009-12-14 14:01:37 +01:00
Alan Monfort 15f81f1cb3 Updated breton translation 2009-12-14 12:43:28 +01:00
Denis ARNAUD d5a7e61c79 Updated breton translation 2009-12-14 12:42:40 +01:00
Alan Monfort e77fc1e82b Updated breton translation 2009-12-14 06:08:08 +01:00
Denis ARNAUD 39bb1d0977 Updated breton translation 2009-12-14 06:08:08 +01:00
神州散人 155ecdb8a7 Updated Simplified Chinese translation. 2009-12-14 11:34:45 +08:00
Alexia Death 60705f79e9 app: Making spacing available as dynamic parameter
Spacing is now dynamically controllable. Unlike other parameters it
made little sense to scale down from default spacing so it scales between
current and maximum spacing.
2009-12-13 22:46:09 +02:00
David Planella e2e781c78e Fixed a few typos in the Catalan translation 2009-12-10 22:12:24 +01:00
Martin Nordholts 65c5541faf app: Don't crash when detaching dockables from image window
Don't crash when detaching dockables from the image window. This
scenario only occurs in single-window mode. We solve it by using
global variables and checking for NULL for src_dock_window; there is
no dock window when detaching from the image window.

The use of global variables is meant to be temporary.
2009-12-10 19:30:49 +01:00
Michael Natterer c02d28643f app: fix gimp_button_menu_position() to not add the y position twice
Fixes commit 4822ca0d6d from ages ago,
does nobody around here actually *use* master?
2009-12-10 12:20:03 +01:00
Martin Nordholts c7a5195bdf Bug 604078 - Crash when pressing Backspace with Free Select Tool
Make sure we never call gimp_free_select_tool_remove_last_segment()
with priv->n_segment_indices being negative, and increase robustness
of the code in general.

Note that we always halt the tool when backspace is pressed and there
are no vertices left. This is to minimize the risk of ending up in an
invalid tool state.
2009-12-09 22:33:03 +01:00
Nils Philippsen b7ae59e9a4 SGI: allocate memory more consistently
Allocate memory for both pixels and rows in the same way to make the
code easier understandable.
2009-12-09 17:11:21 +01:00
Simon Budig 4d9724f2f6 SGI: fix out of bounds writes
The functions read_rle8() and read_rle16() didn't check if the addresses
to which they wrote are in bounds when expanding runlength encoded data.
2009-12-09 17:09:27 +01:00
Nils Philippsen 838be627be SGI: cast allocation calculations
In order to avoid overflows when calculating needed memory, cast the
first variable used into a large enough type so the whole calculation is
done in that type.
2009-12-09 17:09:17 +01:00
Nils Philippsen daaf1d2b97 SGI: sanitize input data
Refuse nonsensical xsize, ysize, zsize values.
2009-12-09 17:07:54 +01:00
Nils Philippsen 5aa82f3b6d PAT: sanitize input data
Guard against bogus values of ph.width, ph.height and document why there
are no allocation overflows.
2009-12-09 17:04:45 +01:00
Nils Philippsen b053021a29 GBR: more input data sanitation
Guard against bh.width or bh.height > GIMP_MAX_IMAGE_SIZE, only allow
valid values of bh.bytes.
2009-12-09 17:01:34 +01:00
Nils Philippsen 869dcd7be1 GBR: sanitize input data
Guard against bogus zero width, height, bytes and allocation overflows.
2009-12-09 17:01:34 +01:00
Nils Philippsen a9671395f6 PCX: Avoid allocation overflows.
Multiplying gint values may overflow unless cast into a larger type.
2009-12-09 16:32:29 +01:00
Nils Philippsen ed7f48be05 PCX: sanitize input data
Harden PCX plugin against bad width, height.
2009-12-09 15:40:13 +01:00