Commit Graph

1539 Commits

Author SHA1 Message Date
Michael Natterer 94737aae8c libgimp: deprecate gimp_[drawable]_attach_new_parasite()
They were unused, and it's silly to have a "convenience" function
to replace three trivial lines of code.
2010-07-09 13:30:31 +02:00
Michael Natterer ef9c292e37 libgimp: use item API instead of deprecated drawable API 2010-07-09 13:28:57 +02:00
Michael Natterer ce9ea1e8d7 libgimp: use item API instead of deprecated drawable API 2010-07-09 11:29:35 +02:00
Michael Natterer 3c2dcf2df5 pdb: deprecate drawable API that got replaced by item API 2010-07-09 11:25:35 +02:00
Michael Natterer 056a3bf256 libgimp: use gimp_item_get_name() instead of deprecated API 2010-07-09 11:22:18 +02:00
Michael Natterer 7314d3fe4f pdb: deprecate the drawable and vectors parasite APIs 2010-07-09 10:36:17 +02:00
Michael Natterer d0c80bae12 pdb: add parasite API for items 2010-07-09 10:19:30 +02:00
Michael Natterer 0fdf7c6e28 pdb: deprecate vectors API that is now in item 2010-07-09 10:10:55 +02:00
Michael Natterer 20c3dc0df9 pdb: remove drawable's and vector's "lock-content" API
because it's new in 2.8 and doesn't need to be deprecated.
2010-07-09 09:46:31 +02:00
Michael Natterer 1bca2d8eb0 pdb: don't talk about "pixels" in items docs 2010-07-09 09:45:30 +02:00
Michael Natterer 2d6f808ff8 pdb: add a new PDB group "item" and move lots of functions to it
The item groups has all the duplicated functionality from drawable
and vectors (name, visible, linked etc).

Hijack the unused GIMP_PDB_REGION and turn it into GIMP_PDB_ITEM;
change all protocol aware files accordingly and bump the protocol
version number. Change script-fu to handle the new type.
2010-07-09 09:34:44 +02:00
Michael Natterer d303d8c7c1 Revert "pdb: Added a procedure to check how many processors GIMP is configured to use."
This reverts commit b22880c32f.
Adding this procedure was a misunderstanding on IRC.
2010-07-09 02:30:10 +02:00
Barak Itkin b22880c32f pdb: Added a procedure to check how many processors GIMP is configured to use.
Added the procedure get_number_of_processors to gimprc.pdb and regenerated the
other files using pdbgen.
2010-07-09 02:50:13 +03:00
Michael Natterer c78e4c8d63 libgimp: move docs from template files to inline comments
Also split up the "tools" docs into separate files so it matches
the new autogenerated PDB section headers.
2010-07-07 11:48:10 +02:00
Michael Natterer 3a2cd14382 tools: add pdbgen support for generating gtk-doc SECTION comments
Add the new $doc_title, $doc_short_desc and $doc_long_desc strings to
all .pdb files.
2010-07-07 11:43:10 +02:00
Barak Itkin 3f66808584 Added a function to export the Pango markup of a text layer
This is required for the PDF export plugin.
2010-06-01 21:21:40 +02:00
Michael Natterer a2c70822d4 Use accessors from GTK+ 2.20 instead of using sealed members directly 2010-04-19 19:21:07 +02:00
Michael Natterer 1aeb315ecf undef GTK_DISABLE_DEPRECATED in many places which undef GSEAL_ENABLE
because the widget flag access macros (e.g. GTK_WIDGET_REALIZED) are
now deprecated in GTK+ master.
2010-03-06 23:14:29 +01:00
Martin Nordholts cf31690eaf libgimp: Update gimp.def with new symbols 2010-01-08 12:09:42 +01:00
Martin Nordholts 857dc9d85e libgimp: Cleanup gimp.def 2010-01-08 12:09:40 +01:00
Michael Natterer 8cee9c66a7 Build with GSEAL_ENABLE and #undef it where accessors are missing 2009-10-17 18:55:14 +02:00
Michael Natterer 256ac5e62e Add "lock_content" PDB getters and setters for drawables and vectors 2009-08-21 14:30:41 +02:00
Martin Nordholts 8cd7f148d6 libgimp: Add export dialog API
Add gimp_export_dialog_new() for creating a export dialog and
gimp_export_dialog_get_content_area() for accessing the vbox where
clients can put widgets.
2009-07-21 16:03:53 +02:00
Martin Nordholts 9956fb5348 libgimp: Clarify semantics of gimp_export_image() without format_name 2009-07-21 12:44:26 +02:00
Martin Nordholts f1b14dd6b7 Update library .def files 2009-07-12 12:48:06 +02:00
Michael Schumacher a1dc35baca [libgimp] Added missing export gimp_image_get_uri 2009-05-22 00:04:14 +02:00
Sven Neumann 94e626e1cc Bug 568479 – add PDB procedures to manipulate size of text box
2009-03-31  Sven Neumann  <sven@gimp.org>

	Bug 568479 – add PDB procedures to manipulate size of text box

	* tools/pdbgen/pdb/text_layer.pdb: add gimp-text-layer-resize,
	based on a patch from Barak Itkin.

	* app/pdb/internal-procs.c
	* app/pdb/text-layer-cmds.c
	* libgimp/gimptextlayer_pdb.[ch]: regenerated.


svn path=/trunk/; revision=28235
2009-03-31 19:07:12 +00:00
Michael Natterer 19c96dcc72 use GtkAdjustment's accessors.
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpzoompreview.c: use GtkAdjustment's accessors.

	* libgimp/gimpprocbrowserdialog.c: use accessors instead of
	dialog->vbox and widget->parent.


svn path=/trunk/; revision=28204
2009-03-22 22:36:43 +00:00
Michael Natterer 8becbc6568 libgimp/gimpbrushselectbutton.c libgimp/gimpexport.c
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpbrushselectbutton.c
	* libgimp/gimpexport.c
	* libgimp/gimpfontselectbutton.c
	* libgimp/gimpgradientselectbutton.c
	* libgimp/gimpimagecombobox.c
	* libgimp/gimpitemcombobox.c
	* libgimp/gimppaletteselectbutton.c
	* libgimp/gimppatternselectbutton.c
	* libgimp/gimpprogressbar.c
	* libgimp/gimpui.c
	* libgimp/gimpzoompreview.c
	* tools/test-clipboard.c: use accessors for various members of
	GTK+ structures that don't exist any longer when GSEAL_ENABLE is
	defined.


svn path=/trunk/; revision=28191
2009-03-22 15:49:13 +00:00
Sven Neumann eb22d0784b corrected documentation of the position parameter.
2009-03-08  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb (image_add_channel): corrected
	documentation of the position parameter.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.


svn path=/trunk/; revision=28129
2009-03-08 11:49:01 +00:00
Sven Neumann 849a18b08c Bug 574149 – Can't get name/filename of files loaded from URI
2009-03-04  Sven Neumann  <sven@gimp.org>

	Bug 574149 – Can't get name/filename of files loaded from URI

	* tools/pdbgen/pdb/image.pdb: added new procedure 
gimp-image-get-uri.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.

	* plug-ins/pygimp/pygimp-image.c: wrap the new procedure into an
	Image attribute.


svn path=/trunk/; revision=28103
2009-03-04 19:35:18 +00:00
Sven Neumann f6cff4b0f8 improved docs for gimp-image-get-filename.
2009-03-04  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb (image_get_filename): improved docs
	for gimp-image-get-filename.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.


svn path=/trunk/; revision=28102
2009-03-04 18:38:14 +00:00
Sven Neumann 93524f3f8b Bug 574149 – Can't get name/filename of files loaded from URI
2009-03-04  Sven Neumann  <sven@gimp.org>

	Bug 574149 – Can't get name/filename of files loaded from URI

	* tools/pdbgen/pdb/image.pdb (image_get_name_invoker): use
	gimp_image_get_display_name().

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.


svn path=/trunk/; revision=28099
2009-03-04 18:24:29 +00:00
Sven Neumann d3df2d4a24 update the progress less often.
2009-02-28  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpregioniterator.c: update the progress less often.

	* plug-ins/common/ripple.c: formatting.


svn path=/trunk/; revision=28082
2009-02-28 17:49:52 +00:00
Martin Nordholts 4d7a6b10d1 Added .gitignore files generated with git svn create-ignore.
svn path=/trunk/; revision=27972
2009-01-31 11:37:44 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann 031a1dfe65 improved docs for gimp-plugin-help-register.
2008-12-16  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/plug_in.pdb: improved docs for
	gimp-plugin-help-register.

	* app/pdb/plug-in-cmds.c
	* libgimp/gimpplugin_pdb.c: regenerated.


svn path=/trunk/; revision=27797
2008-12-16 11:43:32 +00:00
Sven Neumann b654d8f5c1 fixed an error in the documentation of the gimp-image-convert-rgb
2008-12-04  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/convert.pdb: fixed an error in the 
documentation
	of the gimp-image-convert-rgb procedure.

	* app/pdb/convert-cmds.c
	* libgimp/gimpconvert_pdb.c: regenerated.


svn path=/trunk/; revision=27758
2008-12-04 11:09:16 +00:00
Sven Neumann 2766dea04f show the "invalid search term" message in the label below the list instead
2008-11-25  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprocbrowserdialog.c (browser_search): show the
	"invalid search term" message in the label below the list 
instead
	of in the pane on the right side.


svn path=/trunk/; revision=27718
2008-11-25 20:05:19 +00:00
Sven Neumann 7bdf3a0df8 minor code cleanup.
2008-11-25  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpexport.c: minor code cleanup.


svn path=/trunk/; revision=27716
2008-11-25 08:20:56 +00:00
Sven Neumann 239ae58c10 Bug 557830 – PDB browser chokes as you are entering regex characters
2008-11-11  Sven Neumann  <sven@gimp.org>

	Bug 557830 – PDB browser chokes as you are entering regex
	characters

	* libgimp/gimpprocbrowserdialog.c: check if the query is a valid
	regex before calling gimp_procedural_db_query().


svn path=/trunk/; revision=27624
2008-11-11 21:35:41 +00:00
Michael Natterer 855b114f50 Bye bye floating_sel_rigor() and floating_sel_relax():
2008-11-09  Michael Natterer  <mitch@gimp.org>

	Bye bye floating_sel_rigor() and floating_sel_relax():

	* app/core/gimpdrawable.[ch] (gimp_drawable_init_src_region):
	implement compositing the floating selection on the fly. Add
	return parameter "TileManager **temp_tiles" which returns the temp
	buffer used for compositing; the caller has to unref the tiles.

	* app/core/gimpchannel-project.c
	* app/core/gimplayer-project.c: unref the temp_tiles.

	* app/core/gimplayer.[ch]: remove members fs.backing_store and
	fs.initial.

	* app/core/gimplayer-floating-sel.[ch]: remove functions rigor(),
	relax(), store() and restore(), they are not needed any longer.
	Some minor cleanup, more to come.

	* app/core/gimpprojection-construct.c: don't composite the
	floating selection before projecting because that happens on the
	fly now.

	* app/core/core-enums.[ch]
	* app/core/gimpfloatingselundo.c
	* app/core/gimpimage-undo-push.[ch]: remove the rigor and relax
	undos.

	* app/core/gimpdrawable.c
	* app/core/gimpimage-convert.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage.c
	* app/core/gimplayer.c
	* app/xcf/xcf-save.c: remove all calls to rigor and relax and all
	implementations of virtual functions that were just there to
	rigor/releax around chaining up.

	* tools/pdbgen/pdb/floating_sel.pdb: remove all code from the
	rigor and relax wrappers and deprecate the API.

	* app/pdb/floating-sel-cmds.c
	* libgimp/gimpfloatingsel_pdb.[ch]: regenerated.

	* plug-ins/file-xjt/xjt.c: don't call rigor and relax.


svn path=/trunk/; revision=27579
2008-11-09 16:49:37 +00:00
Sven Neumann 02817081ff use NC_() to mark enum values for translation. Use a lower-case short form
2008-11-06  Sven Neumann  <sven@gimp.org>

	* tools/gimp-mkenums: use NC_() to mark enum values for 
translation.
	Use a lower-case short form of the type name as translation 
context.

	* libgimp/libgimp-intl.h: define the NC_() macro as noop.

	* libgimpbase/gimpbasetypes.[ch]
	* libgimpbase/gimpbase.def: added new functions to set and
	get a translation context on an enum type.

	* app/base/Makefile.am
	* app/core/Makefile.am
	* app/display/Makefile.am
	* app/paint/Makefile.am
	* app/plug-in/Makefile.am
	* app/text/Makefile.am
	* app/tools/Makefile.am
	* app/widgets/Makefile.am
	* libgimp/Makefile.am
	* libgimpbase/Makefile.am:
	* libgimpconfig/Makefile.am
	* libgimpthumb/Makefile.am
	* libgimpwidgets/Makefile.am: register the translation context
	with the enum types.

	* app/display/display-enums.h
	* libgimpbase/gimpbaseenums.h
	* libgimpconfig/gimpcolorconfig-enums.h: removed old-style 
explicit
	translation context.

	* app/base/base-enums.c
	* app/core/core-enums.c
	* app/display/display-enums.c
	* app/paint/paint-enums.c
	* app/plug-in/plug-in-enums.c
	* app/text/text-enums.c
	* app/tools/tools-enums.c
	* app/widgets/widgets-enums.c
	* libgimpbase/gimpbaseenums.c
	* libgimpconfig/gimpcolorconfig-enums.c
	* libgimpwidgets/gimpwidgetsenums.c: regenerated.


svn path=/trunk/; revision=27562
2008-11-06 08:28:28 +00:00
Sven Neumann fe520925b7 app/base/Makefile.am app/core/Makefile.am app/display/Makefile.am
2008-11-03  Sven Neumann  <sven@gimp.org>

	
	* app/base/Makefile.am
	* app/core/Makefile.am
	* app/display/Makefile.am
	* app/paint/Makefile.am
	* app/plug-in/Makefile.am
	* app/text/Makefile.am
	* app/tools/Makefile.am
	* app/widgets/Makefile.am
	* libgimp/Makefile.am
	* libgimpbase/Makefile.am: 
	* libgimpconfig/Makefile.am
	* libgimpthumb/Makefile.am
	* libgimpwidgets/Makefile.am: micro-optimization in the 
generated
	enum registration code.

	* app/base/base-enums.c
	* app/core/core-enums.c
	* app/display/display-enums.c
	* app/paint/paint-enums.c
	* app/plug-in/plug-in-enums.c
	* app/text/text-enums.c
	* app/tools/tools-enums.c
	* app/widgets/widgets-enums.c
	* libgimpbase/gimpbaseenums.c
	* libgimpconfig/gimpcolorconfig-enums.c
	* libgimpwidgets/gimpwidgetsenums.c: regenerated.


svn path=/trunk/; revision=27538
2008-11-03 21:38:13 +00:00
Sven Neumann e76dd6cf60 added basic gtk-doc comment for gimp_proc_view_new().
2008-10-31  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprocview.c: added basic gtk-doc comment for
	gimp_proc_view_new().


svn path=/trunk/; revision=27499
2008-10-31 19:47:31 +00:00
Sven Neumann f0938de1bf libgimp/gimp.def libgimpbase/gimpbase.def updated with new symbols.
2008-10-29  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.def
	* libgimpbase/gimpbase.def
	* libgimpcolor/gimpcolor.def: updated with new symbols.


svn path=/trunk/; revision=27470
2008-10-29 22:31:25 +00:00
Sven Neumann 033fcf1628 added new enum GimpTextHintStyle.
2008-10-27  Sven Neumann  <sven@gimp.org>

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

	* libgimp/gimpenums.c.tail
	* tools/pdbgen/enums.pl: regenerated.

	* app/text/gimptext.[ch]: added new property "hint-style". 
Removed
	"autohint" property and mapped the boolean property "hinting" to
	the new enum property "hint-style".

	* app/text/gimptextlayout-render.c 
(gimp_text_layout_render_flags):
	use "hint-style".

	* app/tools/gimptextoptions.[ch]: changed tool options 
accordingly.

	* tools/pdbgen/pdb/text_layer.pdb: deprecated the "hinting" API
	and introduced getters and setters for "hint-style".

	* app/pdb/text-layer-cmds.c
	* app/pdb/internal-procs.c
	* libgimp/gimptextlayer_pdb.[ch]: regenerated.


svn path=/trunk/; revision=27432
2008-10-27 07:59:32 +00:00
Hans Breuer d94419a9fd updated include <string.h> for memcmp() include <string.h> for strcmp()
2008-10-03  Hans Breuer  <hans@breuer.org>

	* **/makefie.msc gimpdefs.msc app/gimpcore.def : updated
	* app/core/gimpcurve.c : include <string.h> for memcmp()
	* app/gegl/gimpcurvesconfig.c : include <string.h> for strcmp()

svn path=/trunk/; revision=27118
2008-10-03 19:27:54 +00:00
Martin Nordholts 7bb585132d Update documentation, the layer does not need to have an alpha channel. A
* tools/pdbgen/pdb/selection.pdb (selection_layer_alpha): Update
documentation, the layer does not need to have an alpha channel. A
layer without an alpha channel is considered opaque.

* app/pdb/selection-cmds.c 
* libgimp/gimpselection_pdb.c: Regenerated.

svn path=/trunk/; revision=27040
2008-09-24 09:09:27 +00:00
Sven Neumann c286952086 tools/pdbgen/pdb/layer.pdb added new scale procedures that allow to
2008-09-24  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/layer.pdb
	* tools/pdbgen/pdb/image.pdb: added new scale procedures that
	allow to specify the interpolation explicitly. Fixes bug 
#486977.
	Also pass the progress parameter to the scale and rotate 
functions.

	* app/pdb/image-cmds.c
	* app/pdb/internal-procs.c
	* app/pdb/layer-cmds.c
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimplayer_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.


svn path=/trunk/; revision=27039
2008-09-24 08:28:16 +00:00
Sven Neumann c01408279c fixed error and some typos in the PDB documentation.
2008-09-24  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb: fixed error and some typos in the
	PDB documentation.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.


svn path=/trunk/; revision=27038
2008-09-24 07:47:58 +00:00
Michael Natterer b9ec59e455 fix docs: there is no such thing as gimp_query_procedure(), the function
2008-09-19  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimp.[ch] (gimp_destroy_paramdefs): fix docs: there is
	no such thing as gimp_query_procedure(), the function is called
	gimp_procedural_db_proc_info().


svn path=/trunk/; revision=27012
2008-09-19 10:42:32 +00:00
Sven Neumann 1a8859805c app/plug-in/gimppluginprocedure.c minor cleanups.
2008-09-18  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginprocedure.c
	* libgimp/gimp.c: minor cleanups.


svn path=/trunk/; revision=26999
2008-09-18 16:25:39 +00:00
Sven Neumann 78c71c9d9d allow to pass NULL for "num_colors".
2008-09-17  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpimage.c (gimp_image_get_colormap): allow to pass
	NULL for "num_colors".

	* plug-ins/print/print-draw-page.c: added missing conversion
	routines for indexed images. Fixes bug #552609.


svn path=/trunk/; revision=26973
2008-09-17 14:45:56 +00:00
Sven Neumann b2ad06a19f added GError parameter to gimp_image_{raise,lower}_{channel,layer,vectors}
2008-09-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage.[ch]: added GError parameter to
	gimp_image_{raise,lower}_{channel,layer,vectors} functions and
	removed calls to g_message().

	* app/actions/channels-commands.c
	* app/actions/layers-commands.c
	* app/actions/vectors-commands.c: pass NULL for the GError
	parameter as these actions are insensitive if they would fail.

	* tools/pdbgen/pdb/image.pdb: changed accordingly. Corrected the
	documentation.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.


svn path=/trunk/; revision=26953
2008-09-16 20:56:41 +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
Sven Neumann 1a81eba1fc made the GimpParamDef parameter in gimp_proc_view_new() const.
2008-09-04  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprocview.[ch]: made the GimpParamDef parameter in
	gimp_proc_view_new() const.


svn path=/trunk/; revision=26858
2008-09-04 12:23:36 +00:00
Aurimas Juška 1aed48f1b0 fixed GimpZoomPreview to handle layers with offsets and display
2008-09-02  Aurimas Juška  <aurisj@svn.gnome.org>

	* libgimp/gimpzoompreview.c (gimp_zoom_preview_draw_buffer),
	(gimp_zoom_preview_set_drawable): fixed GimpZoomPreview to handle
	layers with offsets and display intersection of layer and selection
	in the preview. (bug #156905)


svn path=/trunk/; revision=26838
2008-09-02 17:56:48 +00:00
Sven Neumann 61d870cdd3 libgimpbase/gimpbase.def added new symbols.
2008-08-19  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpbase.def
	* libgimp/gimp.def: added new symbols.


svn path=/trunk/; revision=26658
2008-08-19 06:33:48 +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 9d56dec5d4 translator comments must not have a line between the comment and the
string

svn path=/trunk/; revision=26606
2008-08-16 18:20:06 +00:00
Sven Neumann d0b0cca94d added translator comments.
2008-08-16  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c (gimp_get_pdb_error): added translator 
comments.


svn path=/trunk/; revision=26605
2008-08-16 17:37:26 +00:00
Sven Neumann 2fcef8b03e Next step towards fixing bug #344818:
2008-08-16  Sven Neumann  <sven@gimp.org>

	Next step towards fixing bug #344818:

	* libgimp/gimp.[ch]: keep the last error status and error 
message
	in libgimp. Added new functon gimp_pdb_get_error() that allows 
to
	retrieve it.

	* libgimp/gimp.def: updated.

	* plug-ins/pygimp/gimpmodule.c (pygimp_vectors_import_from_file)
	(pygimp_vectors_import_from_string): use the new function to get
	a more useful error message.


svn path=/trunk/; revision=26602
2008-08-16 17:18:13 +00:00
Sven Neumann a29da323b6 added new procedure 'gimp-layer-new-from-visible'.
2008-08-07  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/layer.pdb: added new procedure
	'gimp-layer-new-from-visible'.

	* app/pdb/layer-cmds.c
	* app/pdb/internal-procs.c
	* libgimp/gimplayer_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.


svn path=/trunk/; revision=26422
2008-08-07 16:09:39 +00:00
Tor Lillqvist c1d3d25ef2 Code built by the still unstable mingw-w64 toolchain gets bogus argc and
2008-08-07  Tor Lillqvist  <tml@novell.com>

	* app/main.c: Code built by the still unstable mingw-w64 toolchain
	gets bogus argc and argv when built as subsystem:windows, so use
	__argc and __argv instead, which seem to be OK.

	* libgimp/gimp.h: Similar change here.


svn path=/trunk/; revision=26420
2008-08-07 15:45:33 +00:00
Sven Neumann f67012e016 fixed gtk-doc comment syntax.
2008-08-06  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixelrgn.c (gimp_pixel_rgn_configure): fixed 
gtk-doc
	comment syntax.


svn path=/trunk/; revision=26403
2008-08-06 18:45:44 +00:00
Sven Neumann bef9ba2945 applied patch from LightningIsMyName adding the new PDB function
2008-07-28  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/vectors.pdb: applied patch from 
LightningIsMyName
	adding the new PDB function gimp-vectors-copy (bug #544212).

	* app/pdb/internal-procs.c
	* app/pdb/vectors-cmds.c
	* libgimp/gimpvectors_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.


svn path=/trunk/; revision=26328
2008-07-28 14:13:18 +00:00
Sven Neumann efc8351987 improved the documentation of gimpui_init().
2008-07-17  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpui.c: improved the documentation of gimpui_init().


svn path=/trunk/; revision=26211
2008-07-17 08:58:56 +00:00
Sven Neumann 66b0b1d498 fixed documentation (bug #542972).
2008-07-15  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/edit.pdb: fixed documentation (bug #542972).

	* app/pdb/edit-cmds.c
	* libgimp/gimpedit_pdb.c: regenerated.


svn path=/trunk/; revision=26193
2008-07-14 22:52:14 +00:00
Sven Neumann f92a070fa8 added new PDB function gimp-palette-get-colors that retrieves all colors
2008-07-14  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/palette.pdb: added new PDB function
	gimp-palette-get-colors that retrieves all colors from a palette
	in a single call. Based on patches from bug #332206.

	* app/pdb/palette-cmds.c
	* app/pdb/internal-procs.c
	* libgimp/gimppalette_pdb.[ch]: regenerated.
	
	* libgimp/gimp.def: updated.


svn path=/trunk/; revision=26192
2008-07-14 14:46:50 +00:00
Sven Neumann 81131c0bb4 Add new PDB data type PDB_COLORARRAY for using arrays of GimpRGB colors as
2008-07-14  Sven Neumann  <sven@gimp.org>

	Add new PDB data type PDB_COLORARRAY for using arrays of GimpRGB
	colors as argument or return value.

	* libgimpbase/gimpbaseenums.[ch] (enum GimpPDBArgType): replaced
	the unused GIMP_PDB_BOUNDARY with GIMP_PDB_COLORARRAY.

	* libgimpbase/gimpprotocol.h: increased GIMP_PROTOCOL_VERSION.
	(struct _GPParam): added d_colorarray entry to the union.

	* libgimpbase/gimpprotocol.c
	* libgimp/gimp.[ch]
	* app/pdb/gimp-pdb-compat.c
	* app/plug-in/plug-in-params.c
	* app/plug-in/gimpplugin-message.c
	* tools/pdbgen/pdb.pl: deal with the new data type.

	* tools/pdbgen/enums.pl: regenerated.

	* plug-ins/pygimp/pygimp-pdb.c
	* plug-ins/script-fu/scheme-wrapper.c: handle the new data type.


svn path=/trunk/; revision=26189
2008-07-14 14:09:16 +00:00
Michael Natterer 58cfcd4f57 libgimp/gimpgradientselectbutton.c libgimp/gimpmenu.c
2008-06-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpgradientselectbutton.c
	* libgimp/gimpmenu.c
	* libgimpwidgets/gimpbrowser.c
	* libgimpwidgets/gimpcellrenderercolor.c
	* libgimpwidgets/gimpcellrenderertoggle.c
	* libgimpwidgets/gimpchainbutton.c
	* libgimpwidgets/gimpcolorarea.c
	* libgimpwidgets/gimpcolorscale.c
	* libgimpwidgets/gimpcolorscales.c
	* libgimpwidgets/gimpcolorselect.c
	* libgimpwidgets/gimpenumwidgets.c
	* libgimpwidgets/gimpframe.c
	* libgimpwidgets/gimphelpui.c
	* libgimpwidgets/gimpoffsetarea.c
	* libgimpwidgets/gimppreviewarea.c
	* libgimpwidgets/gimppropwidgets.c
	* libgimpwidgets/gimpscrolledpreview.c: use accessors instead of
	accessing members of GTK+ widgets directly.


svn path=/trunk/; revision=26005
2008-06-28 15:09:46 +00:00
Sven Neumann 2750e8d67f fixed comments.
2008-06-03  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpitemcombobox.c: fixed comments.

svn path=/trunk/; revision=25885
2008-06-03 13:46:50 +00:00
Sven Neumann dfbd365e69 added gimp_drawable_free_shadow().
2008-05-26  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.def: added gimp_drawable_free_shadow().


svn path=/trunk/; revision=25819
2008-05-26 20:47:16 +00:00
Michael Natterer 598da617b0 Stop including single headers from gtk+ to be prepared for the upcoming
2008-05-23  Michael Natterer  <mitch@gimp.org>

	Stop including single headers from gtk+ to be prepared
	for the upcoming GTK_DISABLE_SINGLE_INCLUDES:

	* configure.in: add -DGTK_DISABLE_SINGLE_INCLUDES to CPPFLAGS.

	* app/display/gimpcanvas.h
	* app/display/gimpscalecombobox.h
	* app/display/gimpstatusbar.h
	* app/widgets/*.h
	* libgimp/gimpprogressbar.h
	* libgimp/gimpselectbutton.h
	* libgimpwidgets/*.h
	* libgimpwidgets/gimpstock.c
	* plug-ins/uri/gimpmountoperation.h: remove inclusion of parent
	classes and single files from gtk+.

	* app/widgets/gtkwrapbox.h
	* libgimp/gimpbrushmenu.c
	* libgimp/gimpfontmenu.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimppalettemenu.c
	* libgimp/gimppatternmenu.c
	* libgimp/gimpselectbutton.c: #include <gtk/gtk.h>

	* plug-ins/common/poppler.c: undef GTK_DISABLE_SINGLE_INCLUDES
	when including <poppler.h>.


svn path=/trunk/; revision=25781
2008-05-23 20:38:52 +00:00
Sven Neumann 73e717eb34 require glib-gettextize 2.16.
2008-05-23  Sven Neumann  <sven@gimp.org>

	* autogen.sh (GLIB_REQUIRED_VERSION): require glib-gettextize 2.16.

	* libgimp/libgimp-intl.h
	* plug-ins/pygimp/pygimp-intl.h: synced with gi18n-lib.h from glib
	2.16. This adds support for the C_() macro.

	* plug-ins/script-fu/script-fu-intl.h: just include gi18n.h instead
	of duplicating things from this header.

svn path=/trunk/; revision=25775
2008-05-23 13:36:31 +00:00
Sven Neumann e25f8894ae corrected description of gimp-layer-set-show-mask procedure.
2008-05-19  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/layer.pdb: corrected description of
	gimp-layer-set-show-mask procedure.

	* app/pdb/layer-cmds.c
	* libgimp/gimplayer_pdb.c: regenerated.

svn path=/trunk/; revision=25709
2008-05-19 13:27:29 +00:00
Michael Natterer 18502898f8 applied patch from Lars-Peter Clausen which adds
2008-05-17  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/gradient.pdb: applied patch from Lars-Peter
	Clausen which adds gimp-gradient-get-number-of-segments. Fixes
	bug #533474.

	* app/pdb/gradient-cmds.c
	* app/pdb/internal-procs.c
	* libgimp/gimpgradient_pdb.[ch]: regenerated.

	* libgimp/gimp.def: add the new symbol.


svn path=/trunk/; revision=25683
2008-05-17 09:19:58 +00:00
Michael Natterer e5be5664ed Move the shadow tiles from the image to the drawable. Fixes bug #100469.
2008-04-21  Michael Natterer  <mitch@gimp.org>

	Move the shadow tiles from the image to the drawable.
	Fixes bug #100469.

	* app/core/Makefile.am
	* app/core/gimpdrawable-shadow.[ch]: new files implementing
	the shadow tiles.

	* app/core/gimpimage.[ch]: remove the shadow tile manager from the
	GimpImage struct. Remove gimp_image_get_shadow_tiles() and
	_free_shadow_tiles().

	* app/core/gimpdrawable.[ch]: add the shadow tile manager
	here. Remove get_shadow_tiles() and merge_shadow(). Free the
	shadow tiles in finalize and when the drawable gets removed from
	the image.

	* app/core/gimpdrawable-brightness-contrast.c
	* app/core/gimpdrawable-color-balance.c
	* app/core/gimpdrawable-colorize.c
	* app/core/gimpdrawable-curves.c
	* app/core/gimpdrawable-desaturate.c
	* app/core/gimpdrawable-equalize.c
	* app/core/gimpdrawable-hue-saturation.c
	* app/core/gimpdrawable-invert.c
	* app/core/gimpdrawable-levels.c
	* app/core/gimpdrawable-operation.c
	* app/core/gimpdrawable-posterize.c
	* app/core/gimpdrawable-threshold.c
	* app/core/gimpimagemap.c: changed accordingly. Free the shadow tiles
	after using them.

	* app/plug-in/gimpplugin-cleanup.[ch]: add
	gimp_plug_in_cleanup_add_shadow() and _remove_shadow() which keep
	track of whether shadow tiles were created on behalf of a plug-in
	procedure.

	(gimp_plug_in_cleanup): free shadow tiles which were created but
	not destroyed by a plug-in procedure.

	* app/plug-in/gimpplugin-message.c (plug_in_handle_tile_request):
	call gimp_plug_in_cleanup_add_shadow() whenever a plug-in requests
	shadow tiles.

	* tools/pdbgen/pdb/drawable.pdb: use the new drawable shadow
	API. Add new procedure gimp-drawable-free-shadow. Call
	gimp_plug_in_cleaup_remove_shadow() when it gets called.

	* tools/pdbgen/pdb/image.pdb: deprecate gimp-image-free-shadow.
	Calling it has no effect any longer.

	* app/pdb/drawable-cmds.c
	* app/pdb/image-cmds.c
	* app/pdb/internal-procs.c
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimpdrawable_pdb.[ch]: regenerated.


svn path=/trunk/; revision=25510
2008-04-21 17:20:51 +00:00
Sven Neumann f84b68a4af added new procedure gimp-procedural-db-proc-exists.
2008-04-06  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/procedural_db.pdb: added new procedure
	gimp-procedural-db-proc-exists.

	* app/pdb/internal-procs.c
	* app/pdb/procedural-db-cmds.c
	* libgimp/gimpproceduraldb_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.

	* plug-ins/print/print.c (page_setup): use the new procedure.


svn path=/trunk/; revision=25384
2008-04-06 20:30:59 +00:00
Michael Natterer 7f32955006 Revert accidential commit.
svn path=/trunk/; revision=25369
2008-04-04 15:47:17 +00:00
Michael Natterer b5207f42d0 reorder functions so getters and setters are together, rename fontsize()
2008-04-04  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/text_layer.pdb: reorder functions so getters
	and setters are together, rename fontsize() functions to
	font_size(), fix get_color() implementation.

	* app/pdb/text-layer-cmds.c
	* libgimp/gimptextlayer_pdb.[ch]: regenerated.

	* libgimp/gimp.def: changed accordingly.


svn path=/trunk/; revision=25368
2008-04-04 15:42:50 +00:00
Sven Neumann 5fce4a4da6 added gimp_vectors_new_from_text_layer().
2008-04-04  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/vectors.pdb: added
	gimp_vectors_new_from_text_layer().

	* app/pdb/internal-procs.c
	* app/pdb/vectors-cmds.c
	* libgimp/gimpvectors_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.

svn path=/trunk/; revision=25367
2008-04-04 14:50:42 +00:00
Sven Neumann 44952a7fc8 added new symbols.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.def: added new symbols.


svn path=/trunk/; revision=25343
2008-04-02 20:57:15 +00:00
Sven Neumann d331fbd356 tools/pdbgen/Makefile.am new text layer PDB API created by Marcus Heese
2008-04-02  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/pdb/text_layer.pdb: new text layer PDB API 
created
	by Marcus Heese (see bug #164539).

	* app/pdb/Makefile.am
	* app/pdb/text_layer_cmds.c: new generated file.

	* libgimp/Makefile.am
	* libgimp/gimptextlayer_pdb.[ch]: new generated files.

	* app/pdb/internal_procs.[ch]
	* libgimp/gimp_pdb.h
	* tools/pdbgen/groups.pl: regenerated.


svn path=/trunk/; revision=25342
2008-04-02 20:53:51 +00:00
Sven Neumann c5143ab82d fixed bug in last commit.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/stddefs.pdb: fixed bug in last commit.

	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.c: regenerated.


svn path=/trunk/; revision=25338
2008-04-02 20:18:07 +00:00
Sven Neumann 52c09fcfeb added shortcut for contributions from Marcus Heese.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/stddefs.pdb: added shortcut for contributions 
from 
	Marcus Heese.

	* tools/pdbgen/pdb/drawable.pdb: added 
gimp_drawable_is_text_layer(),
	taken from the patch attached to bug #164539.

	* app/pdb/internal_procs.c
	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.


svn path=/trunk/; revision=25337
2008-04-02 19:29:17 +00:00
Sven Neumann 66f4debdc2 libgimp/gimpenums.c.tail regenerated.
* libgimp/gimpenums.c.tail
	* tools/pdbgen/enums.pl: regenerated.

svn path=/trunk/; revision=25329
2008-03-31 22:18:45 +00:00
Sven Neumann 6e531c24ef code cleanup.
2008-03-29  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprocview.c (gimp_proc_view_new): code cleanup.


svn path=/trunk/; revision=25303
2008-03-29 17:01:50 +00:00
Mukund Sivaraman 9ed6b3c75f Fixes for some Sparse reported issues in app, libgimp*/
2008-03-28  Mukund Sivaraman  <muks@mukund.org>

        Fixes for some Sparse reported issues in app, libgimp*/

        * app/gui/gui-vtable.c: Included <gdk/gdkx.h>

        * libgimp/gimpprocview.c: author, date, copyright are pointers.

        * libgimpwidgets/gimpcolorprofilestore.c: Last argument of
        g_scanner_scope_add_symbol() is a pointer.


svn path=/trunk/; revision=25293
2008-03-29 00:03:52 +00:00
Sven Neumann 8d12e1855f minor improvements to the API docs.
2008-03-27  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c: minor improvements to the API docs.


svn path=/trunk/; revision=25264
2008-03-27 17:49:42 +00:00
Sven Neumann 26d1021e77 Properly pass the focus from the core to plug-in dialogs:
2008-03-27  Sven Neumann  <sven@gimp.org>

	Properly pass the focus from the core to plug-in dialogs:

	* libgimpbase/gimpprotocol.[ch]: added a user_time member to the
	GimpConfig struct. Bumped the protocol version to 0x0012.

	* app/core/gimp-gui.[ch]
	* app/gui/gui-vtable.c: added gimp_get_user_time() to get the
	timestamp of the last user interaction.

	* app/plug-in/gimppluginmanager-call.c
	(gimp_plug_in_manager_call_run): pass the timestamp to in the
	GimpConfig message.

	* libgimp/gimp.[ch]:
	* libgimp/gimp.def: added method to access the timestamp as set
	in the config message.

	* libgimp/gimpui.c (gimp_ui_init): construct a fake startup ID and
	set the DESKTOP_STARTUP_ID environment variable.

svn path=/trunk/; revision=25263
2008-03-27 16:30:29 +00:00
Sven Neumann 83feacfefe fixed gtk-doc syntax.
2008-03-22  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixbuf.c: fixed gtk-doc syntax.


svn path=/trunk/; revision=25172
2008-03-22 20:33:51 +00:00
Michael Natterer bc9424a2b5 app/actions/data-commands.c app/actions/debug-commands.c
2008-03-12  Michael Natterer  <mitch@gimp.org>

	* app/actions/data-commands.c
	* app/actions/debug-commands.c
	* app/actions/dockable-commands.c
	* app/dialogs/stroke-dialog.c
	* app/display/gimpdisplayshell-handlers.c
	* app/gui/gui-message.c
	* app/gui/gui.c
	* app/tools/gimpforegroundselectoptions.c
	* app/tools/gimpinkoptions-gui.c
	* app/widgets/gimpcolordialog.c
	* app/widgets/gimpcontainerpopup.c
	* app/widgets/gimpcontainerview-utils.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimpsessioninfo-book.c
	* app/widgets/gimpsessioninfo-dock.c
	* app/widgets/gimptoolbox.c
	* app/widgets/gimpunitcombobox.c
	* app/widgets/gimpviewablebox.c
	* libgimp/gimpexport.c
	* libgimpmodule/gimpmodule.h
	* libgimpwidgets/gimpenumwidgets.c
	* libgimpwidgets/gimpframe.c
	* libgimpwidgets/gimpoldwidgets.c
	* libgimpwidgets/gimpwidgets.c
	* plug-ins/MapObject/mapobject_ui.c
	* plug-ins/common/papertile.c
	* plug-ins/common/sinus.c
	* plug-ins/flame/flame.c
	* plug-ins/helpbrowser/gimpthrobber.c
	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/script-fu-console.c: use accessors instead of
	accessing GtkBin.child and GtkPaned.child1,2 directly.


svn path=/trunk/; revision=25095
2008-03-12 16:58:28 +00:00
Michael Natterer e4b3d432d2 add some perl evilness to make the includes in the generated files look
2008-02-07  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/app.pl: add some perl evilness to make the includes
	in the generated files look almost like they should.

	* tools/pdbgen/pdb/*.pdb: remove inclusion of "core/gimp.h" where
	not needed, clean up lists of includes and functions and reorder
	some functions to make more sense. Zero logic changed.

	* app/pdb/*_cmds.c
	* libgimp/gimpcontext_pdb.[ch]
	* libgimp/gimpbrush_pdb.[ch]: regenerated.


svn path=/trunk/; revision=24830
2008-02-07 22:04:27 +00:00
Sven Neumann c30c5f60a3 libgimpbase/gimpchecks.c libgimp/gimpunitcache.c
2008-01-06  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpchecks.c
	* libgimp/gimpunitcache.c
	* libgimpwidgets/gimppageselector.c
	* libgimpwidgets/gimpcolorscales.c: removed redundant checks for
	enum values (which are unsigned) >= 0.


svn path=/trunk/; revision=24546
2008-01-06 02:14:44 +00:00
Sven Neumann 0c389448fa code cleanup; reduced number of progress updates.
2007-12-17  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpregioniterator.c: code cleanup; reduced number of
	progress updates.

svn path=/trunk/; revision=24381
2007-12-17 09:16:21 +00:00
Sven Neumann d8d68bd5b5 added utility function to reduce code duplication.
2007-12-14  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c: added utility function to reduce
	code duplication.


svn path=/trunk/; revision=24367
2007-12-14 20:08:39 +00:00
Sven Neumann a44fa674f0 app/widgets/Makefile.am removed here...
2007-12-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimpcairo-utils.[ch]: removed here...

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpcairo-utils.[ch]: and added here after some
	cleanup.

	* libgimpwidgets/gimpwidgets.h: include gimpcairo-utils.h.

	* app/widgets/gimpviewrenderer.c
	* app/widgets/gimpviewrenderergradient.c
	* app/widgets/gimpviewrendererpalette.c: changed accordingly.

	* libgimpwidgets/gimpwidgets.def: updated for Cairo utils.

	* libgimp/gimp.def: added gimp_image_get_vectors_by_tattoo.


svn path=/trunk/; revision=24339
2007-12-12 14:17:19 +00:00
Hans Breuer 6f5bbfe0bd updated and removed -GD to let msvc9 complain less
2007-12-09  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc : updated and removed -GD to let msvc9 complain less


svn path=/trunk/; revision=24305
2007-12-09 14:11:09 +00:00
Sven Neumann b039ae13b7 removed outdated information from comment.
2007-11-23  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/procedural_db.pdb: removed outdated information
	from comment.

	* app/pdb/procedural_db_cmds.c
	* libgimp/gimpproceduraldb_pdb.c: regenerated.

svn path=/trunk/; revision=24222
2007-11-23 14:38:37 +00:00
William Skaggs 12405d8c09 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimp/gimp.def: forgot in previous commit

svn path=/trunk/; revision=24190
2007-11-18 20:59:09 +00:00
William Skaggs 10f66b04c7 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* tools/pdbgen/pdb/vectors.pdb:  add code for
	vectors-export-to-file and vectors-export-to-string, as
	requested in bug #497159.

	* app/pdb/vectors_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpvectors_pdb.c
	* libgimp/gimpvectors_pdb.h: rebuilt accordingly.

svn path=/trunk/; revision=24189
2007-11-18 18:51:54 +00:00
Michael Natterer 869daa3fbc replaced by generated version.
2007-11-08  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpenums.c.tail: replaced by generated version.


svn path=/trunk/; revision=24090
2007-11-08 18:09:43 +00:00
Michael Natterer fb1ec39812 remove check for putenv().
2007-11-06  Michael Natterer  <mitch@gimp.org>

	* configure.in: remove check for putenv().

	* app/composite/gimp-composite-3dnow-test.c
	* app/composite/gimp-composite-altivec-test.c
	* app/composite/gimp-composite-mmx-test.c
	* app/composite/gimp-composite-sse-test.c
	* app/composite/gimp-composite-sse2-test.c
	* app/composite/gimp-composite-vis-test.c
	* libgimp/gimpui.c
	* plug-ins/uri/uri-backend-wget.c
	* tools/gimp-remote-x11.c: use g_setenv() instead of putenv().


svn path=/trunk/; revision=24076
2007-11-06 13:28:19 +00:00
Sven Neumann 3ed5d3d7ce improved documentation for gimp-plugin-menu-register.
2007-11-06  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/plug_in.pdb: improved documentation for
	gimp-plugin-menu-register.

	* app/pdb/plug_in_cmds.c
	* libgimp/gimpplugin_pdb.c: regenerated.


svn path=/trunk/; revision=24074
2007-11-06 09:21:32 +00:00
Sven Neumann 5c4d5416cc create a libgimp C wrapper for gimp-image-get-vectors-by-tattoo; this
2007-11-05  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb: create a libgimp C wrapper for
	gimp-image-get-vectors-by-tattoo; this function was accidentally
	forgotten in the 2.4 libgimp API.

	* app/pdb/image_cmds.c
	* libgimp/gimpimage_pdb.[ch]: regenerated.


svn path=/trunk/; revision=24066
2007-11-05 18:19:02 +00:00
Sven Neumann 28dbead28e regenerated
svn path=/trunk/; revision=24033
2007-11-01 17:33:01 +00:00
Michael Natterer 36bda892a9 libgimpbase/Makefile.am removed.
2007-10-31  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/Makefile.am
	* libgimpbase/xdg-user-dir.[ch]: removed.

	* libgimpbase/gimpbaseenums.[ch]: deprecate enum GimpUserDirectory.

	* libgimpbase/gimpenv.[ch]: deprecate gimp_user_directory() and make
	the implementation call g_get_user_special_dir().

	* libgimp/Makefile.am: #undef GIMP_DISABLE_DEPRECATED in gimpenums.c

	* app/widgets/gimpfiledialog.c: use g_get_user_special_dir() instead.

	* plug-ins/pygimp/gimpmodule.c: #undef GIMP_DISABLE_DEPRECATED.


svn path=/trunk/; revision=24018
2007-10-31 13:09:46 +00:00
Michael Natterer b8e862cbd7 when resizing, don't advance the "data" pointer of regions of contiguous
2007-10-23  Michael Natterer  <mitch@gimp.org>

	* app/base/pixel-region.c (pixel_region_resize): when resizing,
	don't advance the "data" pointer of regions of contiguous data. I
	should have made this change along with my pixel region cleanup of
	2005-09-03 which sanitized pixel regions of contiguous data.
	Fixes bug #489229.

	* libgimp/gimppixelrgn.c (gimp_pixel_rgn_resize): remove the same
	code here (the removed code was dead since this function refuses
	to be called on pixel regions without a drawable).


svn path=/trunk/; revision=23922
2007-10-23 14:15:27 +00:00
Sven Neumann c1c7afb03a libgimp/gimppatternselectbutton.c libgimp/gimpbrushselectbutton.c
2007-10-16  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppatternselectbutton.c
	* libgimp/gimpbrushselectbutton.c
	* libgimpwidgets/gimpcolorarea.c
	* app/widgets/gimpdnd.c
	* app/widgets/gimpdockbook.c: set GDK_WINDOW_TYPE_HINT_DND on
	popup windows used to implement a DND cursor.

svn path=/trunk/; revision=23841
2007-10-16 13:56:34 +00:00
Sven Neumann 206f19004f removed obsolete comment about adding alpha before adding a layer above
2007-10-16  Sven Neumann  <sven@gimp.org>

	* libgimp/gimplayer.c (gimp_layer_copy): removed obsolete 
comment
	about adding alpha before adding a layer above the background 
layer.


svn path=/trunk/; revision=23837
2007-10-16 06:02:18 +00:00
Michael Natterer 26745bf519 loop around select() as long as it returns EINTR. Enables debugging of
2007-09-29  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimp.c (gimp_extension_process): loop around select() as
	long as it returns EINTR. Enables debugging of script-fu on
	OSX (and maybe all BSDish systems).


svn path=/trunk/; revision=23686
2007-09-29 10:13:48 +00:00
Sven Neumann 24c4243f28 General fix for bug #478657:
2007-09-21  Sven Neumann  <sven@gimp.org>

	General fix for bug #478657:

	* libgimp/gimpaspectpreview.c
	* libgimp/gimpdrawablepreview.c
	* libgimp/gimpzoompreview.c: let all preview widgets store the
	state of the Preview toggle. Declared "toggle" parameter as unused.

	* plug-ins/common/*.c: pass NULL for "toggle" to
	gimp_drawable_preview_new() and gimp_aspect_preview_new().

svn path=/trunk/; revision=23603
2007-09-21 13:27:33 +00:00
Michael Natterer c1b9979db7 added gimp-layer-flatten. Fixes bug #477026. Fixed docs of
2007-09-15  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/layer.pdb: added gimp-layer-flatten.
	Fixes bug #477026. Fixed docs of gimp-layer-add-alpha.

	* app/pdb/internal_procs.c
	* app/pdb/layer_cmds.c
	* libgimp/gimplayer_pdb.[ch]: regenerated.
	* libgimp/gimp.def: changed accordingly.


svn path=/trunk/; revision=23556
2007-09-15 19:55:35 +00:00
Michael Natterer ec11dbc1a1 remove FOO_DISABLE_DEPRECATED for only glib >= 2.15 and gtk+ >= 2.13, GIMP
2007-09-13  Michael Natterer  <mitch@gimp.org>

	* configure.in: remove FOO_DISABLE_DEPRECATED for only glib >= 2.15
	and gtk+ >= 2.13, GIMP builds fine against the 2.14 and 2.12 APIs
	apart from:

	* app/tools/gimpselectionoptions.c
	* libgimpwidgets/gimphelpui.c: undef GTK_DISABLE_DEPRECATED because
	GtkTooltips is deprecated in gtk+ 2.12.

	* libgimp/gimpui.c
	* plug-ins/common/pat.c: the address of an array is always
	non-NULL, no need to check for that. Fixes new gcc warnings.


svn path=/trunk/; revision=23522
2007-09-13 10:44:07 +00:00
Sven Neumann 37db612bca added gimp_context_list_paint_methods
svn path=/trunk/; revision=23506
2007-09-12 08:44:17 +00:00
Simon Budig 318183ce1f add PDB function to determine the available paint methods.
2007-09-11  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/context.pdb: add PDB function to determine
	the available paint methods.

	* app/pdb/internal_procs.c
	* app/pdb/context_cmds.c
	* libgimp/gimpcontext_pdb.[ch]: regenerated.

	Fixes bug #473513


svn path=/trunk/; revision=23499
2007-09-11 13:18:41 +00:00
Sven Neumann 77b7161a32 app/core/gimp-transform-region.[ch] app/core/gimpchannel.c
2007-09-10  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-transform-region.[ch]
	* app/core/gimpchannel.c
	* app/core/gimpdrawable-transform.[ch]
	* app/core/gimpdrawable.c
	* app/core/gimpimage-item-list.[ch]
	* app/core/gimpitem-linked.[ch]
	* app/core/gimpitem.[ch]
	* app/core/gimplayer.c
	* app/paint/gimpperspectiveclone.c
	* app/vectors/gimpvectors.c: removed supersample parameter from
	transform functions and perform it depending on the interpolation
	type (bug #473265).

	* app/tools/gimptransformoptions.[ch]
	* app/tools/gimptransformtool.c: removed Supersample toggle from
	the transform tool options.

	* tools/pdbgen/pdb/drawable_transform.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: document that the
	supersample parameter is unused and improved documentation of the
	recursion-level parameter.

	* app/pdb/transform_tools_cmds.c
	* app/pdb/drawable_transform_cmds.c
	* libgimp/gimpdrawabletransform_pdb.c: regenerated.

svn path=/trunk/; revision=23494
2007-09-10 15:29:48 +00:00
Raphael Quinet 2e7b1bd12d fixed incorrect description of gimp-selection-is-empty, reported by pk.
2007-08-24  Raphael Quinet  <raphael@gimp.org>

	* tools/pdbgen/pdb/selection.pdb: fixed incorrect description of
	gimp-selection-is-empty, reported by pk.  This function returns
	TRUE when the selection is empty, but the description stated the
	opposite.

	* app/pdb/selection_cmds.c
	* libgimp/gimpselection_pdb.c: regenerated.

svn path=/trunk/; revision=23368
2007-08-24 17:50:04 +00:00
Sven Neumann 9d2350f382 define Q_() for translation context.
2007-08-14  Sven Neumann  <sven@gimp.org>

	* libgimp/libgimp-intl.h: define Q_() for translation context.


svn path=/trunk/; revision=23245
2007-08-14 07:30:23 +00:00
Sven Neumann 2c02cac0ad libgimp/gimp.c cosmetic changes.
2007-07-30  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c
	* libgimpbase/gimpwire.c: cosmetic changes.

svn path=/trunk/; revision=23075
2007-07-30 15:44:56 +00:00
Michael Schumacher cfee62c738 added missing gimp_progress_end
2007-07-26  Michael Schumacher  <schumaml@cvs.gnome.org>

	* libgimp/gimp.def: added missing gimp_progress_end

svn path=/trunk/; revision=23017
2007-07-26 21:34:29 +00:00
Sven Neumann 7e4e919152 added new procedure gimp-progress-end.
2007-07-25  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/progress.pdb: added new procedure gimp-progress-end.

	* app/pdb/progress_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpprogress_pdb.[ch]: regenerated.

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-settings.[ch]: end the progress and save
	the settings from the "end-print" handler. The plug-in then
	appears finished but keeps running in the background until it has
	finished the print operation.

svn path=/trunk/; revision=22994
2007-07-25 10:48:25 +00:00
Sven Neumann 09578ea070 removed extra check for gthread and fold it into the GLIB and GTK checks.
2007-06-25  Sven Neumann  <sven@gimp.org>

	* configure.in: removed extra check for gthread and fold it into
	the GLIB and GTK checks.

	* */Makefile.am: changed accordingly.

	* app/main.c (main): always call g_thread_init().

svn path=/trunk/; revision=22832
2007-06-25 12:41:59 +00:00
Sven Neumann f322854007 app/text/Makefile.am app/core/Makefile.am app/tools/Makefile.am
2007-06-07  Sven Neumann  <sven@gimp.org>

	* app/text/Makefile.am
	* app/core/Makefile.am
	* app/tools/Makefile.am
	* app/display/Makefile.am
	* app/widgets/Makefile.am
	* app/base/Makefile.am
	* app/paint/Makefile.am
	* app/plug-in/Makefile.am
	* libgimp/Makefile.am
	* libgimpthumb/Makefile.am
	* tools/pdbgen/Makefile.am
	* libgimpwidgets/Makefile.am: applied the remaining parts of the
	patch from Daniel Richard G. to fix out-of-source-tree builds
	(bug #444960).

svn path=/trunk/; revision=22735
2007-06-07 13:19:44 +00:00
Mukund Sivaraman c2d1214551 Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.
2007-06-06  Mukund Sivaraman  <muks@mukund.org>

        Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.


svn path=/trunk/; revision=22715
2007-06-06 08:44:52 +00:00
Sven Neumann ba25863e49 libgimp/gimpdrawable.c libgimp/gimppixelfetcher.c libgimp/gimpprogress.c
2007-05-22  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawable.c
	* libgimp/gimppixelfetcher.c
	* libgimp/gimpprogress.c
	* libgimp/gimppixelrgn.c
	* libgimp/gimpregioniterator.c: allocate structs using GSlice.

svn path=/trunk/; revision=22567
2007-05-22 14:04:35 +00:00
Sven Neumann a8c9def029 libgimp/gimpbrushmenu.c libgimp/gimpgradientmenu.c libgimp/gimpfontmenu.c
2007-05-22  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpbrushmenu.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimpfontmenu.c
	* libgimp/gimppatternmenu.c
	* libgimp/gimppalettemenu.c: allocate structs using GSlice.

svn path=/trunk/; revision=22566
2007-05-22 14:02:52 +00:00
Sven Neumann 114e0d7ffc libgimp/gimpbrushselect.c libgimp/gimpgradientselect.c
2007-05-22  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpbrushselect.c
	* libgimp/gimpgradientselect.c
	* libgimp/gimpfontselect.c
	* libgimp/gimppatternselect.c
	* libgimp/gimppaletteselect.c: allocate structs using GSlice.

svn path=/trunk/; revision=22565
2007-05-22 14:01:44 +00:00
Michael Natterer 460fab8fee free parasites using gimp_parasite_free()
2007-05-22  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-params.c (plug_in_args_to_params): free
	parasites using gimp_parasite_free()

	* libgimp/gimp.c (gimp_run_procedure2): free wire messages using
	gimp_wire_destroy().


svn path=/trunk/; revision=22563
2007-05-22 12:36:10 +00:00
Michael Natterer 8de797e0fa app/widgets/gimpthumbbox.c libgimp/gimpprogressbar.c use Gtk functions to
2007-05-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpthumbbox.c
	* libgimp/gimpprogressbar.c
	* plug-ins/script-fu/script-fu-interface.c: use Gtk functions to
	manually iterate the main loop because they release the Gdk lock
	correctly around calling the GLib main loop functions.


svn path=/trunk/; revision=22516
2007-05-16 20:19:31 +00:00
Sven Neumann 687db3d69e plug-ins/common/svg.c plug-ins/common/tiff-load.c
2007-05-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/svg.c
	* plug-ins/common/tiff-load.c
	* plug-ins/common/postscript.c
	* plug-ins/common/poppler.c: added missing calls to
	gimp_window_set_transient().

	* libgimp/gimppixbuf.c (gimp_layer_new_from_pixbuf): reduced
	number of progress updates.


svn path=/trunk/; revision=22491
2007-05-15 07:12:15 +00:00
Sven Neumann 5f56f1e23d libgimp/gimpenums.c.tail regenerated.
* libgimp/gimpenums.c.tail
	* tools/pdbgen/enums.pl: regenerated.



svn path=/trunk/; revision=22477
2007-05-13 16:49:23 +00:00
Simon Budig 196dda778e make gimp-edit-paste-as-new not fail at an empty clipboard, but return -1
2007-05-05  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/edit.pdb: make gimp-edit-paste-as-new not fail
	at an empty clipboard, but return -1 as image id.

	* app/pdb/edit_cmds.c
	* libgimp/gimpedit_pdb.c: regenerated.

	* plug-ins/script-fu/scripts/paste-as-brush.scm
	* plug-ins/script-fu/scripts/paste-as-pattern.scm: Changed
	accordingly, fixes bug #357059.

	* modules/controller_linux_input.c: changed some axis names to
	make more sense.


svn path=/trunk/; revision=22429
2007-05-06 04:42:51 +00:00
Sven Neumann a3ca4bfac5 allow the plug-in a few mistakes before actually warning
svn path=/trunk/; revision=22403
2007-05-04 10:31:53 +00:00
Sven Neumann 5debc2d7ec print a warning on stderr if a plug-in updates the progress too
2007-05-04  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprogress.c (gimp_progress_update): print a warning
	on stderr if a plug-in updates the progress too frequently.


svn path=/trunk/; revision=22402
2007-05-04 10:19:50 +00:00
Sven Neumann d6b3b9bb98 document the image_types parameter (bug #326988).
2007-04-26  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c: document the image_types parameter (bug #326988).


svn path=/trunk/; revision=22346
2007-04-26 14:58:56 +00:00
Sven Neumann 4f6c5c7a24 added a note that calling this function may cause data loss.
2007-04-12  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/display.pdb (display_delete): added a note that
	calling this function may cause data loss.

	* app/pdb/display_cmds.c
	* libgimp/gimpdisplay_pdb.c: regenerated.


svn path=/trunk/; revision=22243
2007-04-12 16:32:20 +00:00
Sven Neumann fb095cf281 don't redefine the GimpParasite struct, just use it.
2007-04-12  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpprotocol.[ch] (struct _GPParam): don't redefine
	the GimpParasite struct, just use it.

	* libgimp/gimp.c: include gimpparasite.h.

	* libgimp/gimpitemcombobox.c (gimp_item_combo_box_new): initialize
	combo_box_type to suppress a compiler warning.

	* libgimpwidgets/gimpmemsizeentry.c (gimp_memsize_entry_new):
	avoid dereferencing a type-punned pointer.


svn path=/trunk/; revision=22237
2007-04-12 14:32:44 +00:00
Sven Neumann 658551379a code cleanup. Removed MEMCPY_IS_NICE define and unconditionally use
2007-03-29  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixelrgn.c: code cleanup. Removed MEMCPY_IS_NICE
	define and unconditionally use memcpy().


svn path=/trunk/; revision=22192
2007-03-29 12:06:45 +00:00
Sven Neumann 49beee20d2 initialize rowstride to zero; it's meaningless as long as data is NULL.
2007-03-29  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixelrgn.c (gimp_pixel_rgn_init): initialize
	rowstride to zero; it's meaningless as long as data is NULL.


svn path=/trunk/; revision=22191
2007-03-29 12:02:07 +00:00
Sven Neumann 3e5bb50311 app/pdb/layer_cmds.c regenerated.
2007-03-28  Sven Neumann  <sven@gimp.org>

	* app/pdb/layer_cmds.c
	* libgimp/gimplayer_pdb.c: regenerated.


svn path=/trunk/; revision=22189
2007-03-28 06:36:56 +00:00
Sven Neumann 08d736af73 rephrased new documentation.
2007-03-19  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c (gimp_install_procedure): rephrased new
	documentation.


svn path=/trunk/; revision=22154
2007-03-21 11:57:31 +00:00
Sven Neumann a68807e56a rephrased new documentation.
2007-03-19  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c (gimp_install_procedure): rephrased new
	documentation.


svn path=/trunk/; revision=22148
2007-03-19 17:00:00 +00:00
Michael Natterer e82a31ad91 Make sure we create actions for all plug-in procedures which have a
2007-03-19  Michael Natterer  <mitch@gimp.org>

	Make sure we create actions for all plug-in procedures which have
	a menu_label, so it's possible to assign shortcuts to them.
	Fixes bug #371300.

	* app/actions/plug-in-actions.c (plug_in_actions_setup): removed
	duplicate code and simply call plug_in_actions_register_procedure()
	on all actions, it already does all needed checks and signal
	connections by itself.

	(plug_in_actions_update)
	(plug_in_actions_register_procedure)
	(plug_in_actions_unregister_procedure): unified checks for whether
	a plug-in procedure needs an action or not: it needs either a
	menu_label or menu_paths and must not have extensions, prefixes or
	magics.

	* libgimp/gimp.c (gimp_install_procedure): document that it's
	possible to install shortcut-only procedures by registering a
	menu_label but no menu_paths.


svn path=/trunk/; revision=22147
2007-03-19 14:41:23 +00:00
Sven Neumann baada48f0e changed strings as suggested in bug #304148).
2007-03-05  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpexport.c: changed strings as suggested in bug 
#304148).


svn path=/trunk/; revision=22050
2007-03-05 21:31:04 +00:00
Sven Neumann d59ce95379 let gimp_gamma() return 2.2 and document the fact that this is a fixed
2007-02-16  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c: let gimp_gamma() return 2.2 and document the
	fact that this is a fixed value and that all pixel data is in the
	sRGB colorspace.

	* plug-ins/common/mng.c: removed check for gimp_gamma() returning 1.0.


svn path=/trunk/; revision=21927
2007-02-16 11:09:09 +00:00
Sven Neumann 18a07d427b ellipsize progress label.
2007-02-01  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpprogressbox.c: ellipsize progress label.

	* app/widgets/gimpprogressdialog.c: set a fixed width for progress
	dialogs.

	* libgimp/gimpprogressbar.c: ellipsize progress label.


svn path=/trunk/; revision=21831
2007-02-01 12:06:21 +00:00
Sven Neumann 98b060eb18 free the thumbnail data that used to be leaked for grayscale thumbnails.
2007-01-22  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixbuf.c (gimp_pixbuf_from_data): free the 
thumbnail
	data that used to be leaked for grayscale thumbnails.


svn path=/trunk/; revision=21758
2007-01-22 21:20:04 +00:00