Commit graph

3655 commits

Author SHA1 Message Date
Sven Neumann 2c4c673d49 make sure that widgets in the Grid and Preferences dialogs are only
2004-11-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c: make sure that widgets in the Grid
	and Preferences dialogs are only accessed while the dialogs exist.
2004-11-28 15:18:09 +00:00
Sven Neumann 29b57ff07b made the Grid and Preferences dialogs singeltons and declared them as
2004-11-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c: made the Grid and Preferences
	dialogs singeltons and declared them as transient to the GFig
	window. Don't let them run their own main loop.
2004-11-28 14:56:31 +00:00
Sven Neumann ee806f1d4a added a Close menu item to the menubar. Removed help buttons from popup
2004-11-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c: added a Close menu item to the
	menubar. Removed help buttons from popup dialogs. Set the same
	default directory in load and save filechoosers.
2004-11-28 00:38:52 +00:00
Manish Singh a769f1c3b0 thumbnail buffer variable declarations should be guarded under HAVE_EXIF.
2004-11-27  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/jpeg.c (save_image): thumbnail buffer variable
        declarations should be guarded under HAVE_EXIF.
2004-11-27 23:31:02 +00:00
Manish Singh 83f280fa0a s/colorhtml/colorxhtml/, so it doesn't clash with the perl version.
2004-11-27  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/colorxhtml.py: s/colorhtml/colorxhtml/,
        so it doesn't clash with the perl version.

        * plug-ins/pygimp/plug-ins/Makefile.am: reflect filename change.
2004-11-27 22:57:57 +00:00
Sven Neumann 7643d5e971 delay the creation of the display for the export image preview until the
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c: delay the creation of the display for
	the export image preview until the user requests a preview. Fixes
	bug #159376.
2004-11-27 22:07:23 +00:00
Kevin Cozens 56b5d0612c Force number of teeth to be integer values. Changed default for Outer
2004-11-27  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/scripts/spyrogimp.scm: Force number of teeth
	to be integer values. Changed default for Outer teeth to give a
	more interesting image. Detabified file. Fixes bug #158448.
2004-11-27 17:57:18 +00:00
Sven Neumann 52ec7ed97e don't look at the menu path to determine if the script is image-based.
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
	don't look at the menu path to determine if the script is
	image-based. Instead look at the number of parameters we are being
	called with.
2004-11-27 16:23:43 +00:00
Sven Neumann 29eb62c231 tell the user that we can't handle indexed images with alpha channel (bug
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff.c (save_image): tell the user that we can't
	handle indexed images with alpha channel (bug #159600).
2004-11-27 12:39:08 +00:00
Sven Neumann eb7b317d36 app/main.c app/widgets/gimpenumstore.h app/widgets/gimpunitstore.c applied
2004-11-27  Sven Neumann  <sven@gimp.org>

	* app/main.c
	* app/widgets/gimpenumstore.h
	* app/widgets/gimpunitstore.c
	* plug-ins/common/retinex.c: applied patch by Tim Mooney that
	removes extraneous ;
2004-11-27 12:09:13 +00:00
Sven Neumann 365af1b31b applied patch by Tim Mooney that increase the size of values[] + to
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/wmf.c (run): applied patch by Tim Mooney that
	increase the size of values[] + to accomodate the use of
	file_wmf_load_thumb (bug #159601).
2004-11-27 12:04:12 +00:00
Sven Neumann 1afd9b1733 plug-ins/winicon/icosave.c moved code around.
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icosave.c
	* plug-ins/winicon/main.[ch]: moved code around.
2004-11-27 11:19:38 +00:00
Manish Singh 448dd63f9d make sure the preview image type matches the source image type.
2004-11-26  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/dog.c: make sure the preview image type matches
        the source image type.
2004-11-26 18:55:41 +00:00
Sven Neumann 1b81778c9a don't fiddle with the source image, a save plug-in should save, nothing
2004-11-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icosave.c: don't fiddle with the source image,
	a save plug-in should save, nothing else.

	* plug-ins/winicon/main.[ch]: handle all sorts of image types.
	Fixes bug #157803.
2004-11-26 18:44:29 +00:00
Sven Neumann 006882a0bc plug-ins/winicon/main.[ch] (ico_image_get_reduced_buf)
2004-11-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/main.[ch] (ico_image_get_reduced_buf)
	* plug-ins/winicon/icodialog.c
	* plug-ins/winicon/icoload.c
	* plug-ins/winicon/icosave.c: fixed drawable handling. This
	plug-in is still a complete mess and needs a lot more work.
2004-11-26 17:37:26 +00:00
Manish Singh 787afc60bd Add the temporary layers to the image, so things work. Fixes bug #158895.
2004-11-25  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/dog.c: Add the temporary layers to the image, so
        things work. Fixes bug #158895.

        * plug-ins/common/iwarp.c: Fix same naughtiness as above. There's
        other naughtiness still though.

        * plug-ins/common/sunras.c: use gboolean for byte2bit invert argument.
2004-11-26 03:52:01 +00:00
Manish Singh 7a1647b1bf Use a jpeg_error_mgr that lives within PreviewPersistent, instead of an
2004-11-25  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/jpeg.c: Use a jpeg_error_mgr that lives within
        PreviewPersistent, instead of an automatic variable in save_image.
        Fixes bug #159076.
2004-11-26 03:16:03 +00:00
Michael Natterer bd57700685 cosmetics, untabified.
2004-11-23  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpparasitelist.c: cosmetics, untabified.

	* libgimpbase/gimpparasiteio.[ch]: added g_return_if_fail()'s
	to all functions.

	(gimp_pixpipe_params_parse): changed "gchar*" param to "const
	gchar*" (sortof API change, but these files are most probably only
	used by GIMP itself). Still uses strtok() on the internal copy,
	but at least not on the passed string.

	* plug-ins/common/csource.c
	* plug-ins/common/gif.c
	* plug-ins/common/gih.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/png.c
	* plug-ins/common/tiff.c: use parasite getters instead of
	accessing the scruct members directly. Always use g_strndup()
	instead of just g_strdup() to get strings stored in parasites
	because there is no guarantee that they are nul-terminated.
2004-11-23 14:28:43 +00:00
Sven Neumann f6288226c3 do actually use a save dialog here. Fixes bug #159194.
2004-11-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_file.c (do_file_save_as_dialog): do
	actually use a save dialog here. Fixes bug #159194.
2004-11-23 14:09:40 +00:00
Kevin Cozens 6f7d0f515b Fixed incorrect comparison in if statement. Partial(?) fix for bug
2004-11-21  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/scripts/copy-visible.scm: Fixed incorrect
	comparison in if statement. Partial(?) fix for bug #138662.
2004-11-23 04:14:39 +00:00
Kevin Cozens d4120fe1ab Updated all scripts to use script-fu-menu-register and pass just the menu
2004-11-22  Kevin Cozens  <kcozens@cvs.gimp.org>

	* scripts/*.sct: Updated all scripts to use script-fu-menu-register
	and pass just the menu label in script-fu-register.

	Updates based on changes made by Michael Natterer to Script-Fu.

	* tiny-fu/tiny-fu-scripts.c: Pass untranslated menu_paths to the
	core, not translated ones. Don't store the scripts directly in the
	"script_list" tree but use a list of scripts per key because there
	can be identical keys for different scripts now. Renamed variable
	"script_list" to "script_tree" because it's a GTree. Sort the SFMenu
	structs by their menu_paths *and* the procedure's menu_labels. Fixes
	menu item sorting after "Refresh".
2004-11-23 04:01:41 +00:00
Manish Singh e995d8d6e7 plug-ins/pygimp/Makefile.am New pygimp logo, by Carol Spears.
2004-11-22  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/Makefile.am
        * plug-ins/pygimp/pygimp-logo.png: New pygimp logo, by Carol Spears.

        * plug-ins/pygimp/gimpfu.py: Use new external logo file, some layout
        tweaks.
2004-11-23 02:35:54 +00:00
David Odin eaec0edf0d correctly initialize the Antialising check box. Reported by Zigomar.
* plug-ins/gfig/gfig-dialog.c: correctly initialize the Antialising
  check box.  Reported by Zigomar.
2004-11-22 21:13:25 +00:00
Michael Natterer b0bd80136f sort the SFMenu structs by their menu_paths *and* the procedure's
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: sort the SFMenu structs
	by their menu_paths *and* the procedure's menu_labels. Fixes menu
	item sorting after "Refresh".
2004-11-22 21:01:28 +00:00
Michael Natterer 88b3cb7df2 applied patch from Wolfgang Hofer which makes the plug-in use its
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/struc.c: applied patch from Wolfgang Hofer
	which makes the plug-in use its procedure name for
	storing the "last_vals" struct. Fixes bug #159028.

	* plug-ins/common/tileit.c: ditto. Fixes bug #159029.
2004-11-22 11:09:29 +00:00
David Odin 02b0c67397 fixed a stupid bug which made all lines half-selected.
* plug-ins/gfig/gfig-line.c: fixed a stupid bug which made all lines
  half-selected.
2004-11-22 07:49:31 +00:00
Kevin Cozens 168e96997e Applied patch from BM which makes the script work layers that have their
2004-11-21  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/scripts/erase-rows.scm: Applied patch from BM
	which makes the script work layers that have their top-left corner
	at a position other than the top-left corner of the image.
	Fixes bug #158863.
2004-11-21 19:53:42 +00:00
David Odin bac40a781f plug-ins/gfig/gfig-arc.c plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-circle.c
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-dobject.c
* plug-ins/gfig/gfig-ellipse.c
* plug-ins/gfig/gfig-line.c
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-star.c
* plug-ins/gfig/gfig.h: makes which object is selected more obvious by
  using filled handles for the selected object.  Not perfect, but
  certainly a good hint.
2004-11-21 19:50:18 +00:00
David Odin 0622500439 call gfig_grid_colours() in the realize callback of the preview, so the
* plug-ins/gfig/gfig-preview.c: call gfig_grid_colours() in the
  realize callback of the preview, so the gray gc of the grid works
  again. Reported by Zigomar.

* plug-ins/gfig/gfig-dobject.c
* plug-ins/gfig/gfig-preview.h
* plug-ins/gfig/gfig-spiral.h
* plug-ins/gfig/gfig-star.h
* plug-ins/gfig/notes.txt: small cosmetics fixes.
2004-11-21 18:54:16 +00:00
Sven Neumann 3349c37a6a plug-ins/common/compose.c transfer the image resolution to newly created
2004-11-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/compose.c
	* plug-ins/common/decompose.c: transfer the image resolution to
	newly created images.
2004-11-21 17:45:15 +00:00
Sven Neumann 5f03fc9dec reverted a change that Hans Breuer committed here, probably accidentally.
2004-11-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/Brushes/snow1.pgm: reverted a change
	that Hans Breuer committed here, probably accidentally.

	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/siod-wrapper.c: reverted Hans's changes. There
	is indeed a Script-Fu server on Win32.
2004-11-21 16:37:39 +00:00
Hans Breuer 696663a611 [new file] app/dialogs/Makefile.am : added to EXTRA_DIST
2004-09-21  Hans Breuer  <hans@breuer.org>

	* app/dialogs/makefile.msc : [new file]
	  app/dialogs/Makefile.am : added to EXTRA_DIST

	* **/makefile.msc app/gimpcore.def : updated

	* app/gimp.rc : let wilber be first

	* app/widgets/gimppropwidgets.c : msvc6 can't cast uint64 either

	* libgimpbase/gimpwin32-io.h : make up recent loss of ftruncate in GLib

	* libgimpthumbnail/gimpthumbnail.c : <process.h> for getpid() on win32

	* plug-ins/helpbrowser/dialog.c : include gimpwin32-io.h

	* plug-ins/script-fu/siodwrapper.c plug-ins/script-fu/scrip-fu.c : there
	is no script-fu-server on win32
2004-11-21 14:22:45 +00:00
Michael Schumacher a31104356e first resize the image, then add the border layer and then fill it
2004-11-21  Michael Schumacher <schumaml@cvs.gnome.org>

	* plug-ins/script-fu/scripts/addborder.scm: first resize the
	image, then add the border layer and then fill it
2004-11-21 10:12:36 +00:00
Kevin Cozens 44a8b8c6b1 Need to call gettext in script-fu_menu_compare. Spotted by Sven. Removed
2004-11-20  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: Need to call gettext in
	script-fu_menu_compare. Spotted by Sven. Removed obsolete #define's.
2004-11-20 17:18:37 +00:00
Michael Natterer 38cbe2eaf9 renamed variable "script_list" to "script_tree" because it's a GTree.
2004-11-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: renamed variable
	"script_list" to "script_tree" because it's a GTree.

	(script_fu_remove_script): g_list_free() the right list (don't
	leak all lists of scripts at the tree leaves).
2004-11-20 14:55:51 +00:00
Sven Neumann 66b998686a added an (optional) parameter that allows to request the output in the
2004-11-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/glob.c: added an (optional) parameter that
	allows to request the output in the filesystem encoding.
2004-11-19 23:35:17 +00:00
Sven Neumann 662f7cfce4 compare the menu paths, not the struct pointers.
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_menu_compare):
	compare the menu paths, not the struct pointers.
2004-11-19 22:13:58 +00:00
Sven Neumann 86690417d8 mention encoding in the PDB docs 2004-11-19 21:23:45 +00:00
Sven Neumann 3d501d24a6 added a naive glob() implementation which handles the most common use case
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/glob.c: added a naive glob() implementation
	which handles the most common use case and is certainly better
	than nothing. Closes bug #143661 again.
2004-11-19 21:19:07 +00:00
Sven Neumann 21d9257abf just some minor code cleanup.
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/xpm.c: just some minor code cleanup.
2004-11-19 20:00:22 +00:00
Sven Neumann 57245fa6e3 plug-ins/gfig/gfig-dialog.c combined two "Stroke" labels into a single
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c
	* plug-ins/gfig/gfig-style.c: combined two "Stroke" labels into a
	single one.
2004-11-19 19:02:06 +00:00
Sven Neumann 9b50c8b2ca applied a (modified) patch that adds the possibility to correlate the
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/noisify.c: applied a (modified) patch that adds
	the possibility to correlate the noise with the signal. Adds the
	new PDB procedure "plug_in_scatter_rgb". Fixes bug #158700.

	* plug-ins/helpbrowser/dialog.c: set a reasonable default size.
2004-11-19 18:11:25 +00:00
Sven Neumann ef31a5f714 fixed use of fread(). Unfortunately this slowed down the plug-in again.
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c (skip_ps) (ps_close): fixed use of
	fread(). Unfortunately this slowed down the plug-in again.
	Disabled the code that reads the pipe to the end. This brings it
	back to speed. Seems to work fine for me, let's see if this causes
	problems for anyone...
2004-11-19 13:34:07 +00:00
Sven Neumann 7ec940630c moved into the <Image>/Select/Modify now that we can safely use
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/selection-round.scm: moved into the
	<Image>/Select/Modify now that we can safely use placeholders from
	Script-Fu.
2004-11-19 13:01:33 +00:00
Kevin Cozens 1fc03106cb tiny-fu/tiny-fu.c tiny-fu/tiny-fu-scripts.c Added support for
2004-11-18  Kevin Cozens  <kcozens@cvs.gimp.org>

	* tiny-fu/tiny-fu.c
	* tiny-fu/tiny-fu-scripts.c
	* tiny-fu/tiny-fu-scripts.h: Added support for (tiny-fu-menu-register)
	to allow scripts to register their menu_paths the same undeprecated
	way as plug-ins. Fixes bug #158117. Renamed tiny_fu_find_scripts() to
	tiny_fu_load_all_scripts(). Added calls to gettext() since TinyScheme
	no longer translates marked strings. In tiny_fu_script_proc() changed
	some uses of params variable that should have been param.

	* tiny-fu/tiny-fu-interface.c: Added a utility function to reduce
	code duplication.

	* tiny-fu/ts-wrapper.c: Added support for (tiny-fu-menu-register).

	* tinyscheme/scheme.c: Don't call gettext() on strings marked for
	translation. De-tabified file.

	* scripts/test-sphere.sct: Example use of new API for scripts.
2004-11-19 03:56:40 +00:00
Sven Neumann b606e95236 added a thumbnail load procedure (bug #158193).
2004-11-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/wmf.c: added a thumbnail load procedure
	(bug #158193).
2004-11-18 22:49:45 +00:00
Michael Natterer 8a46203e5a Script-Fu string cleanup/simplification: apply the same fix for menu path
2004-11-18  Michael Natterer  <mitch@gimp.org>

	Script-Fu string cleanup/simplification: apply the same fix for
	menu path translation that was done for plug-ins a while ago.

	* plug-ins/script-fu/script-fu.c (script_fu_auxillary_init): use
	gimp_plugin_menu_register() on the "Refresh" temp_proc.

	* plug-ins/script-fu/scripts/*.scm: ported all scripts to use
	script-fu-menu-register and pass just the menu label in
	script-fu-register. Cleaned up all register calls to share a
	somewhat similar formatting.
2004-11-18 22:44:28 +00:00
Sven Neumann 2d4aad8683 changed the default to load only the first page of the document and added
2004-11-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c: changed the default to load only
	the first page of the document and added a tooltip describing how
	to specify what pages to get.
2004-11-18 21:36:10 +00:00
Sven Neumann 86a8c17025 speed up loading of multi-page documents significantly by skipping in
2004-11-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c: speed up loading of multi-page
	documents significantly by skipping in large chunks instead of using
	fgetc() to crawl through the stream.
2004-11-18 21:10:12 +00:00
Sven Neumann 181c089a51 check the number of return values. Only retrieve width and height if the
2004-11-18  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_thumbnail): check the number of
	return values. Only retrieve width and height if the thumbnail
	load procedure does actually provide such this information.

	* plug-ins/common/postscript.c: added a procedure to loads
	thumbnails.  For now it only renders the first page of the
	document at low resolution. It should be extended to load an
	embedded thumbnail if available.

	* plug-ins/common/jpeg.c
	* plug-ins/common/svg.c: no need to register a menu label for the
	thumbnail loaders. Allocate the return_vals array large enough to
	hold all return values.
2004-11-18 19:00:02 +00:00