Commit graph

5283 commits

Author SHA1 Message Date
Manish Singh 59ce9f463a Implement non-interactive mode, and make it match the old PDF loader API.
2007-10-06  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/poppler.c: Implement non-interactive mode, and make
        it match the old PDF loader API. Fixes bug #483425.

svn path=/trunk/; revision=23751
2007-10-06 21:34:12 +00:00
Sven Neumann e04cfdc3b4 store the zoom factor. Doesn't work currently, but just needs a simple fix
2007-10-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c: store the zoom factor. Doesn't
	work currently, but just needs a simple fix in gtkhtml2.


svn path=/trunk/; revision=23747
2007-10-06 16:51:34 +00:00
Sven Neumann 59acf0a4f3 check that the window shape is non-empty before applying it to the alpha
2007-10-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c (create_image): check that the
	window shape is non-empty before applying it to the alpha 
channel.


svn path=/trunk/; revision=23741
2007-10-05 21:06:15 +00:00
Sven Neumann e5b6b9dd13 applied patch from Ulf-D. Ehlert with usability improvements (bug
2007-10-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/perspective-shadow.scm: applied 
patch
	from Ulf-D. Ehlert with usability improvements (bug #482743).


svn path=/trunk/; revision=23736
2007-10-05 18:49:34 +00:00
Sven Neumann 1c22f13fd4 the inward/outward parameter affects the zoom mode, not radial
svn path=/trunk/; revision=23734
2007-10-05 11:16:04 +00:00
Sven Neumann 9ba63e340d restore compatibility by registering an extra procedure for the
2007-10-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mblur.c: restore compatibility by registering an
	extra procedure for the inward/outward parameter (bug #483426).

svn path=/trunk/; revision=23733
2007-10-05 11:12:32 +00:00
Sven Neumann b4f812491f modules/cdisplay_lcms.c modules/cdisplay_proof.c
2007-10-04  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/colorsel_cmyk_lcms.c
	* plug-ins/common/lcms.c 
	* plug-ins/jpeg/jpeg-load.c: use cmsFLAGS_BLACKPOINTCOMPENSATION
	instead of the equivalent cmsFLAGS_WHITEBLACKCOMPENSATION.

svn path=/trunk/; revision=23724
2007-10-04 14:21:55 +00:00
Sven Neumann 63b451abb0 use the display rendering intent as set in the user's color management
2007-10-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (jpeg_load_cmyk_transform): use the
	display rendering intent as set in the user's color management
	preferences. Use black point compensation if the rendering 
intent
	is relative colorimetric.


svn path=/trunk/; revision=23722
2007-10-03 22:18:46 +00:00
Sven Neumann b6bc110c22 use the display rendering intent as set in the user's color management
2007-10-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: use the display rendering intent as 
set
	in the user's color management preferences as the default for 
the
	color conversion. Default to using black point compensation if 
the
	rendering intent is relative colorimetric (bug #475983).


svn path=/trunk/; revision=23719
2007-10-03 13:43:50 +00:00
Sven Neumann 3b4f775d74 applied patch from Ulf-D. Ehlert that fixes resizing in the Perspective
2007-10-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/perspective-shadow.scm: applied 
patch
	from Ulf-D. Ehlert that fixes resizing in the Perspective Shadow
	script (bug #482743).


svn path=/trunk/; revision=23718
2007-10-02 22:03:40 +00:00
Sven Neumann 59f86e366b changed the dialog title to adopt to the menu label we changed two years
2007-10-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/scatter_hsv.c (scatter_hsv_dialog): changed the
	dialog title to adopt to the menu label we changed two years ago.

svn path=/trunk/; revision=23717
2007-10-02 09:32:48 +00:00
Raphael Quinet 9795a920b1 plug-ins/metadata/metadata.c plug-ins/metadata/xmp-model.c replaced calls
2007-10-02  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/metadata/metadata.c
	* plug-ins/metadata/xmp-model.c
	* plug-ins/metadata/xmp-encode.c: replaced calls to g_warning() by
	g_printerr().

svn path=/trunk/; revision=23716
2007-10-02 09:15:34 +00:00
Sven Neumann 1f4c2a1f96 clamp values used for the exponent map to 1..255. Fixes bug #478618.
2007-10-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/oilify.c (get_map_value): clamp values used 
for
	the exponent map to 1..255. Fixes bug #478618.


svn path=/trunk/; revision=23715
2007-10-02 05:54:44 +00:00
Kevin Cozens f3d514c845 Use 'list' to create argument list for SF-ADJUSTMENT since it uses a named
2007-10-02  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/guides-new.scm: Use 'list' to create
	argument list for SF-ADJUSTMENT since it uses a named constant.
	Fixes bug #480799.

svn path=/trunk/; revision=23714
2007-10-02 04:24:40 +00:00
Kevin Cozens 1035b7fab4 use RUN-NONINTERACTIVE for the run-mode where 0 was used instead.
2007-10-01  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/burn-in-anim.scm: use RUN-NONINTERACTIVE
	for the run-mode where 0 was used instead.

svn path=/trunk/; revision=23712
2007-10-01 20:31:12 +00:00
Sven Neumann 8b624fa210 moved shadow_bevel.py to test-scripts so that it isn't installed by
2007-10-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/Makefile.am: moved shadow_bevel.py to
	test-scripts so that it isn't installed by default (bug 
#482289).


svn path=/trunk/; revision=23711
2007-10-01 20:29:45 +00:00
Sven Neumann 1a75b7258e use RUN-NONINTERACTIVE for the run-mode where 1 was used instead.
2007-10-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/*.scm: use RUN-NONINTERACTIVE for 
the
	run-mode where 1 was used instead.


svn path=/trunk/; revision=23707
2007-10-01 19:44:23 +00:00
Sven Neumann 3b930bb1a8 plug-ins/script-fu/scripts/rendermap.scm
2007-10-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/rendermap.scm
	* plug-ins/script-fu/scripts/distress-selection.scm
	* plug-ins/script-fu/scripts/old-photo.scm
	* plug-ins/script-fu/scripts/unsharp-mask.scm
	* plug-ins/script-fu/scripts/tileblur.scm
	* plug-ins/script-fu/scripts/fuzzyborder.scm
	* plug-ins/script-fu/scripts/camo.scm: use RUN-NONINTERACTIVE for
	the run-mode instead of TRUE.

svn path=/trunk/; revision=23700
2007-10-01 08:42:48 +00:00
Manish Singh 9e13d05f5c drop the reference we added to the args tuple in the error case.
2007-09-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-pdb.c (pygimp_param_from_tuple): drop the
        reference we added to the args tuple in the error case.

svn path=/trunk/; revision=23694
2007-09-30 08:37:45 +00:00
Manish Singh d70088c961 fill layer before using it. Fixes bug #481798, thanks to Jakub Friedl for
2007-09-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/foggify.py: fill layer before using it.
        Fixes bug #481798, thanks to Jakub Friedl for suggesting fix.

svn path=/trunk/; revision=23693
2007-09-30 08:22:06 +00:00
Sven Neumann 4c0b47c34d allocate the ConsoleInterface struct on the stack.
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c: allocate the
	ConsoleInterface struct on the stack.


svn path=/trunk/; revision=23685
2007-09-28 17:26:15 +00:00
Kevin Cozens 14eb770a4c Made all the functions defined in the file local instead of global to
2007-09-28  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/addborder.scm: Made all the functions
	defined in the file local instead of global to avoid possible
	conflicts with other scripts.

svn path=/trunk/; revision=23684
2007-09-28 16:13:58 +00:00
Sven Neumann 4d77d9a2d1 plugged memory leaks.
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c: plugged memory leaks.

	* libgimpbase/gimpprotocol.c (gp_params_destroy): formatting.

svn path=/trunk/; revision=23683
2007-09-28 14:20:35 +00:00
Sven Neumann bba7d1e0c4 use gimp_pixel_rgn_set_row() to set a single row of pixels.
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff-load.c (load_rgba): use
	gimp_pixel_rgn_set_row() to set a single row of pixels.

svn path=/trunk/; revision=23680
2007-09-28 10:10:28 +00:00
Sven Neumann 3553d68652 fixed the twisted logic.
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_image): fixed the twisted logic.

svn path=/trunk/; revision=23678
2007-09-28 08:11:33 +00:00
Sven Neumann 8f2b37a8e5 moved handling of the CMYK profile to a utility function. Respect the
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c: moved handling of the CMYK profile 
to
	a utility function. Respect the user's color management 
settings.


svn path=/trunk/; revision=23677
2007-09-28 07:13:47 +00:00
Kevin Cozens 0cb80bdcd8 Create SF-RUN-MODE constant for use in Script-Fu. Fixes bug #479893.
2007-09-27  Kevin Cozens  <kcozens@cvs.gnome.org>

	Create SF-RUN-MODE constant for use in Script-Fu. Fixes bug #479893.

	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/scheme-wrapper.h: Added set_run_mode_constant()
	which creates a new constant called SF-RUN-MODE. This constant can
	be used by Script-Fu scripts when calling a plug-in that needs to
	know the current run mode.

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/script-fu-server.c: Added calls to create the
	new SF-RUN-MODE constant.

	* plug-ins/script-fu/scripts/difference-clouds.scm: Pass SF-RUN-MODE
	to the solid noise plug-in instead of always using RUN-INTERACTIVE.

svn path=/trunk/; revision=23674
2007-09-27 19:54:28 +00:00
Sven Neumann d5afc9128b define HAVE_LCMS if lcms is available.
2007-09-27  Sven Neumann  <sven@gimp.org>

	* configure.in: define HAVE_LCMS if lcms is available.

	* plug-ins/jpeg/Makefile.am: link with LIBLCMS.

	* plug-ins/jpeg/jpeg-load.c (load_image): when loading a CMYK JPEG
	file and it comes with an embedded CMYK profile, use lcms to do
	the colorspace conversion.

svn path=/trunk/; revision=23672
2007-09-27 15:09:50 +00:00
Sven Neumann d920ed2eae same change here. Moved colorspace conversion to a utility function.
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_thumbnail_image): same change
	here. Moved colorspace conversion to a utility function.

svn path=/trunk/; revision=23671
2007-09-27 14:35:01 +00:00
Sven Neumann 5064d56b16 get rid of one of the temporary buffers. We don't need an alpha channel on
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_image): get rid of one of the
	temporary buffers. We don't need an alpha channel on the preview
	layer and we can do the CMYK->RGB conversion in place.

svn path=/trunk/; revision=23670
2007-09-27 14:22:40 +00:00
Sven Neumann e8d323c805 show the dialog when called with GIMP_RUN_WITH_LAST_VALS. This is better
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/iwarp.c (run): show the dialog when called with
	GIMP_RUN_WITH_LAST_VALS. This is better than just doing nothing
	when being called from the Repeat menu item (bug #480796).

svn path=/trunk/; revision=23669
2007-09-27 13:05:07 +00:00
Sven Neumann c2020bf56d fixed GimpImageType parameter passed to gimp-layer-new. Do not register
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/add-bevel.scm: fixed GimpImageType
	parameter passed to gimp-layer-new. Do not register the script for
	grayscale images, it doesn't handle them properly.

svn path=/trunk/; revision=23667
2007-09-27 10:45:03 +00:00
Sven Neumann b774625eee unified error messages, removed trailing newlines.
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c: unified error
	messages, removed trailing newlines.

svn path=/trunk/; revision=23666
2007-09-27 10:27:46 +00:00
Sven Neumann 85deee0aef don't create nested undo groups.
2007-09-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: don't create nested undo groups.


svn path=/trunk/; revision=23662
2007-09-26 19:29:54 +00:00
Sven Neumann bda4441973 use separate variables for width and height entry. Fixes bug #480303.
2007-09-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/maze/maze_face.c (maze_dialog): use separate variables
	for width and height entry. Fixes bug #480303.

svn path=/trunk/; revision=23658
2007-09-26 10:57:44 +00:00
Sven Neumann c8ef39e096 minor cleanup, removed unused code.
2007-09-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/maze/maze_face.c: minor cleanup, removed unused code.

svn path=/trunk/; revision=23656
2007-09-26 09:01:20 +00:00
Sven Neumann e2ed6cd182 reverted "fix" for bug #477008.
2007-09-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/decompose.c: reverted "fix" for bug #477008.

	* tools/pdbgen/pdb/display.pdb
	* app/pdb/display_cmds.c: flush the image before creating a new
	display for it. Fixes bug #477008 also for other plug-ins like
	Screenshot.

svn path=/trunk/; revision=23650
2007-09-25 11:25:05 +00:00
Kevin Cozens 0bd67f281f Applied patch from Ulf-D. Ehlert which pushes and pops a context to
2007-09-25  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/fuzzyborder.scm: Applied patch from
	Ulf-D. Ehlert which pushes and pops a context to prevent
	changing background colour in the UI. Fixes bug #479974.

svn path=/trunk/; revision=23648
2007-09-25 05:17:35 +00:00
Sven Neumann 6e412c1e42 applied patch from Ulf-D. Ehlert which fixes a bug which may shrink the
2007-09-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/drop-shadow.scm: applied patch from
	Ulf-D. Ehlert which fixes a bug which may shrink the image instead
	of enlarging it (bug #478385).

svn path=/trunk/; revision=23636
2007-09-24 08:00:14 +00:00
Sven Neumann f1ce484ab2 marked blurbs as translatable.
2007-09-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: marked blurbs as translatable.


svn path=/trunk/; revision=23631
2007-09-23 18:30:31 +00:00
Michael Natterer 2fbe082762 added placeholder File/Preferences and move the preferences and keyboard
2007-09-23  Michael Natterer  <mitch@gimp.org>

	* menus/toolbox-menu.xml.in: added placeholder File/Preferences
	and move the preferences and keyboard shortcut dialogs there.

	* plug-ins/common/uniteditor.c (query): register the unit editor
	there too.


svn path=/trunk/; revision=23629
2007-09-23 17:23:06 +00:00
Sven Neumann 83968989c0 avoid pointer arithmetics on void pointers. Fixes compilation on IRIX (bug
2007-09-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/pcx.c: avoid pointer arithmetics on void 
pointers.
	Fixes compilation on IRIX (bug #479357).


svn path=/trunk/; revision=23628
2007-09-23 17:02:11 +00:00
Simon Budig cd5973a654 add a few strategically placed return TRUEs to stop event propagation.
2007-09-23  Simon Budig  <simon@gimp.org>

	* plug-ins/common/bumpmap.c: add a few strategically placed
	return TRUEs to stop event propagation.

	Fixes bug #479389


svn path=/trunk/; revision=23620
2007-09-23 01:15:28 +00:00
Simon Budig 24f9ed8446 further simplifications.
2007-09-22  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: further simplifications.


svn path=/trunk/; revision=23614
2007-09-22 18:03:39 +00:00
Kevin Cozens 9a5e22bdf5 Applied modified patch from Simon Budig. Any bytes read from a file which
2007-09-21  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (basic_inchar): Applied
	modified patch from Simon Budig. Any bytes read from a file which
	are not valid UTF-8 characters will be ignored. Fixes bug #476356.

svn path=/trunk/; revision=23613
2007-09-21 23:53:03 +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
Raphael Quinet 0de56fd922 updated the table of known devices and software, work in progress.
2007-09-20  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpegqual.c (quant_info): updated the table of
	known devices and software, work in progress.

svn path=/trunk/; revision=23595
2007-09-20 16:01:29 +00:00
Michael Natterer e2fcc1fc6e added placeholder Edit/Preferences and move the preferences and keyboard
2007-09-20  Michael Natterer  <mitch@gimp.org>

	* menus/image-menu.xml.in: added placeholder Edit/Preferences and
	move the preferences and keyboard shortcut dialogs there.

	* plug-ins/common/uniteditor.c (query): register the unit editor
	there too.


svn path=/trunk/; revision=23594
2007-09-20 11:39:32 +00:00
Sven Neumann 04b4982220 removed extra arguments that were added to the compose procedures in the
2007-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/compose.c: removed extra arguments that were
	added to the compose procedures in the 2.3 development cycle.
	Restores compatibility and fixes bug #477795.


svn path=/trunk/; revision=23590
2007-09-19 16:56:34 +00:00
Raphael Quinet 3385f9c482 Re-wrote large parts of the code, still work in progress: use GOption for
2007-09-19  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpegqual.c: Re-wrote large parts of the code,
	still work in progress: use GOption for command-line options, add
	number of quantization tables in QuantInfo, added info for more
	sources (devices or software) but not verified yet.

svn path=/trunk/; revision=23589
2007-09-19 16:09:00 +00:00