Commit Graph

5686 Commits

Author SHA1 Message Date
Lars-Peter Clausen aa318cd08b plug-ins/pygimp/gimpui.defs Readded wrapper for the new GimpRuler.
2008-08-29  Lars-Peter Clausen  <lars@metafoo.de>
	
	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Readded wrapper for the new GimpRuler.


svn path=/trunk/; revision=26814
2008-08-29 11:09:35 +00:00
Michael Natterer edcd1e7810 libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h
2008-08-29  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimphruler.[ch]
	* libgimpwidgets/gimpvruler.[ch]: remove separate H/VRuler classes.

	* libgimpwidgets/gimpruler.[ch]: add an "orientation" property
	instead. Add gimp_ruler_new().

	* libgimpwidgets/gimpwidgets.def: changed accordingly.

	* app/dialogs/resolution-calibrate-dialog.c
	* app/display/gimpdisplayshell.c
	* plug-ins/gfig/gfig-preview.c
	* plug-ins/imagemap/imap_preview.c: ditto.


svn path=/trunk/; revision=26810
2008-08-29 10:25:29 +00:00
Lars-Peter Clausen ee9d10f70a plug-ins/pygimp/gimpui.defs Removed wrappers for GimpRuler, GimpHRuler,
2008-08-29  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Removed wrappers for GimpRuler, GimpHRuler, GimpVRuler, as those
	are going to be removed from libgimpwidgets.


svn path=/trunk/; revision=26809
2008-08-29 09:41:16 +00:00
Lars-Peter Clausen 0d97703b65 plug-ins/pygimp/gimpui.defs Wrapped GimpRuler, GimpHRuler and GimpVRuler
2008-08-28  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Wrapped GimpRuler, GimpHRuler and GimpVRuler widgets.


svn path=/trunk/; revision=26807
2008-08-28 20:49:07 +00:00
Lars-Peter Clausen 3de0fab74a plug-ins/pygimp/gimpui.defs Merged gimpui.{defs,override} from pygimp GSoC
2008-08-28  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Merged gimpui.{defs,override} from pygimp GSoC project.
	Updates gimpui module to have bindings for most widgets functions.


svn path=/trunk/; revision=26806
2008-08-28 19:51:02 +00:00
Lars-Peter Clausen 8ff73b4c2d Removed some unnecessary g_new/g_free and improved range checking.
2008-08-27  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-tile.c
	(pr_subscript): Removed some unnecessary g_new/g_free and improved 
	range checking.
	(pr_ass_sub): Improved range checking.
	(pygimp_pixel_rgn_new): Clamp pixel region size to the drawable's size.


svn path=/trunk/; revision=26791
2008-08-27 15:46:28 +00:00
Lars-Peter Clausen 22d7a536c2 Don't set tp_new for PyGimpTile_Type and PyGimpPixelRgn_Type as both don't
2008-08-26  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpmodule.c:
	Don't set tp_new for PyGimpTile_Type and PyGimpPixelRgn_Type as both
	don't have init functions.


svn path=/trunk/; revision=26785
2008-08-26 22:06:00 +00:00
Lars-Peter Clausen 4d4ef1a8cf Ensure that the python drawables gimp drawable is set. (pf_dealloc): Don't
2008-08-26  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-tile.c
	(pf_init): Ensure that the python drawables gimp drawable is set.
	(pf_dealloc): Don't crash if the pixel fetchers init function failed.


svn path=/trunk/; revision=26784
2008-08-26 21:59:21 +00:00
Martin Nordholts b5b51b475f libgimpwidgets/gimpwidgets.c
2008-08-26  Martin Nordholts  <martinn@svn.gnome.org>

	* libgimpwidgets/gimpwidgets.c

	* plug-ins/common/file-xbm.c
	* plug-ins/common/file-wmf.c
	* plug-ins/common/file-svg.c
	* plug-ins/common/file-gih.c
	* plug-ins/common/blur-motion.c
	* plug-ins/file-jpeg/jpeg-save.c
	* plug-ins/lighting/lighting-ui.c
	* plug-ins/map-object/map-object-ui.c

	* app/tools/gimpsheartool.c
	* app/tools/gimpaligntool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimplevelstool.c
	* app/dialogs/resize-dialog.c
	* app/dialogs/offset-dialog.c
	* app/widgets/gimppaletteeditor.c
	* app/widgets/gimpcolormapeditor.c
	* app/dialogs/layer-options-dialog.c
	* app/display/gimpdisplayshell-scale-dialog.c: Pass page_size = 0
	to gimp_spin_button_new() to adapt to new and correct value
	clamping in GTK+.

svn path=/trunk/; revision=26778
2008-08-26 19:32:14 +00:00
Lars-Peter Clausen 141e7eb460 Moved execution into global namespace. Fixes import statements inside of
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/plug-ins/python-fu-eval.py: Moved execution into
	global namespace. Fixes import statements inside of evaled code.


svn path=/trunk/; revision=26746
2008-08-24 16:54:38 +00:00
Lars-Peter Clausen 0527aaa3e4 Fix wrong strcmp evaluation.
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Fix wrong strcmp
	evaluation.


svn path=/trunk/; revision=26745
2008-08-24 16:38:23 +00:00
Lars-Peter Clausen c796bca92f Fix method format string, so the method is actual callable in a script.
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-drawable.c (drw_transform_rotate,
	drw_transform_flip_simple): Fix method format string, so the
	method is actual callable in a script.


svn path=/trunk/; revision=26744
2008-08-24 16:31:35 +00:00
Sven Neumann 82550ffe54 return with a proper PDB status type depending on the result of
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: return with a proper PDB status type
	depending on the result of gtk_print_operation_run(). When run
	non-interactively, pass the error message with the return 
values.


svn path=/trunk/; revision=26729
2008-08-23 17:11:40 +00:00
Sven Neumann d3ca13db06 applied patch from LightningIsMyName. Changes the script to not break if
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/coolmetal-logo.scm: applied patch
	from LightningIsMyName. Changes the script to not break if 
called
	on a floating selection (bug #327681).


svn path=/trunk/; revision=26728
2008-08-23 16:29:39 +00:00
Sven Neumann ebea1b5ada dropped use of AM_LDFLAGS completely and use target-specific LDFLAGS
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/twain/Makefile.am: dropped use of AM_LDFLAGS 
completely
	and use target-specific LDFLAGS instead.


svn path=/trunk/; revision=26721
2008-08-23 10:30:37 +00:00
Sven Neumann c908bfc3fc plug-ins/script-fu/script-fu-scripts.c changed to actually return a
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-interface.[ch]: changed to 
actually
	return a meaningful return status when a script-fu procedure is 
run.


svn path=/trunk/; revision=26702
2008-08-21 17:35:52 +00:00
Sven Neumann bf1c783f44 plug-ins/script-fu/Makefile.am new files split out of
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/script-fu-eval.[ch]: new files split out of
	script-fu-console.c[ch].

	* plug-ins/script-fu/script-fu-text-console.h: fixed comment.

	* plug-ins/script-fu/script-fu-console.[ch]: removed 
script-fu-eval
	procedure here.

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


svn path=/trunk/; revision=26698
2008-08-21 14:48:29 +00:00
Sven Neumann c85fc6eb21 formatting.
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu.c (script_fu_run): formatting.


svn path=/trunk/; revision=26697
2008-08-21 14:01:17 +00:00
Sven Neumann 6ddb6aa712 use the new API to set the PDB error handler in order to suppress a
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (page_setup): use the new API to set 
the
	PDB error handler in order to suppress a warning if the 
temporary
	procedure does not exist (see bug #513291).


svn path=/trunk/; revision=26683
2008-08-20 18:11:26 +00:00
Sven Neumann 05287d057a pass error message with the return values instead of calling g_message().
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c (script_fu_eval_run):
	pass error message with the return values instead of calling
	g_message().


svn path=/trunk/; revision=26680
2008-08-20 14:45:21 +00:00
Michael Natterer b28a3306e0 plug-ins/common/align-layers.c plug-ins/common/blur-gauss.c
2008-08-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/align-layers.c
	* plug-ins/common/blur-gauss.c
	* plug-ins/common/cartoon.c
	* plug-ins/common/edge-dog.c
	* plug-ins/common/edge-neon.c
	* plug-ins/common/edge-sobel.c
	* plug-ins/common/photocopy.c
	* plug-ins/common/pixelize.c
	* plug-ins/common/softglow.c
	* plug-ins/gradient-flare/gradient-flare.c: pass error messages
	with the return values instead of calling g_message().


svn path=/trunk/; revision=26679
2008-08-20 14:19:35 +00:00
Michael Natterer 84bbb4d0a3 tons of cleanup: proper prototypes, s/unsigned foo/gufoo/, indentation,
2008-08-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/file-gif-load.c: tons of cleanup: proper
	prototypes, s/unsigned foo/gufoo/, indentation, ...


svn path=/trunk/; revision=26678
2008-08-20 14:17:10 +00:00
Sven Neumann fd5550a4b2 plug-ins/common/file-cel.c plug-ins/common/file-html-table.c
2008-08-20  Sven Neumann  <sven@gimp.org>
 
	* plug-ins/common/file-cel.c
	* plug-ins/common/file-html-table.c
	* plug-ins/common/file-ps.c
	* plug-ins/common/file-sunras.c
	* plug-ins/common/file-tiff-load.c: pass error messages with the
	return values instead of calling g_message().


svn path=/trunk/; revision=26677
2008-08-20 14:00:44 +00:00
Sven Neumann 584d078e5e plug-ins/file-fits/fits.c pass error messages with the return values
2008-08-20  Sven Neumann  <sven@gimp.org>
 
	* plug-ins/file-fits/fits.c
	* plug-ins/file-fli/fli-gimp.c: pass error messages with the
	return values instead of calling g_message()


svn path=/trunk/; revision=26676
2008-08-20 13:44:17 +00:00
Sven Neumann 74b29fe9c9 pass error messages with the return values instead of calling g_message().
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-xjt/xjt.c: pass error messages with the return
	values instead of calling g_message().


svn path=/trunk/; revision=26675
2008-08-20 13:01:57 +00:00
Sven Neumann 6f3a122953 plug-ins/file-sgi/sgi.c pass error messages with the return values instead
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-sgi/sgi.c
	* plug-ins/file-sgi/sgi-lib.[ch]: pass error messages with the
	return values instead of calling g_message().


svn path=/trunk/; revision=26674
2008-08-20 12:49:41 +00:00
Sven Neumann 5e347ed24b plug-ins/file-psd/psd.c plug-ins/file-psd/psd-load.[ch]
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-psd/psd.c
	* plug-ins/file-psd/psd-load.[ch]
	* plug-ins/file-psd/psd-save.c 
	* plug-ins/file-psd/psd-thumb-load.[ch]: pass error messages 
with
	the return values instead of calling g_message().


svn path=/trunk/; revision=26671
2008-08-20 07:36:25 +00:00
Sven Neumann 5084939673 plug-ins/file-jpeg/jpeg.[ch] plug-ins/file-jpeg/jpeg-load.[ch] pass error
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-jpeg/jpeg.[ch]
	* plug-ins/file-jpeg/jpeg-load.[ch]
	* plug-ins/file-jpeg/jpeg-save.[ch]: pass error messages with 
the
	return values instead of calling g_message().


svn path=/trunk/; revision=26670
2008-08-20 07:07:56 +00:00
Sven Neumann 39571e1656 create GHashTable with destroy notifiers.
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-ico/ico-save.c: create GHashTable with destroy
	notifiers.


svn path=/trunk/; revision=26668
2008-08-20 06:24:45 +00:00
Sven Neumann 3f26d82b62 plug-ins/file-faxg3/faxg3.c plug-ins/file-ico/ico.c
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-faxg3/faxg3.c
	* plug-ins/file-ico/ico.c
	* plug-ins/file-ico/ico-load.[ch]
	* plug-ins/file-ico/ico-save.[ch]: pass error messages with the
	return values instead of calling g_message().


svn path=/trunk/; revision=26667
2008-08-20 06:15:35 +00:00
Sven Neumann 6e23a26307 plug-ins/file-bmp/bmp.[ch] plug-ins/file-bmp/bmp-read.c for most errors,
2008-08-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-bmp/bmp.[ch]
	* plug-ins/file-bmp/bmp-read.c
	* plug-ins/file-bmp/bmp-write.c: for most errors, pass the error
	message with the return values instead of calling g_message().


svn path=/trunk/; revision=26657
2008-08-19 06:27:32 +00:00
Sven Neumann 369d991fd2 Complements the fix for bug #344818:
2008-08-19  Sven Neumann  <sven@gimp.org>

	Complements the fix for bug #344818:

	* libgimpbase/gimpbaseenums.[ch]: added new enum 
GimpPDBErrorHandler.

	* tools/pdbgen/enums.pl: regenerated.

	* app/plug-in/gimpplugin.[ch]: added error_handler to 
GimpPlugIn.

	* app/plug-in/gimpplugin-message.c 
(gimp_plug_in_handle_proc_run):
	only display an error message for a failed procedure call if the
	plug-in's error-handler is set to 
GIMP_PDB_ERROR_HANDLER_INTERNAL.
	
	* tools/pdbgen/pdb/plug_in.pdb: added PDB getter and setter for
	the plug-in's error-handler.

	* app/pdb/plug-in-cmds.c
	* app/pdb/internal-procs.c
	* libgimp/gimpenums.c.tail
	* libgimp/gimpplugin_pdb.[ch]: regenerated.

	* plug-ins/common/file-compressor.c
	* plug-ins/file-uri/uri.c: set the error-handler to
	GIMP_PDB_ERROR_HANDLER_PLUGIN as these plug-ins are forwarding 
the
	error with their return values.


svn path=/trunk/; revision=26656
2008-08-18 22:54:26 +00:00
Sven Neumann 8b0384a70a pass error messages with the return values instead of calling g_message().
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-uri/uri.c: pass error messages with the return
	values instead of calling g_message().

	* plug-ins/file-uri/uri-backend-libcurl.c
	* plug-ins/file-uri/uri-backend-gnomevfs.c
	* plug-ins/file-uri/uri-backend-gvfs.c
	* plug-ins/file-uri/uri-backend-wget.c: set errors in the 
	G_FILE_ERROR domain and other minor cleanups.


svn path=/trunk/; revision=26655
2008-08-18 21:18:01 +00:00
Sven Neumann cc60f022b1 open the temporary file before forking. This allows us to return an error
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-compressor.c: open the temporary file
	before forking. This allows us to return an error message if the
	file can't be opened. Also changed the code to not use 
g_message()
	from the child process.


svn path=/trunk/; revision=26653
2008-08-18 20:47:19 +00:00
Sven Neumann 7c57332c6c pass some error message with the return values instead of calling
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-compressor.c: pass some error message 
with
	the return values instead of calling g_message().


svn path=/trunk/; revision=26652
2008-08-18 19:51:52 +00:00
Sven Neumann 6d5c0a635f fixed typo in help string
svn path=/trunk/; revision=26651
2008-08-18 19:37:55 +00:00
Sven Neumann a1cbd58195 plug-ins/common/file-gbr.c plug-ins/common/file-gih.c
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-gbr.c
	* plug-ins/common/file-gih.c
	* plug-ins/common/file-pat.c
	* plug-ins/common/file-pix.c
	* plug-ins/common/file-sunras.c: for the most common errors, 
pass
	the error message with the return values instead of calling
	g_message().


svn path=/trunk/; revision=26650
2008-08-18 19:35:55 +00:00
Michael Natterer 7caea1c8e8 renamed... ...to this.
2008-08-18  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/compressor.c: renamed...
	* plug-ins/common/file-compressor.c: ...to this.

	* plug-ins/common/plugin-defs.pl: changed accordingly.

	* plug-ins/common/Makefile.am: regenerated.


svn path=/trunk/; revision=26648
2008-08-18 19:27:14 +00:00
Sven Neumann a458135b1a plug-ins/common/file-xbm.c plug-ins/common/file-xpm.c for the most common
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-xbm.c
	* plug-ins/common/file-xpm.c
	* plug-ins/common/file-xwd.c: for the most common errors, pass 
the
	error message with the return values instead of calling 
g_message().


svn path=/trunk/; revision=26646
2008-08-18 19:08:54 +00:00
Sven Neumann baabae4d0d pass error message with the return values instead of calling g_message().
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-wmf.c: pass error message with the return
	values instead of calling g_message().


svn path=/trunk/; revision=26642
2008-08-18 13:07:28 +00:00
Sven Neumann fc059e310d plug-ins/common/file-raw.c plug-ins/common/file-tga.c
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-raw.c
	* plug-ins/common/file-tga.c
	* plug-ins/common/file-tiff-load.c
	* plug-ins/common/file-tiff-save.c: pass error messages with the
	return values instead of calling gimp_message().


svn path=/trunk/; revision=26640
2008-08-18 10:02:20 +00:00
Sven Neumann edabd739d4 plug-ins/common/file-pnm.c plug-ins/common/file-ps.c for the most common
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-pnm.c
	* plug-ins/common/file-ps.c
	* plug-ins/common/file-psp.c: for the most common errors, pass 
the
	error message with the return values instead of calling
	gimp_message().


svn path=/trunk/; revision=26639
2008-08-18 06:53:21 +00:00
Sven Neumann 592d59765e plug-ins/common/file-mng.c for the most common errors, pass the error
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-mng.c
	* plug-ins/common/file-pcx.c: for the most common errors,
	pass the error message with the return values instead of calling
	gimp_message().

	* plug-ins/common/file-gif-save.c
	* plug-ins/common/file-pdf.c
	* plug-ins/common/file-png.c: minor cleanup.


svn path=/trunk/; revision=26638
2008-08-18 06:31:03 +00:00
Sven Neumann d5da6ce87b in case of an error, pass the error message with the return values.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-pdf.c: in case of an error, pass the 
error
	message with the return values.


svn path=/trunk/; revision=26637
2008-08-17 21:39:44 +00:00
Sven Neumann ad828a0301 plug-ins/common/file-gif-load.c for the most common errors, pass the error
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-gif-load.c
	* plug-ins/common/file-gif-save.c: for the most common errors,
	pass the error message with the return values instead of calling
	gimp_message().

	* plug-ins/common/file-png.c: unmarked a string for translation.
	This error condition can't possibly happen.

	* plug-ins/common/file-svg.c: also return an error message when
	the thumbnail can't be loaded.


svn path=/trunk/; revision=26636
2008-08-17 21:30:34 +00:00
Sven Neumann cb21ecf5a2 for the most common errors, pass the error message with the return values
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-dicom.c: for the most common errors, pass
	the error message with the return values instead of calling
	gimp_message().


svn path=/trunk/; revision=26634
2008-08-17 21:04:02 +00:00
Sven Neumann c60a4ba597 in case of an error, pass the error message with the return values.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-csource.c (save_image): in case of an
	error, pass the error message with the return values.


svn path=/trunk/; revision=26633
2008-08-17 20:56:01 +00:00
Sven Neumann e73fc40cf4 don't hardcode the tile size, use gimp.tile_width() instead.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/whirlpinch.py: don't hardcode the 
tile
	size, use gimp.tile_width() instead.


svn path=/trunk/; revision=26632
2008-08-17 20:37:31 +00:00
Sven Neumann 00f704f82f formatting.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/whirlpinch.py: formatting.


svn path=/trunk/; revision=26631
2008-08-17 20:21:29 +00:00
Sven Neumann 2c348c7a71 plug-ins/common/file-desktop-link.c
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-desktop-link.c

	* plug-ins/common/file-svg.c: changed to pass error messages 
with
	the return values instead of calling g_message().


svn path=/trunk/; revision=26626
2008-08-17 18:28:55 +00:00