Commit graph

24106 commits

Author SHA1 Message Date
Michael Natterer d2307c1bf6 add GError parameter and replace g_message() by g_set_error().
2008-09-15  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.[ch] (gimp_layer_add_mask): add GError
	parameter and replace g_message() by g_set_error().

	* app/core/gimplayermaskundo.c
	* app/xcf/xcf-load.c
	* app/actions/layers-commands.c: pass NULL errors since these
	places know what they are doing. Ha ha...

	* tools/pdbgen/pdb/layer.pdb
	* tools/pdbgen/pdb/image.pdb: pass the error so we get more real
	error messages for failed PDB calls.

	* app/pdb/image-cmds.c
	* app/pdb/layer-cmds.c: regenerated.


svn path=/trunk/; revision=26948
2008-09-15 21:05:01 +00:00
Michael Natterer c7a92cddc2 Bug 552413 – Script triggers Gimp-Core-CRITICAL
2008-09-15  Michael Natterer  <mitch@gimp.org>

	Bug 552413 – Script triggers Gimp-Core-CRITICAL

	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/layer.pdb: add some more checks that produce
	proper PDB error messages when adding and removing layer masks
	instead of having the code run into assertions in the called core
	functions. Also add some more checks when removing layers,
	channels or vectors.

	* app/pdb/image-cmds.c
	* app/pdb/layer-cmds.c: regenerated.


svn path=/trunk/; revision=26947
2008-09-15 20:45:42 +00:00
Alexandre Prokoudine 4ecffa67f3 updated Russian translation
svn path=/trunk/; revision=26946
2008-09-15 14:44:28 +00:00
Sven Neumann c997af5816 news update for 2.5.4
svn path=/trunk/; revision=26945
2008-09-15 13:06:15 +00:00
Sven Neumann 9fa3af8d3f updated German translation.
2008-09-15  Sven Neumann  <sven@gimp.org>

	* de.po: updated German translation.


svn path=/trunk/; revision=26944
2008-09-15 10:02:20 +00:00
Kevin Cozens 600274e85d Applied changes from official version of TinyScheme which adds tests for
2008-09-14  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (mk_vector), (opexe_2):
	Applied changes from official version of TinyScheme which adds
	tests for when mk_vector is out of memory. Can't rely on sc->sink.

svn path=/trunk/; revision=26943
2008-09-14 22:59:06 +00:00
Goran Rakic 460b0ffbfd Updated Serbian translation
svn path=/trunk/; revision=26942
2008-09-14 15:19:48 +00:00
Michael Schumacher 97b36969a1 removed double "the" from translatable string. Fixes bug #552127.
2008-09-13  Michael Schumacher  <schumaml@cvs.gnome.org>

	* app/actions/edit-actions.c (edit_actions): removed double "the"
	from translatable string. Fixes bug #552127.

svn path=/trunk/; revision=26941
2008-09-13 20:03:29 +00:00
Claude Paroz 3e51c2307a Updated French translation.
2008-09-13  Claude Paroz  <claude@2xlibre.net>

	* fr.po: Updated French translation.

svn path=/trunk/; revision=26940
2008-09-13 15:34:50 +00:00
Claude Paroz e8ff7b2bad Updated French translation by Yannick Tailliez and Robert-André Mauchin.
2008-09-13  Claude Paroz  <claude@2xlibre.net>

	* fr.po: Updated French translation by Yannick Tailliez and Robert-André
	Mauchin.

svn path=/trunk/; revision=26939
2008-09-13 15:25:12 +00:00
Sven Neumann d1f00eb6a0 flush the displays after closing the undo group. Should fix bug #552104.
2008-09-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_image_apply_profile): flush the
	displays after closing the undo group. Should fix bug #552104.


svn path=/trunk/; revision=26938
2008-09-13 12:09:53 +00:00
Kevin Cozens e5c73a05b4 plug-ins/script-fu/tinyscheme/scheme.c Applied changes froh official
2008-09-12  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c
	* plug-ins/script-fu/tinyscheme/scheme.h: Applied changes froh
	official version of TinyScheme which expose more of the internals.
	Part of making it more suitable for Scheme->C->Scheme calling.
	See SourceForge bug #1599947.

svn path=/trunk/; revision=26937
2008-09-12 17:30:28 +00:00
Sven Neumann 69b6f2874b return the list of created images. Only create displays when running in
2008-09-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/guillotine.c: return the list of created 
images.
	Only create displays when running in interactive mode.


svn path=/trunk/; revision=26936
2008-09-12 15:23:42 +00:00
Michael Natterer c985f2e2a5 changed GimpBrush::get_extension() to return const gchar* instead of
2008-09-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdata.h: changed GimpBrush::get_extension() to return
	const gchar* instead of gchar*

	* app/core/gimpbrush.c
	* app/core/gimpbrushgenerated.c
	* app/core/gimpcurve.c
	* app/core/gimpgradient.c
	* app/core/gimppalette.c
	* app/core/gimppattern.c: changed accordingly.


svn path=/trunk/; revision=26935
2008-09-12 10:35:35 +00:00
Daniel Nylander 4159bd63af sv.po: Updated Swedish translation
svn path=/trunk/; revision=26934
2008-09-12 06:24:12 +00:00
Daniel Nylander f5ea7fa225 sv.po: Updated Swedish translation
svn path=/trunk/; revision=26933
2008-09-12 06:23:03 +00:00
Goran Rakic 6749f0f76c Updated Serbian translation (by Miloš Popović)
svn path=/trunk/; revision=26932
2008-09-11 21:34:51 +00:00
Wadim Dziedzic adcfc3fed1 Updated Polish translation by Bartosz Kosiorek
2008-09-11  Wadim Dziedzic  <wdziedzic@aviary.pl>

	* pl.po: Updated Polish translation by Bartosz Kosiorek 

svn path=/trunk/; revision=26931
2008-09-11 21:22:59 +00:00
Kevin Cozens 2f42209d7a Updating to match version in official version of TinyScheme.
2008-09-11  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/CHANGES: Updating to match version
	in official version of TinyScheme.

	* plug-ins/script-fu/tinyscheme/scheme.c: Applied changes from
	official version of TinyScheme which adds entry point for nested
	calling. Part of making it more suitable for Scheme->C->Scheme
	calling. See SourceForge bug #1599945. Updated usage information
	using text from Manual.txt.

svn path=/trunk/; revision=26930
2008-09-11 20:57:38 +00:00
Michael Natterer 2b461792df forgot to remove plug-ins/script-fu/re here.
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* configure.in: forgot to remove plug-ins/script-fu/re here.


svn path=/trunk/; revision=26929
2008-09-11 20:05:07 +00:00
Michael Natterer c76db26367 reordered and renamed functions to be consistent. Got rid of file-global
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.[ch]: reordered and renamed
	functions to be consistent. Got rid of file-global "register_scripts"
	variable. Pass more "scheme *sc" pointers around to reduce usage
	or the global variable.

	* plug-ins/script-fu/script-fu-eval.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-server.c
	* plug-ins/script-fu/script-fu.c: changed accordingly.


svn path=/trunk/; revision=26928
2008-09-11 18:00:18 +00:00
Michael Natterer af9817b466 make a string pointer const.
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-modules.c (gimp_modules_unload): make a string
	pointer const.


svn path=/trunk/; revision=26927
2008-09-11 17:19:07 +00:00
Tor Lillqvist 3095df7ebd Clarification.
svn path=/trunk/; revision=26926
2008-09-11 14:21:03 +00:00
Michael Natterer 5c6132b8cb namespace, copyright headers, indentation, formatting, everything...
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-regex.[ch]: namespace, copyright
	headers, indentation, formatting, everything...

	* plug-ins/script-fu/scheme-wrapper.c: changed accordingly. Some
	formatting cleanup here too.


svn path=/trunk/; revision=26925
2008-09-11 13:33:58 +00:00
Michael Natterer 5b8abde69f make string members const.
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpexport.c (struct ExportAction): make string members
	const.


svn path=/trunk/; revision=26924
2008-09-11 11:49:13 +00:00
Michael Natterer 53d82016bc convert the filename to UTF-8 before displaying it in the error message.
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_load_script):
	convert the filename to UTF-8 before displaying it in the error
	message.


svn path=/trunk/; revision=26923
2008-09-11 08:49:49 +00:00
Michael Natterer 13a7c01115 use g_set_error() instead of g_set_error_literal() which is only available
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):
	use g_set_error() instead of g_set_error_literal() which is only
	available in glib 2.18.


svn path=/trunk/; revision=26922
2008-09-11 08:36:29 +00:00
Michael Natterer bace080590 plug-ins/script-fu/Makefile.am removed....
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/re/*: removed....

	* plug-ins/script-fu/script-fu-regex.[ch]: and replaced with a
	few-liner using GRegex. Seems to have some issues that need to be
	sorted out.

	* plug-ins/script-fu/scheme-wrapper.c: changed accordingly.


svn path=/trunk/; revision=26921
2008-09-10 23:10:15 +00:00
Michael Natterer 0765087a8f Change Script-Fu error handling to properly use the new error message
2008-09-10  Michael Natterer  <mitch@gimp.org>

	Change Script-Fu error handling to properly use the new error
	message passing in PDB return values:

	* plug-ins/script-fu/script-fu-scripts.[ch]: remove function
	script_fu_error_msg().

	* plug-ins/script-fu/script-fu-interface.c (script_fu_ok): output
	errors of interactive script-fu dialogs directly here with
	g_message().

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):
	add GError and return the error message instead of displaying it.

	(script_fu_load_script): show the returned error here (and make it
	more specific than the former script_fu_error_msg() did).

	(script_fu_script_proc): return error messages via the procedure's
	return values.

	* plug-ins/script-fu/scheme-wrapper.c
	(script_fu_marshal_procedure_call): if an error message was
	returned from the PDB call, pass it to foreign_error() so it ends
	up where it should (consle, text console or error string).

	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu-text-console.c: set the error
	handler to PLUGIN while interpreting scheme, we handle errors
	from calling back into the PDB ourselves now.


svn path=/trunk/; revision=26920
2008-09-10 20:33:50 +00:00
Michael Natterer 3977873bc0 fix prototype (foo() is not a prototype, use foo(void) instead).
2008-09-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme.h: fix prototype (foo() is
	not a prototype, use foo(void) instead).


svn path=/trunk/; revision=26919
2008-09-10 20:07:17 +00:00
Tor Lillqvist 2a01f97b6e Untabify.
2008-09-10  Tor Lillqvist  <tml@novell.com>

	* app/gui/gui-unique.c: Untabify.


svn path=/trunk/; revision=26918
2008-09-10 20:01:45 +00:00
Tor Lillqvist 0fb8352667 Destroy the proxy window here so that gimp_unique_win32_open() in
2008-09-10  Tor Lillqvist  <tml@novell.com>

	* app/gui/gui-unique.c (gui_unique_win32_exit): Destroy the proxy
	window here so that gimp_unique_win32_open() in app/unique.c won't
	find it. This is important especially in a developer version where
	the debug output window might be left open and the proxy window
	still existing for a long time after the GTK+ main loop of the
	GIMP GUI has finished. Thanks to Michael Schumacher for pointing
	this out.

	There is still a small race window here after GIMP has begun
	closing down its GUI in gui_exit_callback() and before the proxy
	window has gone away. If another GIMP starts during that interval,
	it will find the proxy window and send it a message, which will
	then either be ignored, or the proxy window will have been
	destroyed before it gets the message. Let's ignore that. There is
	a much wider time window during which multiple GIMP instances may
	be started during GIMP startup anyway.


svn path=/trunk/; revision=26917
2008-09-10 20:00:53 +00:00
Tor Lillqvist 9950975d6b gui_unique_win32_message_handler() can be static. Include file/file-open.h
2008-09-10  Tor Lillqvist  <tml@novell.com>

	* app/gui/gui-unique.c: gui_unique_win32_message_handler() can be
	static. Include file/file-open.h for file_open_from_command_line()
	declaration. Fix copy/paste glitch in gui_unique_exit().


svn path=/trunk/; revision=26916
2008-09-10 19:25:54 +00:00
Michael Natterer 420b60b8de factor out function that selects a path and scrolls to that path. Keep the
2008-09-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpactionview.c: factor out function that selects a
	path and scrolls to that path. Keep the selected path visible if
	it is still there after filtering.


svn path=/trunk/; revision=26914
2008-09-10 10:44:41 +00:00
Michael Natterer 440214f259 made action labels more consistent, use '°' instead of 'degrees'.
2008-09-10  Michael Natterer  <mitch@gimp.org>

	* app/actions/context-actions.c: made action labels more
	consistent, use '°' instead of 'degrees'.

	* app/actions/context-commands.c: cosmetic change in macro
	parameters.


svn path=/trunk/; revision=26913
2008-09-10 10:01:54 +00:00
Michael Natterer bc5cb7edc3 plug-ins/file-uri/uri-backend-wget.c s/while (1)/while (TRUE)/
2008-09-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/file-uri/uri-backend-wget.c
	* plug-ins/file-xjt/xjt.c: s/while (1)/while (TRUE)/


svn path=/trunk/; revision=26912
2008-09-10 09:53:21 +00:00
Michael Natterer faf7eaa244 remove debug arrays to map the values of registered enums to strings. Look
2008-09-09  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c
	(script_fu_marshal_procedure_call): remove debug arrays to map the
	values of registered enums to strings. Look up the strings
	registered with the type system instead.


svn path=/trunk/; revision=26911
2008-09-09 14:40:52 +00:00
Michael Natterer 11b6b0742b fix formatting of prototypes.
2008-09-09  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c: fix formatting of prototypes.

	(script_fu_marshal_procedure_call): move variables to local scopes
	where possible. Make this function a bit readable by indenting the
	debug code in DEBUG_MARSHAL normally.


svn path=/trunk/; revision=26910
2008-09-09 14:22:44 +00:00
Inaki Larranaga Murgoitio 41d4c4cc4f Updated Basque translation.
2008-09-09  Inaki Larranaga Murgoitio  <dooteo@euskalgnu.org>

	* eu.po: Updated Basque translation.


svn path=/trunk/; revision=26909
2008-09-09 12:40:51 +00:00
Michael Natterer 8101b98cae remove references to $(REGEXREPL).
2008-09-09  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am: remove references to $(REGEXREPL).


svn path=/trunk/; revision=26908
2008-09-09 12:22:04 +00:00
Michael Natterer 72c4ef1a83 app/Makefile.am remove references to $(REGEXREPL).
2008-09-09  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* plug-ins/script-fu/Makefile.am: remove references to $(REGEXREPL).


svn path=/trunk/; revision=26907
2008-09-09 12:21:43 +00:00
Inaki Larranaga Murgoitio b05e9a3dfa Updated Basque translation.
2008-09-09  Inaki Larranaga Murgoitio  <dooteo@euskalgnu.org>

	* eu.po: Updated Basque translation.


svn path=/trunk/; revision=26906
2008-09-09 12:07:36 +00:00
Sven Neumann 01a9a1bce8 don't leak the GimpDrawable.
2008-09-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-psd/psd-save.c (create_merged_image): don't leak
	the GimpDrawable.


svn path=/trunk/; revision=26905
2008-09-09 08:01:49 +00:00
Martin Nordholts 9d37148ae9 Formating.
* plug-ins/file-psd/psd-save.c (save_data): Formating.

svn path=/trunk/; revision=26904
2008-09-09 05:12:09 +00:00
Sven Neumann 7af4227334 some more updates.
2008-09-08  Sven Neumann  <sven@gimp.org>

	* authors.xml: some more updates.

	* AUTHORS: regenerated.


svn path=/trunk/; revision=26903
2008-09-08 21:02:42 +00:00
Sven Neumann 8e29280319 applied patch from Dennis Ranke as attached to bug #551231. Changes the
2008-09-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-psd/psd-save.c: applied patch from Dennis Ranke 
as
	attached to bug #551231. Changes the PSD save plug-in to store
	transparency data in the image data section. Also fixes bug 
#551232
	(saving an indexed image with multiple layers as PSD modifies 
the
	image).


svn path=/trunk/; revision=26902
2008-09-08 20:42:55 +00:00
Sven Neumann bdce2966d6 based on a patch from David Gowers clamp the brush scale so that the brush
2008-09-08  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpbrushcore.c: based on a patch from David Gowers
	clamp the brush scale so that the brush never becomes smaller 
than
	0.5 pixels. Fixes bug #548631.


svn path=/trunk/; revision=26900
2008-09-08 19:06:32 +00:00
Michael Natterer 3827523fe7 Bug 551306 – Color picker for text tool does not show selected palette
2008-09-08  Michael Natterer  <mitch@gimp.org>

	Bug 551306 – Color picker for text tool does not show selected
	palette

	* app/tools/gimptexttool.c (gimp_text_tool_register): add
	GIMP_CONTEXT_PALETTE_MASK to the tool option's context mask so the
	color popup's palette follows the globally selected palette.


svn path=/trunk/; revision=26899
2008-09-08 12:50:41 +00:00
Sven Neumann 52142fde13 restored alphabetic order. Use real name instead of a nick.
2008-09-08  Sven Neumann  <sven@gimp.org>

	* authors.xml: restored alphabetic order. Use real name instead 
of
	a nick.

	* AUTHORS: regenerated.

	* app/dialogs/authors.xsl: changed rule to only include
	contributors from the 2.6 development cycle in the About dialog.


svn path=/trunk/; revision=26898
2008-09-08 10:48:16 +00:00
Roman Joost ada6f40935 updated documenters who contributed to the user manual since 2.4
2008-09-08  Roman Joost  <romanofski@gimp.org>

	* authors.xml: updated documenters who contributed to the user
	manual since 2.4

svn path=/trunk/; revision=26897
2008-09-08 10:33:42 +00:00