Commit graph

2154 commits

Author SHA1 Message Date
Michael Natterer b11878174d apply the delay before selecting, not before grabbing, so the user has
2006-06-18  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/screenshot.c: apply the delay before selecting,
	not before grabbing, so the user has time to rearrange things.
	Fixes bug #345214.
2006-06-18 09:44:43 +00:00
Michael Natterer d8285d0dd9 plug-ins/common/animationplay.c plug-ins/common/colormap-remap.c
2006-06-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/animationplay.c
	* plug-ins/common/colormap-remap.c
	* plug-ins/common/gbr.c
	* plug-ins/common/gih.c
	* plug-ins/common/gnomeprint.c
	* plug-ins/common/mail.c
	* plug-ins/common/pat.c
	* plug-ins/common/plugin-browser.c
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/screenshot.c
	* plug-ins/common/uniteditor.c
	* plug-ins/metadata/metadata.c
	* plug-ins/print/print.c
	* plug-ins/uri/uri.c: cast stock-ids passed to
	gimp_plugin_icon_register() to (const guint8 *).
2006-06-17 12:21:47 +00:00
Michael Natterer e11a581110 more cleanup by Mukund, cleaned up again by myself.
2006-06-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/vinvert.c (run): more cleanup by Mukund, cleaned
	up again by myself.
2006-06-17 11:58:10 +00:00
Michael Natterer 5e3b4891d3 increased the max length for the identifier prefix from 24 to 64 chars. I
2006-06-16  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/xbm.c: increased the max length for the
	identifier prefix from 24 to 64 chars. I have no idea if this
	violates any spec or produces identifiers too long for stone age C
	standards, but 24 did truncate the identifiers in the newly added
	edge and corner cursors.
2006-06-16 17:38:01 +00:00
Michael Natterer 88dedcc424 Allow plug-ins to register in <Layers>, <Channels>, <Vectors> and
2006-06-16  Michael Natterer  <mitch@gimp.org>

	Allow plug-ins to register in <Layers>, <Channels>, <Vectors> and
	<ColormapEditor>:

	* app/pdb/gimppluginprocedure.c
	(gimp_plug_in_procedure_add_menu_path): added the argument type
	checks for the new locations. Factored out duplicated code.

	* app/menus/menus.c (menus_init): add the "plug-in" action
	group to the resp. UI managers.

	* app/menus/plug-in-menus.c (plug_in_menus_menu_path_added):
	support them here too.

	* app/widgets/gimpimageeditor.[ch]
	* app/widgets/gimpitemtreeview.[ch]: added get_image() functions.

	* app/actions/plug-in-commands.c: added new utility functions
	which collect plug-in arguments from GimpImageEditor and
	GimpItemTreeView widgets.

	* menus/channels-menu.xml
	* menus/colormap-editor-menu.xml
	* menus/layers-menu.xml
	* menus/vectors-menu.xml: added separators.

	* menus/image-menu.xml.in: added a "Colormap" placeholder in
	Colors/Map

	* plug-ins/common/colormap-remap.c (query): register a menu
	entry in <ColormapEditor> and moved the existing one to the
	"Colormap" placeholder. Also register an icon to make this
	menu item clearly distinct from the others in that menu.

	Unrelated:

	* plug-ins/common/colormap-remap.c (run): cleaned up quite a
	bit. Fixed last-vals code and simplified map handling.

	(remap_swap): removed, folded into run().

	(remap_dialog): use the passed map to initialize the dialog so it
	starts with the last-vals. Tweaked layout to have 16 columns
	and simplified cell renderer creation.
2006-06-16 17:02:14 +00:00
Manish Singh f548b65329 app/errors.c app/main.c app/file/gimprecentlist.c libgimpbase/gimpsignal.c
2006-06-16  Manish Singh  <yosh@gimp.org>

        * app/errors.c
        * app/main.c
        * app/file/gimprecentlist.c
        * libgimpbase/gimpsignal.c
        * libgimp/gimp.c
        * modules/controller_midi.c
        * plug-ins/common/gqbist.c: use _GNU_SOURCE instead of the other
        _FOO_SOURCE variables to support -ansi -pedantic on glibc systems,
        since anything else breaks compilation of otherwise working code.
        Fixes bug #344203.
2006-06-16 16:21:35 +00:00
Sven Neumann 8acfbbc24c improved error message.
2006-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd_save.c: improved error message.
2006-06-16 11:35:24 +00:00
Sven Neumann 61a01e546c marked blurb for translation.
2006-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mapcolor.c (query): marked blurb for translation.
2006-06-16 08:51:48 +00:00
Sven Neumann 738f2a6b9d renamed to "Rearrange Colormap".
2006-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/colormap-remap.c: renamed to "Rearrange
Colormap".
2006-06-15 22:49:36 +00:00
Sven Neumann 01e3e4d989 plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl
2006-06-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl

	* plug-ins/common/colormap-remap.c: added new plug-in for
colormap
	manipulation written by Mukund Sivaraman.
2006-06-15 22:07:39 +00:00
Michael Natterer f9938561d1 another patch from Mukund that cleans up i18n initialization.
2006-06-14  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/vinvert.c: another patch from Mukund that cleans
	up i18n initialization.
2006-06-14 16:03:09 +00:00
Michael Natterer 3ea06fce8d applied patch from Mukund Sivaraman which speeds up the plug-in
2006-06-13  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/vinvert.c: applied patch from Mukund Sivaraman
	which speeds up the plug-in significantly by using an optimized
	RGB <-> HSV conversion and proper region iterating. Did some more
	cleanups.
2006-06-13 13:32:18 +00:00
William Skaggs cd9811b321 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/gnomeprint.c: try not to distort
	image when printing.  Fixes bug #344547 but this
	plug-in needs a lot more work to be useful.
2006-06-12 23:45:43 +00:00
Sven Neumann 373a3cd27e cleanup, use gimp_drawable_mask_intersect(), reduced number of progress
2006-06-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/redeye.c (remove_redeye): cleanup, use
	gimp_drawable_mask_intersect(), reduced number of progress updates.
2006-06-12 13:24:35 +00:00
Sven Neumann 754f7da4d9 cleanup, use gimp_drawable_mask_intersect(), reduced number of progress
2006-06-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/snoise.c (solid_noise): cleanup, use
	gimp_drawable_mask_intersect(), reduced number of progress updates.
2006-06-12 13:17:21 +00:00
Sven Neumann 4539189160 gimp_drawable_mask_intersect() returns width and height, not x2, y2 2006-06-12 13:04:35 +00:00
Sven Neumann 1868877552 documentation.
2006-06-12  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpzoompreview.c (gimp_zoom_preview_get_source):
	documentation.

	* plug-ins/common/channel_mixer.c: minor cleanup and loop unrolling.
	Introduced an inline function to avoid code duplication.
2006-06-12 13:00:54 +00:00
William Skaggs c61eddd5c6 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/png.c
	* po/Makefile.in.in: revert changes inintentionally included
	in previous commit.
2006-06-08 22:24:43 +00:00
William Skaggs 9dbc0ee193 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/core-enums.[ch]: add GIMP_ARRANGE_FOO values
	to GimpAlignmentType, and change CENTER to HCENTER,
	MIDDLE to VCENTER.

	* app/core/gimpimage-arrange.c: extensively rewritten
	to handle arrangement of objects, and to do the
	required sorting of lists by offset.

	* app/tools/gimpaligntool.[ch]: added ability to arrange
	groups of layers etc with constant spacing.  Also try
	to change things so that the tool aligns with the
	object that users expect intuitively.
2006-06-08 22:15:45 +00:00
Simon Budig 16cda2d4cd fix the EXPAND macro to make picky compilers happy. Fixes bug #344326,
2006-06-08  Simon Budig  <simon@gimp.org>

	* plug-ins/common/sel_gauss.c: fix the EXPAND macro to make
	picky compilers happy. Fixes bug #344326, spotted by
	Eric Lamarque.
2006-06-08 21:07:04 +00:00
Sven Neumann d42a30e0ec do not use gtk_menu_attach_to_widget() but gtk_menu_set_screen(). Menus
2006-06-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/animationplay.c (menu_popup): do not use
	gtk_menu_attach_to_widget() but gtk_menu_set_screen(). Menus don't
	like to be attached multiple times.
2006-06-08 12:51:16 +00:00
Sven Neumann bbfabca254 applied a modified patch from Clarence Risher that adds support for a
2006-06-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/decompose.c: applied a modified patch from
	Clarence Risher that adds support for a registration color
	(bug #338049).
2006-06-06 08:39:02 +00:00
Seth Burgess 005f3b0713 fixed file_png_set_defaults; wrong # of return values, missing "set"
* plug-ins/common/png.c: fixed file_png_set_defaults; wrong # of
          return values, missing "set" if/else set, wrong set param count,
          and off by one error in the parameter indexes.  Thanks to Kevin
          on helping track these down.
2006-06-05 03:40:15 +00:00
Sven Neumann 3a7629733a always look at $plugins{$_}->{cflags}.
2006-06-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mkgen.pl: always look at $plugins{$_}->{cflags}.

	* plug-ins/common/plugin-defs.pl: use MMX_EXTRA_CFLAGS for the
	selective gaussian blur plug-in.

	* plug-ins/common/Makefile.am: regenerated.
2006-06-02 13:33:10 +00:00
Sven Neumann fd972c23dc need to test for GIMP_COMPOSITE_OPTION_NOEXTENSIONS.
2006-06-02  Sven Neumann  <sven@gimp.org>

	* app/composite/gimp-composite.c (gimp_composite_use_cpu_accel):
	need to test for GIMP_COMPOSITE_OPTION_NOEXTENSIONS.

	* libgimp/gimp.c (gimp_config): call gimp_set_use_cpu_accel() from
	here, not in gimp_main().

	* plug-ins/common/sel_gauss.c: applied patch from Loren Merritt
	that adds MMX code to boost the plug-in speed (bug #342860).
2006-06-02 11:36:16 +00:00
Sven Neumann a3e967f4e8 applied patch from Loren Merritt that replaces the floating-point
2006-06-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/sel_gauss.c: applied patch from Loren Merritt
	that replaces the floating-point implementation of selective
	gaussian blur with a fixed-point version (bug #342860).
2006-06-01 10:16:56 +00:00
Manish Singh c7ba1223c3 app/errors.c app/main.c app/file/gimprecentlist.c libgimp/gimp.c
2006-05-29  Manish Singh  <yosh@gimp.org>

        * app/errors.c
        * app/main.c
        * app/file/gimprecentlist.c
        * libgimp/gimp.c
        * libgimpbase/gimpsignal.c
        * modules/cdisplay_lcms.c
        * modules/cdisplay_proof.c
        * modules/controller_midi.c
        * plug-ins/common/gqbist.c
        * plug-ins/metadata/xmp-schemas.h: miscellaneous fixes for building
        with -ansi -pedantic. Mostly #define _FOO_SOURCE stuff. Thanks to
        Daniel Richard G. for the patch. Fixes bug #342390.
2006-05-30 01:55:42 +00:00
Michael Natterer 52d56985c1 applied patch from Martin Collins which adds PBM (bitmap) support. Fixes
2006-05-28  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/pnm.c: applied patch from Martin Collins which
	adds PBM (bitmap) support. Fixes bug #167578. Did some additional
	cleanups and sprinkled some gimp_progress_update(1.0).
2006-05-28 21:29:59 +00:00
William Skaggs db1a049927 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/dicom.c: applied patch from Dov Grobgeld
	with several fixes for dicom loading, fixes bug #163256.
2006-05-26 16:19:24 +00:00
Michael Natterer a188d09bbc moved "Load defaults" and "Save defaults" buttons to a separate line.
2006-05-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/png.c: moved "Load defaults" and "Save defaults"
	buttons to a separate line. Fixes bug #310291.
2006-05-24 20:24:02 +00:00
Sven Neumann c03e117e48 use a GtkFileChooserButton instead of a GimpFileEntry widget.
2006-05-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/raw.c (load_dialog): use a GtkFileChooserButton
	instead of a GimpFileEntry widget.

	* plug-ins/script-fu/script-fu-interface.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-types.h: use GtkFileChooserButton
	for SF_FILENAME and SF_DIRNAME parameters.
2006-05-24 14:53:40 +00:00
William Skaggs 5e81a4a012 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/png.c: fix remapping of colors when
	saving IndexedA images; fixes bug #303864.
2006-05-22 17:13:30 +00:00
Manish Singh b9416956f8 Fixes to address -ansi -pedantic compilation (bug #342390). Thanks goes to
2006-05-20  Manish Singh  <yosh@gimp.org>

        Fixes to address -ansi -pedantic compilation (bug #342390).
        Thanks goes to Daniel Richard G. for noticing and suggesting
        fixes.

        * libgimpbase/gimpsignal.c: #include "config.h" and define
        __POSIX_SOURCE for sigaction stuff.

        * app/base/tile-swap.c (tile_swap_test): use more portable
        S_IRUSR and S_IWUSR, instead of S_IREAD and S_IWRITE.

        * plug-ins/common/ripple.c
        * plug-ins/imagemap/imap_main.c: use C89 comments.

        * plug-ins/Lighting/lighting_preview.h: don't define spin widget
        variables here...

        * plug-ins/Lighting/lighting_ui.[ch]: ... and instead take care
        of them here.
2006-05-20 07:18:25 +00:00
William Skaggs 5e78e9a2c5 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/vpropagate.c: swap meanings of "dilate"
	and "erode"; fixes bug #156545.
2006-05-19 16:31:48 +00:00
William Skaggs 34e144e1eb Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/tga.c: gracefully handle incorrect alpha
	info in header; fixes bug #306675.
2006-05-19 16:10:07 +00:00
Sven Neumann a450ba46bb declared GimpPlugInInfo and GimpParamDef arrays as const.
2006-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/*/*.c: declared GimpPlugInInfo and GimpParamDef arrays
	as const.
2006-05-16 12:26:20 +00:00
Hans Breuer 429d71e5e2 updated dont include "config/gimpbaseconfig.c", it gives an redefinition
2006-05-13  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated
	* app/core/gimp-util.c : dont include "config/gimpbaseconfig.c", it
	gives an redefinition error with msvc. Instead include
	config/gimpbaseconfig.h and libgimpconfig/gimpconfig-path.h

	* plug-ins/common/psd_save.c : fix c99isms (declarations only at the
	start of a block)
2006-05-13 17:05:15 +00:00
Simon Budig 3a7341d6e6 fix typo...
2006-05-08  Simon Budig  <simon@gimp.org>

	* plug-ins/common/postscript.c: fix typo...
2006-05-08 14:08:31 +00:00
Simon Budig a108ac9967 improve the error message when spawning ghostscript does not work. See bug
2006-05-08  Simon Budig  <simon@gimp.org>

	* plug-ins/common/postscript.c: improve the error message when
	spawning ghostscript does not work. See bug #340996. Untabbified.
2006-05-08 12:23:32 +00:00
Manish Singh 70eeb8ce7c Revert back to unsigned chars for the buffer, and only cast to gchar if we
2006-05-05  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/gifload.c (DoExtension): Revert back to unsigned
        chars for the buffer, and only cast to gchar if we know we're dealing
        with a comment. Fixes bug #339865.
2006-05-06 05:32:39 +00:00
Sven Neumann ce320fdf6b removed some unused code, untabified.
2006-05-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gifload.c: removed some unused code, untabified.
2006-05-03 15:26:48 +00:00
Sven Neumann afe5311a3e some cleanup, still a mess.
2006-04-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/warp.c: some cleanup, still a mess.
2006-04-27 11:33:51 +00:00
Sven Neumann dd15c31d73 minor cleanup for my last commit 2006-04-26 13:19:56 +00:00
Sven Neumann 97e6e61f58 use gimp_progress_set_text() instead of gimp_progress_init() to change the
2006-04-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c: use gimp_progress_set_text() instead
	of gimp_progress_init() to change the progress text.
2006-04-26 13:13:38 +00:00
Sven Neumann bf5750d99f implement a thumbnail load procedure that loads only the first frame of a
2006-04-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gifload.c: implement a thumbnail load procedure
	that loads only the first frame of a GIF animation.
2006-04-24 10:47:10 +00:00
David Odin 7c79798b86 plug-ins/common/redeye.c: use a zoom preview instead of a drawable one. 2006-04-24 09:56:39 +00:00
Sven Neumann 9027a192c0 plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl added Redeye
2006-04-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/redeye.c: added Redeye Removal plug-in, written
	by Robert Merkel and Andreas Røsdal. Fixes bug #91795.
2006-04-23 12:14:13 +00:00
Manish Singh e0d487251b use PNG_CFLAGS for the png plugin.
2006-04-23  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/plugin-defs.pl: use PNG_CFLAGS for the png plugin.

        * plug-ins/common/Makefile.am: regenerated.
2006-04-23 07:22:27 +00:00
Manish Singh f7d7c238f6 don't use long deprecated libpng API, and drop support for ancient libpng
2006-04-23  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/png.c: don't use long deprecated libpng API, and
        drop support for ancient libpng versions. Fixes bug #339402.

        * configure.in: use pkg-config to detect libpng. This means we now
        require at least libpng 1.2.2, but that's over four years old, so
        that shouldn't be that big a deal.
2006-04-23 07:19:41 +00:00
Simon Budig e7d2f8f220 only access existing toggle buttons. Fixes bug #339124
2006-04-20  Simon Budig  <simon@gimp.org>

	* plug-ins/common/convmatrix.c: only access existing toggle buttons.
	Fixes bug #339124

	* devel-docs/debug-plug-ins.txt: Added hint how to run a plugin
	in the gdb when GIMP_PLUGIN_DEBUG is active.
2006-04-20 12:15:16 +00:00