Commit Graph

2115 Commits

Author SHA1 Message Date
Sven Neumann fe4acfa4ed use the correct pointer when dumping gradients to stderr in case of
2000-12-11  Sven Neumann  <sven@gimp.org>

	* app/gradient.c: use the correct pointer when dumping gradients to
	stderr in case of problems. Sort of fixes bug #31510.
2000-12-11 17:15:29 +00:00
Sven Neumann b755f5751a corrected incrementor for the bpp == 4 case. Fixes bug #34738.
2000-12-11  Sven Neumann  <sven@gimp.org>

	* app/gimphistogram.c (gimp_histogram_calculate_sub_region):
	corrected incrementor for the bpp == 4 case. Fixes bug #34738.
2000-12-11 16:31:07 +00:00
Sven Neumann ed707bea13 app/edit_selection.c app/gimpimage.c app/layer_select.c when computing a
2000-12-11  Sven Neumann  <sven@gimp.org>

	* app/edit_selection.c
	* app/gimpimage.c
	* app/layer_select.c
	* app/layers_dialog.c: when computing a preview, limit the scale ratio
	to a maximum of 1.0. By doing so we avoid to scale drawables up if the
	image (canvas) size becomes larger than the drawable. Fixes bug #31098.

	* app/gimppreviewcache.[ch]: indented
2000-12-11 03:33:25 +00:00
Sven Neumann 1edd823545 do not set the layer mode of the bottom layer to NORMAL_MODE if it is
2000-12-03  Sven Neumann  <sven@gimp.org>

	* app/gimpimage.c: do not set the layer mode of the bottom layer to
	NORMAL_MODE if it is DISSOLVE_MODE since the latter does not work
	on the projection with the lower layer but on the layers alpha
	channel. Fixes bug #7829.
2000-12-03 21:34:38 +00:00
Michael Natterer ab6f72912c when applying or deleting the layer mask, we have to call
2000-12-03  Michael Natterer  <mitch@gimp.org>

	* app/layers_dialog.c: when applying or deleting the layer mask,
	we have to call layers_dialog_set_menu_sensitivity() ourselves
	whenever calling layer_widget_layer_flush() instead of
	gdisplays_flush().
2000-12-03 19:18:01 +00:00
Michael Natterer 6bb4458abb plug-ins/gflare/gflare.c libgimp/gimpunitmenu.c set separators of option
2000-12-03  Michael Natterer  <mitch@gimp.org>

	* plug-ins/gflare/gflare.c
	* libgimp/gimpunitmenu.c
	* libgimp/gimpwidgets.c: set separators of option menus insensitive.
	(see Sven's fix below below).

	* app/layers_dialog.c: set "Merge Down" insensitive for
	the bottom layer.
2000-12-03 18:35:58 +00:00
Sven Neumann 0d9382fb04 app/layer.c app/layers_dialog.c reviewed code in an attempt to fix the
2000-12-03  Sven Neumann  <sven@gimp.org>

	* app/layer.c
	* app/layers_dialog.c
	* plug-ins/common/jpeg.c: reviewed code in an attempt to fix the
	crash-on-jpeg-save. The only thing that I have changed (despite
	lots of indentation) is that we now connect the preview rewdraw
	using gtk_signal_connect_while_alive() which should keep gimp from
	trying to create previews of nonexistant drawables.

Updated german translation.
2000-12-03 18:15:08 +00:00
GMT 2000 Andy Thomas fb4fb8c014 app/curves.c app/levels.c
Thu Nov 30 23:26:07 GMT 2000 Andy Thomas <alt@gimp.org>

	* app/curves.c
        * app/levels.c

	Fix for gimp bug #33403. The curves and levels dialogs should now
	work in GRAYA images.
2000-11-30 23:23:59 +00:00
Austin Donnelly 9a3f33f6f0 Applied patch from David Hodson <hodsond@ozemail.com.au> to fix Bug#33399:
2000-11-29  Austin Donnelly  <austin@gimp.org>

	* app/curves.c: Applied patch from David Hodson
	    <hodsond@ozemail.com.au> to fix Bug#33399: GIMP crashes when
	    applying curve to Grayscaled image when preview is off.
	    Previously the curves tool attempted a reset when changing
	    image, but didn't correctly do this.  Now it has the
	    (more useful) behaviour of doing a partial reset, where the
	    curve remains the same across multiple invocations, allowing
	    you to apply the same tweak to multiple images.  The internal
	    state relevant to image type/depth is correctly reset,
	    stopping the segfault behaviour seen before.

	    Still no fix for Bug#33403: Curves/Levels Tool does not work
	    on GRAYA-Images.
2000-11-29 16:19:43 +00:00
Sven Neumann 969b4c5957 PLUG_IN_MAINTAINERS changed email address of Winston Chang
2000-11-26  Sven Neumann  <sven@gimp.org>

	* PLUG_IN_MAINTAINERS
	* plug-ins/common/unsharp.c: changed email address of Winston Chang

	* app/gdisplay_color_ui.c: applied a modified version of another
	patch sent by David Odin <David.Odin@bigfoot.com> which sets the
	sensitivity of the buttons in the dialog according to the possible
	actions.
2000-11-26 12:13:23 +00:00
Garry R. Osgood 18871b798e 2000-11-24 Garry R. Osgood <gosgood>@idt.net *
* app/smudge.c
Defer tool initialization to first motion event.
Fixes latency problem that gave rise to
Shift-smudge bug. Closes #30778.
2000-11-24 17:49:03 +00:00
Sven Neumann 81799a1b29 app/gdisplay_color.c applied patches proposed by David Odin
2000-11-21  Sven Neumann  <sven@gimp.org>

	* app/gdisplay_color.c
	* app/gdisplay_color_ui.c: applied patches proposed by
	David Odin <David.Odin@bigfoot.com>. Fixes segfault when removing
	a display filter twice.
2000-11-21 20:54:53 +00:00
Sven Neumann 54f243d76c changed the logic that sets the default for "Custom Palette" so it goes
2000-11-20  Sven Neumann  <sven@gimp.org>

	* app/convert.c (build_palette_button): changed the logic that sets
	the default for "Custom Palette" so it goes through the whole list
	instead of stopping at the "Web" palette. The Indexed-Conversion
	dialog now also remembers palettes appearing after the "Web" palette.
2000-11-20 12:06:45 +00:00
Michael Natterer cdd0a5147d app/fileops.c Make sure that we don't try to destroy query_boxes twice or
2000-11-18  Michael Natterer  <mitch@gimp.org>

	* app/fileops.c
	* libgimp/gimpquerybox.[ch]: Make sure that we don't try to destroy
	query_boxes twice or try to disconnect not-any-more connected
	handlers.

	* app/color_notebook.c
	* app/gimpcontext.[ch]
	* app/gimphelp.[ch]
	* app/lc_dialog.[ch]
	* app/menus.h
	* app/preferences_dialog.c
	* app/tools.[ch]
	* libgimp/gimpcolorbutton.[ch]
	* libgimp/gimpdialog.[ch]
	* libgimp/gimpexport.[ch]
	* libgimp/gimpfileselection.[ch]
	* libgimp/gimphelpui.[ch]
	* libgimp/gimppatheditor.[ch]
	* libgimp/gimppixmap.[ch]
	* libgimp/gimpsizeentry.[ch]
	* libgimp/gimpui.[ch]
	* libgimp/gimpunitmenu.[ch]
	* libgimp/gimpwidgets.[ch]: in a coding attack, changed help_data
	and many other strings passed to UI functions to (const gchar *).
	As a consequence, I had to fix lots of warnings ;)

	* plug-ins/common/tga.c
	* plug-ins/imagemap/imap_main.c: fixed warnings.

	Code cleanup and indentation all over the place.
2000-11-18 00:25:42 +00:00
Sven Neumann c84c286b87 we used to g_free memory returned by strdup() here! Also we used to append
2000-11-15  Sven Neumann  <sven@gimp.org>

	* app/fileops.c: we used to g_free memory returned by strdup() here!
	Also we used to append DIR_SEPARATORs to the filename shown in the
	file_selector even if it already ended in one. Fixed all this, closed
	a memleak and cleaned up the code.
2000-11-15 17:48:43 +00:00
Simon Budig cc2f917cc5 fixed #10554 by requesting a window with the max. size of
2000-11-11  Simon Budig <simon@gimp.org>

        * app/interface.c: fixed #10554 by requesting a window
        with the max. size of 0.75*screen_width x 0.75*screen_height.
        These 75% value is taken from the shrink_wrap code and
        probably should be configurable...
2000-11-12 00:43:15 +00:00
Garry R. Osgood c24b37e51c 2000-11-11 Garry R. Osgood <gosgood>@idt.net *
app/gimpbrushpipe.c
Double frees due to dangling pointers [gimpbrushpipe.c
CVS-1.27 Lines 396 ff]. Upon failure to load an n-th
pixmap, a GPattern holding the dangling pointers would
be released first, also releasing n-1 pixmap's name and
RGB mask. These would again be freed in pipe and GTK
deconstruction.
2000-11-11 15:48:27 +00:00
Manish Singh 0dac10c777 AUTHORS app/authors.h Correct Ray Lehtiniemi's name
* AUTHORS
* app/authors.h
* tools/authorsgen/contributors: Correct Ray Lehtiniemi's name

-Yosh
2000-11-09 23:55:38 +00:00
Michael Natterer f2eb5c25f5 added a confirm dialog for <Image>/File/Revert as suggested by Marc. The
2000-11-09  Michael Natterer  <mitch@gimp.org>

	* app/fileops.c: added a confirm dialog for <Image>/File/Revert
	as suggested by Marc. The old behaviour of simply reverting
	withuot asking is questionable because the "Revert" menu item is
	directly below "Save as..."
2000-11-09 19:12:20 +00:00
Michael Natterer 312c680047 Makefile.am gimp.spec.in user_install new file gtkrc_user which gets
2000-11-08  Michael Natterer  <mitch@gimp.org>

	* Makefile.am
	* gimp.spec.in
	* user_install
	* gtkrc_user: new file gtkrc_user which gets installed as
	~/.gimp-1-1/gtkrc (We used to parse the same file twice if the
	user didn't the change user-specific gtkrc. The new file has
	comments only).

	* app/app_procs.c: g_free() the user gtkrc filename after use.

	* libgimp/gimpui.c: parse the user gtkrc here too.
2000-11-07 23:12:03 +00:00
Sven Neumann f6fb459511 use gdk_fonset_load() as we do in text_render(). Supposed to fix #31099.
2000-11-07  Sven Neumann  <sven@gimp.org>

	* app/text_tool.c (text_get_extends): use gdk_fonset_load() as we
	do in text_render(). Supposed to fix #31099.
2000-11-07 18:37:28 +00:00
Sven Neumann 746c37eb7e moved the new enum Garry introduced recently from the header to the .c
2000-11-06  Sven Neumann  <sven@gimp.org>

	* app/convolve.[ch]: moved the new enum Garry introduced recently
	from the header to the .c file so it does not get exported to the
	PDB by enumgen.pl.

and some updates to the italian translation as sent by Daniele Medri.
2000-11-06 12:40:07 +00:00
jaycox 9b632677a2 Make sure that we are not using bad file names for generated brushes.
* app/gimpbrushlist.c:  Make sure that we are not using bad file names
	for generated brushes.
2000-11-05 14:11:45 +00:00
jaycox e3538264b6 Add some comments. Delete some commented code. Make sure that we are not
* app/paint_funcs.c:  Add some comments.  Delete some commented code.
	* app/gimpbrushlist.c:  Make sure that we are not using bad file names
	for generated brushes.
2000-11-05 13:58:17 +00:00
Garry R. Osgood 2bcc63533c Garry R. Osgood <gosgood>@idt.net
Convolution tool can now operate
in two-pixel regions at the edge
of images. Closes #19285. See
http://idt.net/~gosgood/gimp-patch/patch08.html
2000-11-04 17:54:01 +00:00
Sven Neumann d0434826ac parse the users gtkrc as found in ~/.gimp-1.1 after the systemwide gtkrc
2000-11-03  Sven Neumann  <sven@gimp.org>

        * app/app_procs.c (app_init): parse the users gtkrc as found in
        ~/.gimp-1.1 after the systemwide gtkrc has been parsed.

        * user_install.bat: reverted Tor's change since we use the file
        again now.
2000-11-03 22:59:50 +00:00
Sven Neumann d9a007eb04 Robert L Krawitz <rlk@alum.mit.edu> filled the empty spaces.
2000-10-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/escputil.1.in: Robert L Krawitz <rlk@alum.mit.edu>
	filled the empty spaces.
2000-10-31 20:44:57 +00:00
Michael Natterer ab2bf62f5b the argv[] element containing "-g" or "--gimprc" was not set to NULL,
2000-10-29  Michael Natterer  <mitch@gimp.org>

	* app/main.c: the argv[] element containing "-g" or "--gimprc"
	was not set to NULL, fixed broken (tabsize != 8) indentation.
2000-10-29 14:01:17 +00:00
Michael Natterer c7c4a48a3a after getting confused again by the boolean "initialize" variable, I
2000-10-29  Michael Natterer  <mitch@gimp.org>

	* app/menus.c: after getting confused again by the boolean
	"initialize" variable, I finally decided to reverse it's
	logic and changed it to "menus_initialized".
2000-10-29 13:28:48 +00:00
Tor Lillqvist 2e661c1c1e app/gimprc.c (parse_gimprc_file) Make sure the directory doesn't get
2000-10-28  Tor Lillqvist  <tml@iki.fi>

	* app/gimprc.c (parse_gimprc_file)
	* libgimp/gimpenv.c (gimp_directory): Make sure the directory
	doesn't get double path separators in case HOME ends with one. On
	Windows, if the user has set his HOME to \, we get into trouble
	when we try to access a path like \\_gimp1.1\gimprc. Windows
	thinks it's an UNC path to a network server called "_gimp1.1", and
	the program hangs for a moment.
2000-10-28 17:23:39 +00:00
Michael Natterer 6cfb041479 app/gimpdrawable.[ch] did some code review: s/0/NULL/,
2000-10-28  Michael Natterer  <mitch@gimp.org>

	* app/gimpdrawable.[ch]
	* libgimp/gimpsizeentry.c: did some code review: s/0/NULL/,
	s/sprintf/g_snprintf/, spacing.
2000-10-28 15:43:56 +00:00
Michael Natterer e658b1cc6f same RINT (gimp_size_entry_get_refval ()) fix as below and cleanup.
2000-10-27  Michael Natterer  <mitch@gimp.org>

	* app/resize.c: same RINT (gimp_size_entry_get_refval ()) fix as
	below and cleanup.
2000-10-26 22:15:04 +00:00
Sven Neumann 8cfac64aac avoid modulo operation on negative values.
2000-10-26  Sven Neumann  <sven@gimp.org>

	* app/channel_ops.c (offset_ok_callback): avoid modulo operation on
	negative values.

	* app/channel_ops.c
	* app/crop.c
	* app/file_new_dialog.c
	* app/layers_dialog.c
	* app/preferences_dialog.c
	* app/rotate_tool.c
	* app/scale_tool.c: use RINT() when assigning the result of
	gimp_size_entry_get_refval() to an integer.
2000-10-26 22:02:44 +00:00
Daniel Egger 888e9a394b Revert last change. 2000-10-25 23:14:11 +00:00
Daniel Egger 65f1edb172 Removed the JIT calculation of the tile_shift value and replaced it by a
* app/image_render.c:
 * app/tile.h: Removed the JIT calculation of the tile_shift
 value and replaced it by a constant called TILE_SHIFT in tile.h.
 This gives the compiler a better chance to optimize the code.
 Also added a few consts all over the place to give the compiler
 some hints.
2000-10-25 19:35:08 +00:00
Sven Neumann 27a4faa0b2 plugged memleak (similar to the one that was present in
2000-10-22  Sven Neumann  <sven@gimp.org>

	* app/edit_selection.[ch]: plugged memleak (similar to the one that
	was present in gtkutil_compress_motion()) in the key snooper.

	Round moves to nearest integer instead of truncating the value.
	This seems to fix the reported redraw problems when moving
	selections at low zoom levels.

	Cleaned up the code a little and converted enum values to uppercase.

	* app/bezier_select.c
	* app/free_select.c
	* app/fuzzy_select.c
	* app/move.c
	* app/rect_select.c
	* app/text_tool.c: updated to use the new EditType enum values.

	* app/gimprc.c: minor optimization in the GList handling.

	* app/layer.[ch]: removed unused functions.

	* app/menus.c: removed "Dump Items (Debug)" menu entry.
2000-10-23 09:05:45 +00:00
Austin Donnelly d37667433d minor patch from David Hodson <hodsond@ozemail.com.au> to fix off-by-one
2000-10-21  Austin Donnelly  <austin@gimp.org>

	* plug-ins/common/nlfilt.c: minor patch from David Hodson
	    <hodsond@ozemail.com.au> to fix off-by-one error in previous fix.

    	* AUTHORS
	* app/authors.h
	* tools/authorsgen/contributors: Add the prolific David Hodson
	    to the authors list.
2000-10-21 13:15:55 +00:00
Sven Neumann 733fe38d77 app/authors.h updated after Seth's change to AUTHORS. Please do always
2000-10-19  Sven Neumann  <sven@gimp.org>

	* app/authors.h
	* tools/authorsgen/contributors: updated after Seth's change to
	AUTHORS. Please do always change the file contributors, then run
	authorsgen.
2000-10-19 11:13:08 +00:00
Seth Burgess ec469b105f Added ALPHA_LUT to types accecpted by levels PDB. Patch by TomR.
ChangeLog tools/pdbgen/pdb/color.pdb app/color_cmds.c
2000-10-19 04:48:58 +00:00
Daniel Egger 8780254389 Add a patch from Tino Schwarze <tino.schwarze@informatik.tu-chemnitz.de>
2000-10-18  Daniel Egger  <egger@suse.de>

        * app/resize.c: Add a patch from
	Tino Schwarze <tino.schwarze@informatik.tu-chemnitz.de>
	to add a reset button to the image resize dialog.
2000-10-18 23:31:38 +00:00
Sven Neumann 22616e80f4 as Mitch pointed out we used to leak GList memory here. The new
2000-10-18  Sven Neumann  <sven@gimp.org>

	* app/cursorutil.c (gtkutil_compress_motion): as Mitch pointed out we
	used to leak GList memory here. The new implementation should be
	faster too, since it prepends to the list instead of appending.
2000-10-18 17:51:25 +00:00
Sven Neumann a10008ac0a app/paint_funcs.c app/pixel_processor.c plug-ins/common/pix.c
2000-10-17  Sven Neumann  <sven@gimp.org>

	* app/paint_funcs.c
	* app/pixel_processor.c
	* plug-ins/common/pix.c
	* plug-ins/gap/gap_pdb_calls.c
	* plug-ins/gdyntext/message_window.c
	* plug-ins/xjt/xjpeg.c: removed compiler warnings
2000-10-17 18:32:43 +00:00
Tor Lillqvist 37971cd589 Add resolution_calibrate.o.
2000-10-17  Tor Lillqvist  <tml@iki.fi>

	* app/makefile.mingw.in (gimp_OBJECTS): Add
	resolution_calibrate.o.

	* app/user_install.c (user_install_run): Add missing semicolon.

	* tips/makefile.mingw (install): Copy gimp_tips.txt separately. We
	used to get gimp_tips.txt.txt because of `basename $f .utf8`.
2000-10-17 17:26:31 +00:00
Sven Neumann 9554632046 Makefile.am configure.in gimp.1.in gimp.spec.in gimprc.5.in user_install
2000-10-14  Sven Neumann  <sven@gimp.org>

	* Makefile.am
	* configure.in
	* gimp.1.in
	* gimp.spec.in
	* gimprc.5.in
	* user_install
	* user_install.bat
	* app/gimprc.c
	* app/user_install.c
	* libgimp/Makefile.am
	* libgimp/gimpenv.[ch]: applied a modified version of
	gimp-che-20001013-2, a patch from Ben Gertzfield <che@debian.org>
	that moves the system-dependant configuration files (gimprc and
	friends) into $prefix/etc/gimp/1.1.
2000-10-14 22:15:11 +00:00
Sven Neumann 6fd73ed6e7 applied patch from Ben Gertzfield which fixes a misuse of "it's", changing
2000-10-14  Sven Neumann  <sven@gimp.org>

        * app/user_install.c: applied patch from Ben Gertzfield which fixes
        a misuse of "it's", changing it to "its".
2000-10-14 18:28:10 +00:00
Michael Natterer 0cef25ae06 AUTHORS somehow Sven's latest "contributors" update didn't make it here.
2000-10-07  Michael Natterer  <mitch@gimp.org>

	* AUTHORS
	* app/authors.h: somehow Sven's latest "contributors" update
	didn't make it here.
2000-10-07 17:06:00 +00:00
Manish Singh a0cb639b6f 1.1.27 stuff
-Yosh
2000-10-04 23:41:47 +00:00
Simon Budig 304a74a7ed Made the import path command work as intended. Now files can contain
2000-10-05  Simon Budig  <simon@gimp.org>

        * app/paths_dialog.c: Made the import path command work as
          intended. Now files can contain multiple paths (simply
          cat path files together). Note, that this is a bugfix:
          I just moved one line in the code - I like that...  :-)
2000-10-04 09:25:18 +00:00
Michael Natterer b0cd835d08 resize the cursor label if the shrink_wrap flag is set. Closes #21936.
2000-10-02  Michael Natterer  <mitch@gimp.org>

	* app/undo.c: resize the cursor label if the shrink_wrap flag is
	set. Closes #21936.
2000-10-01 23:04:03 +00:00
Michael Natterer 4eeb875946 app/gimpbrush.c app/gimpbrushpipe.c app/pattern_header.h fixed #8150.
2000-10-01  Michael Natterer  <mitch@gimp.org>

	* app/gimpbrush.c
	* app/gimpbrushpipe.c
	* app/pattern_header.h
	* app/patterns.c: (Hopefully) fixed #8150.

	- If something goes wrong during loading, free the resp. object
	  immediately and close it's FD.
	- When destroying, check each pointer before freeing it.
	- Never use if (!gimp_brush_load_brush() || !pattern_load())
	  but check the return values of both calls separately.
	  (the original code tried to free an already destroyed temp_buf).
	- stuff like below (s/sz_PatternHeader/sizeof(PatternHeader)/g etc.)
2000-10-01 18:53:39 +00:00
Michael Natterer f38cdf123c app/brush_edit.[ch] app/brush_header.h app/gimpbrush.[ch]
2000-09-29  Michael Natterer  <mitch@gimp.org>

	* app/brush_edit.[ch]
	* app/brush_header.h
	* app/gimpbrush.[ch]
	* app/gimpbrushgenerated.[ch]
	* app/gimpbrushlist.[ch]
	* app/gimpbrushpipe.[ch]
	* app/gimpcontext.h
	* app/gimplist.[ch]
	* app/gimpobject.[ch]
	* app/gimpset.[ch]
	* app/gimpsignal.[ch]
	* app/parasitelist.h: Lotsa fixes in the brush referencing code
	and cleanups in many GtkObjects:

	- Reference brushes correctly (call gtk_object_sink() after adding
	  them to the brush list). Don't crash when renaming a brush
	  multiple times.
	- Replaced all gtk_object_destroy() with gtk_object_unref|sink().
	- Removed the "Fake Gimp object system" (gimp_object_destroy() et.al.)
	  all over the place (while it's a good idea to have a common Gimp
	  base object, it's totally useless to try to imitate Gtk's object
	  system).
	- s/sz_BrushHeader/sizeof(BrushHeader)/g
	- And of course various indentation and coding style paranoia changes
	  in all files I visited.
2000-09-29 12:00:00 +00:00
Daniel Egger b07c7184ed New dialog_hide functions which are utilised from convert.c to hide
New dialog_hide functions which are utilised from convert.c to hide
 dialogs before converting an image to indexed. Bug #23104.
2000-09-29 01:22:27 +00:00
Daniel Egger 09fee5ff78 Simplify a few help paths.
Simplify a few help paths.
2000-09-28 14:09:26 +00:00
Daniel Egger 61131728ac C++ comments removals.
C++ comments removals.
2000-09-27 18:00:05 +00:00
Daniel Egger 4b2c4d8424 Return when brush loading failed and react the right way. Fixes parts of
Return when brush loading failed and react the right way. Fixes
 parts of bug #8150.
2000-09-27 17:50:59 +00:00
Daniel Egger 9d051ffcde Fix SPARC alignment problem. Fix by Jon Hazen. Bug #21269.
Fix SPARC alignment problem. Fix by Jon Hazen. Bug #21269.
2000-09-27 17:36:52 +00:00
Daniel Egger e13fcd8b1f Turned C++ style comments into C style ones.
Turned C++ style comments into C style ones.
2000-09-26 22:54:33 +00:00
Seth Burgess a6f1db1071 Made text appear when preview is generated. Fixes #25821. 2000-09-25 01:39:57 +00:00
Sven Neumann c46974cf67 really add the new files
--Sven
2000-09-25 01:31:48 +00:00
Sven Neumann f4342ab813 new files. Code for the resolution calibration dialog that used to live in
2000-09-25  Sven Neumann  <sven@gimp.org>

	* app/resolution_calibrate.[ch]: new files. Code for the resolution
	calibration dialog that used to live in user_install.c

	* app/Makefile.in
	* app/menus.c
	* app/preferences_dialog.[ch]
	* app/user_install.[ch]: added a Calibrate button to the Preferences
2000-09-25 01:27:47 +00:00
Tor Lillqvist 1e9f323717 libgimp/makefile.mingw.in app/makefile.mingw.in modules/makefile.mingw.in
2000-09-21  Tor Lillqvist  <tml@iki.fi>

	* libgimp/makefile.mingw.in
	* app/makefile.mingw.in
	* modules/makefile.mingw.in
	* plug-ins/makefile.mingw.in: Fix bug in ../config.h rule, cp src
	and dest were in wrong order.

	* config.h.win32: Remove alloca definition, current <glib.h> now
	handles that.
2000-09-21 17:51:33 +00:00
Kevin Turner 681f12f101 Close bug "Segfault after using display filters,"
add paranoid robustness checking to active_dialogs in dialog_handler.c
to attempt to recover gracefully from this problem in the future.
2000-09-15 10:04:35 +00:00
jaycox e4b031932a fix bug #24188. allow num_processors to be set on the fly.
* app/pixel_processor.c: fix bug #24188.
	* app/preferences_dialog.c: allow num_processors to be set on
	the fly.
2000-09-14 16:22:40 +00:00
Michael Natterer 659d46c2d8 always position the menu inside the screen boundaries.
2000-09-14  Michael Natterer  <mitch@gimp.org>

	* app/disp_callbacks.c: always position the menu inside the
	screen boundaries.
2000-09-14 15:42:39 +00:00
Michael Natterer 9d4e8b7d27 new function gdisplay_origin_menu_position() which positions the menu
2000-09-14  Michael Natterer  <mitch@gimp.org>

	* app/disp_callbacks.c: new function gdisplay_origin_menu_position()
	which positions the menu right of the arrow instead of underneath
	the mouse (where you always have the first entry selected, which
	is annoying).
2000-09-14 14:53:06 +00:00
Michael Natterer b9413eb038 added -DGTK_DISABLE_COMPAT_H to CPPFLAGS.
2000-08-28  Michael Natterer  <mitch@gimp.org>

	* configure.in: added -DGTK_DISABLE_COMPAT_H to CPPFLAGS.

	* app/app_procs.c
	* app/gdisplay.c
	* app/layers_dialog.c
	* app/menus.c
	* app/tips_dialog.c
	* libgimp/gimpcolorbutton.c
	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/FractalExplorer/FractalExplorer.c
	* plug-ins/bmp/bmpwrite.c
	* plug-ins/common/AlienMap.c
	* plug-ins/common/AlienMap2.c
	* plug-ins/common/CML_explorer.c
	* plug-ins/common/animationplay.c
	* plug-ins/common/cubism.c
	* plug-ins/common/curve_bend.c
	* plug-ins/common/deinterlace.c
	* plug-ins/common/gee.c
	* plug-ins/common/glasstile.c
	* plug-ins/common/iwarp.c
	* plug-ins/common/mail.c
	* plug-ins/common/pat.c
	* plug-ins/common/pixelize.c
	* plug-ins/common/plugindetails.c
	* plug-ins/common/png.c
	* plug-ins/common/sample_colorize.c
	* plug-ins/common/sel_gauss.c
	* plug-ins/common/sinus.c
	* plug-ins/common/sparkle.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/common/tga.c
	* plug-ins/common/tileit.c
	* plug-ins/common/vpropagate.c
	* plug-ins/common/warp.c
	* plug-ins/common/waves.c
	* plug-ins/common/wmf.c
	* plug-ins/flame/flame.c
	* plug-ins/fp/fp_gtk.c
	* plug-ins/gap/gap_arr_dialog.c
	* plug-ins/gap/gap_dbbrowser_utils.c
	* plug-ins/gap/gap_mov_dialog.c
	* plug-ins/gap/gap_navigator_dialog.c
	* plug-ins/gap/gap_resi_dialog.c
	* plug-ins/gdyntext/gdyntext_ui.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gimpressionist/brush.c
	* plug-ins/gimpressionist/gimpressionist.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/gimp_main_window.c
	* plug-ins/rcm/rcm_callback.c
	* plug-ins/rcm/rcm_dialog.c
	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-server.c
	* plug-ins/sel2path/sel2path_adv_dialog.c
	* plug-ins/xjt/xjt.c: removed COMPAT_CRUFT.
2000-08-28 00:42:32 +00:00
Sven Neumann bfdfaeb49c shut up CVS
--Sven
2000-08-26 12:52:38 +00:00
Tor Lillqvist dfe7a58757 Plug memory leak. The bitmap and mask GdkBitmaps were leaked each time.
2000-08-25  Tor Lillqvist  <tml@iki.fi>

	* app/cursorutil.c (gimp_change_win_cursor): Plug memory leak. The
	bitmap and mask GdkBitmaps were leaked each time.

	* plug-ins/makefile.mingw.in: Really add it this time.
2000-08-25 20:48:23 +00:00
Sven Neumann 92c5f0486c For my friend Xach.
--Sven
2000-08-25 17:41:38 +00:00
Sven Neumann cb7d5a179f tools/pdbgen/pdb/fileops.pdb added a few more PDB wrappers
2000-08-25  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/fileops.pdb
	* tools/pdbgen/pdb/selection.pdb: added a few more PDB wrappers

	* tools/pdbgen/pdb/image.pdb: tweaked the help and blurb strings

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

	* plug-ins/common/bz2.c
	* plug-ins/common/gz.c
	* plug-ins/common/mail.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/url.c
	* plug-ins/gdyntext/gdyntext.c
	* plug-ins/gfig/gfig.c: use new PDB wrappers.
	For GDynText this change fixes a bug since it used to use the
	wrong number of arguments for gimp_selection_load().

	* plug-ins/flame/rect.[ch]: removed compiler warning
2000-08-25 15:38:38 +00:00
Sven Neumann 48ebd22f43 make it compile with gtk+-1.2 again
--Sven
2000-08-24 19:38:48 +00:00
Tor Lillqvist 565ca6b118 Update, tell people the MSVC makefiles are not up-to-date.
2000-08-24  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Update, tell people the MSVC makefiles are not
	up-to-date.

	* */makefile.msc: Add warning about being outdated.

	* */makefile.cygwin: Remove.

	* */makefile.mingw.in: New files replacing the makefile.cygwin files.

	* */Makefile.am: Change correspondingly.

	* configure.in: Generate corresponding makefile.mingw files.

	* app/about_dialog.c: Include <gdk/gdkconfig.h> for
	GDK_USE_UTF8_MBS. Add UTF-8 version of a string.

	* libgimp/gimp.c: Remove horrible Win32 hack, not needed any longer.

	* plug-ins/common/jpeg.c: Use g_message, not g_warning.

	* plug-ins/common/winclipboard.c
	* plug-ins/common/winprint.c: Remove COMPAT_CRUFT.

	* plug-ins/Lighting/lighing_apply.c: Fix for non-interactive mode
	bug, supplied by Piet van Oostrum.

	* tips/makefile.mingw: New file.

	* tips/Makefile.am: Add it.
2000-08-24 17:53:43 +00:00
Garry R. Osgood 2667aca2bb app/image_map.c A bit of refresh drawable code was misplaced these many
2000-08-23 Garry R. Osgood <gosgood@idt.net>
* app/image_map.c
A bit of refresh drawable code was misplaced
these many years ago, leading to the persistence
of color tool effects, as reported in Mihail
Milushev's nicely composed bug report. Closes #7626
which has the gory details.
2000-08-24 02:11:37 +00:00
Manish Singh 114d5567c5 perl support for COMPAT_CRUFT
* configure.in: perl support for COMPAT_CRUFT

* plug-ins/gap/gap_decode_mpeg_main.c: removed COMPAT_CRUFT

-Yosh
2000-08-24 00:33:11 +00:00
Sven Neumann 5b205f17eb make the file_save dialog sensitive again if the user clicked "No" when
2000-08-23  Sven Neumann  <sven@gimp.org>

	* app/fileops.c: make the file_save dialog sensitive again if the
	user clicked "No" when asked if he wishes to overwrite a file.

	* app/gimpimage.c: when saving an undoable parasite, just do it
	without calling undo_push_cantundo(). Undoable parasites are used
	by many save plug-ins to attach a comment, but this operation
	shouldn't prevent the user from using the undo_stack afterwards.
	The JPEG plug-in has an additional bug that I couldn't solve, so
	undoing after a Save As JPEG is still impossible.

	* app/undo_history.c: lame attempt to draw the clean symbol at the
	correct undo step. Not perfect but much better as before...
2000-08-23 19:29:01 +00:00
Piers Cornwell 18e9f72aee Alter some options, and beautify.
2000-08-21  Piers Cornwell  <piers.cornwell@bigfoot.com>

	* app/main.c: Alter some options, and beautify.

	* gimp.1.in: Document the new options.
2000-08-21 21:46:45 +00:00
Manish Singh 5828759fb8 added get_number_of_built_in_units
* tools/pdbgen/pdb/unit.pdb: added get_number_of_built_in_units

* tools/pdbgen/Makefile.am: gen files in $top_srcdir/libgimp

* tools/pdbgen/lib.pl
* tools/pdbgen/pdb/procedural_db.pdb: libgimp pdbgen munging, final
landing

-Yosh
2000-08-21 21:23:31 +00:00
BST 2000 Austin Donnelly 42839da35b fix nasty bug where if overwriting a file and also changing the format,
Fri Aug 18 18:14:35 BST 2000 Austin Donnelly <austin@gimp.org>

	* app/fileops.c: fix nasty bug where if overwriting a file and
	    also changing the format, gimp would use the old format
    	    rather than the newly selected one.  To repeat: save a new
    	    image as (eg) jpeg by typing foo.jpg<RET>, then Save As XCF by
    	    using the pop-up menu and clicking OK, then Save As jpeg by
    	    using pop-up and clicking OK, and OK again to allow the file
    	    to be overwritten.  You should find that foo.jpg contains an
    	    XCF version of the image.  This was because the "overwrite"
    	    path through the code was subtly different from the standard
    	    way through, meaning that gimage_set_save_proc() was never
    	    called.  Now unified into new function file_save_with_proc().
2000-08-18 17:24:30 +00:00
Nick Lamb /GIMP 3815e91164 I venture once again into app/ to fix #11701.
This fix is somewhat evil. Tell me (rather than reverting it)
if you find a case for which it does not work.
2000-08-17 21:22:11 +00:00
BST 2000 Andy Thomas e47ed10901 plug-ins/sel2path/globals.h
Thu Aug 17 22:07:50 BST 2000 Andy Thomas <alt@gimp.org>

	* plug-ins/sel2path/globals.h

	Fixed compilation problems. Some really old compilers had problems
	with the macros in sel2path. Thanks to
        Dougal_R_Scott@nag.national.com.aui for pointing it out.

	* app/layers_dialog.c

	Fixes #16583: "new view" not being updated correctly. I still think
	theres is a problem in the idle rendering when images that
	have multiple views require updating.
	I could only get the deleting layers operation
	to leave the "other views" out of date. This fix forces the views
	to be updates as soon as the layer is deleted. I think this is
	acceptable since we are doing a "large scale" operation and the
	performance loss by not doing the update in the background is OK.

	* plug-ins/common/plugindetails.c

	Fixed problem when doing searches for plugins containing a
	given string caused gtk warnings to be issued
2000-08-17 21:18:49 +00:00
Sven Neumann 036e512d2e applied a fix for bug #16221 found by Seth Burgess <sjburges@gimp.org>.
2000-08-17  Sven Neumann  <sven@gimp.org>

	* app/boundary.c (allocate_vert_segs): applied a fix for bug #16221
	found by Seth Burgess <sjburges@gimp.org>.
2000-08-17 15:11:52 +00:00
Garry R. Osgood 43ff0cdfee app/gdisplay.c app/image_map.c
2000-08-16  Garry R. Osgood <gosgood@idt.net>
* app/gdisplay.c
* app/image_map.c

Addresses Bug Report #14704, and an
undisclosed undo system bug. Freezes
undo stack before interactive tools
commence idle rendering; thaws stack
on cleanup and immediately sets menu
sensitivity.

Not an image lock, but Yet Another UI
Lock. Oh well; merrilly we patch along...
See http://bugs.gnome.org/db/14/14704.html
for gory details. Closes #14704.
2000-08-17 01:33:44 +00:00
Michael Natterer 6c84db716a app/app_procs.c app/gimprc.c app/module_db.c s/if(be_verbose ||
2000-08-15  Michael Natterer  <mitch@gimp.org>

	* app/app_procs.c
	* app/gimprc.c
	* app/module_db.c
	* app/plug_in.c: s/if(be_verbose || no_splash)/if(be_verbose)/g

	Changed because nobody on #gimp could explain why "no_splash"
	should imply "be_verbose".
2000-08-15 15:42:14 +00:00
Daniel Egger 0bb72aa6c8 Added missing prototype.
Added missing prototype.
2000-08-14 17:31:19 +00:00
Michael Natterer 84e80a7fc9 make_initialization_status_window(): reverse logic for if(!no_interface &&
2000-08-09  Michael Natterer  <mitch@gimp.org>

	* app/app_procs.c: make_initialization_status_window(): reverse
	logic for if(!no_interface && !no_splash)

	* app/palette.[ch]: removed declarations of the two removed
	functions. One more s/gint/gboolean/.

	* libgimp/gimpfileselection.[ch]
	* libgimp/gimppixmap.[ch]: some consistency fixes (mostly fanatic :)

	* libgimp/gimpproceduraldb.c: fixed a compiler warning.
2000-08-09 17:04:16 +00:00
Daniel Egger 6a6b8ab135 Removed two functions.
Removed two functions.
2000-08-08 22:34:11 +00:00
Sven Neumann 922e25c0f5 don't crash when no palettes are available (thanks to Daniel for pointing
2000-08-08  Sven Neumann  <sven@gimp.org>

* app/palette.c: don't crash when no palettes are available
(thanks to Daniel for pointing me to this), but allow to open
the Palette Editor so you can refresh or create a new one.
2000-08-07 22:20:26 +00:00
Asbjørn Pettersen d7f392f886 spawnv for OS/2 2000-08-06 13:37:05 +00:00
Sven Neumann 07e01a2096 removed app/TODO
--Sven
2000-08-01 16:36:43 +00:00
Tor Lillqvist 8f3df4ef96 Change Win32 implementation to be a bit simpler. Use minigzip (from zlib)
2000-07-31  Tor Lillqvist  <tml@iki.fi>

	* plug-ins/common/gz.c (load_image,save_image): Change Win32
	implementation to be a bit simpler. Use minigzip (from zlib)
	instead of the full gzip. Intend to include minigzip with the
	(binary) distribution.

	* libgimp/makefile.{cygwin,msc}
	* app/makefile.{cygwin,msc}: Add G_LOG_DOMAIN.

	* app/gimpbrushhose.{c,h}: Really remove these files, as
	Adrian tried on August 23.

	* plug-ins/script-fu/script-fu.c: Enable the script-fu console on
	Win32, too.

	* plug-ins/script-fu/script-fu-console.c: Now with new GLib
	GIOChannel implementaion, compile for Win32, too. Use
	g_io_add_watch instead of gdk_input_add (on Unix, too). The
	callback for g_io_add_watch is passed a GIOChannel, while the
	callback for gdk_input_add is passed a file descriptor. On Win32
	(and possibly other non-Unices) we want GIOChannels, as we must
	use g_io_channel_read to read from file descriptors being
	watched. Works as previously on Unix this way, too.
2000-07-30 23:17:00 +00:00
Michael Natterer f1fcbeeb44 app/errors.[ch] app/main.c my last commit redirected all messages to the
2000-07-30  Michael Natterer  <mitch@gimp.org>

	* app/errors.[ch]
	* app/main.c
	* libgimp/gimp.c: my last commit redirected all messages to the
	console. Use g_log_set_handler() instead of g_set_message_handler()
	(which is deprecated anyway).
2000-07-30 17:33:37 +00:00
Michael Natterer ed3eb946b9 app/Makefile.am set G_LOG_DOMAINs for the app and for libgimp so we can
2000-07-30  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* libgimp/Makefile.am: set G_LOG_DOMAINs for the app and for
	libgimp so we can distinguish their warnings from plug-in ones.

	* libgimp/gimp.c: set the stack_trace_mode before installing
	signal handlers.
2000-07-30 16:25:19 +00:00
Sven Neumann aa5d61c24d use gimp_dialog_hide() instead of gtk_widget_hide(). Closes bug #19164.
2000-07-30  Sven Neumann  <neo@wintermute.ochsenblut.de>

* app/tools.c (tool_options_close_callback): use
gimp_dialog_hide() instead of gtk_widget_hide(). Closes bug #19164.
2000-07-30 00:24:40 +00:00
Tor Lillqvist 47328ffd2e libgimp/gimp.c libgimp/gimp.h libgimp/gimpmenu.c libgimp/gimpprotocol.c
2000-07-30  Tor Lillqvist  <tml@iki.fi>

	* libgimp/gimp.c
	* libgimp/gimp.h
	* libgimp/gimpmenu.c
	* libgimp/gimpprotocol.c
	* libgimp/gimpprotocol.h
	* libgimp/gimp.def
	* app/plug_in.c
	* plug-ins/helpbrowser/helpbrowser.c
	* plug-ins/script-fu/script-fu.c: As the GLib main loop and IO
	channel implementation on Win32 now provides the same interface as
	that on Unix, much of the Win32-only crap could be
	removed. Especially, no need for "wakeup" out-of-band messages to
	wake up pipe readers. No need for plug-ins to tell GIMP their
	thread id.

	* libgimp/gimp.c (gimp_extension_process): On Win32, use the new
	g_io_channel_win32_wait_for_condition() function.

	* plug-ins/makefile.cygwin: Add the homogenizer plug-in to the
	unofficial part.
2000-07-29 21:32:55 +00:00
Sven Neumann 94f36fdd11 updated the german translations and unmarked a string for translation
--Sven
2000-07-29 21:03:54 +00:00
Sven Neumann 90739b781c applied gimp-kirchgessner-000728-0, a patch by Peter Kirchgessner that
2000-07-29  Sven Neumann  <sven@gimp.org>

* plug-ins/common/decompose.c:
applied gimp-kirchgessner-000728-0, a patch by Peter Kirchgessner
that resolves request #16795 and changes the generated filenames
for decomposed images.

* app/authors.h
* tools/authorsgen/Makefile.am
* tools/authorsgen/authorsgen.pl: works better now

--Sven
2000-07-29 20:34:20 +00:00
Michael Natterer a17cf3bd0b cursors/background.xbm cursors/background_mask.xbm cursors/foreground.xbm
2000-07-29  Michael Natterer  <mitch@gimp.org>

	* cursors/background.xbm
	* cursors/background_mask.xbm
	* cursors/foreground.xbm
	* cursors/foreground_mask.xbm
	* cursors/pattern.xbm
	* cursors/pattern_mask.xbm: new files.

	* cursors/gimp-tool-cursors.xcf
	* app/cursorutil.[ch]: new cursor modifiers for bucket_fill.

	* app/bucket_fill.c: use the new modifiers. Closes #17871.

	* app/convolve.c
	* app/dodgeburn.c: added cursor_update functions which update the
	tools' "toggled" state before they call the cursor_update "method"
	of the paint_core "class" -- eek -- I-want-real-objects!
	Closes #17872 and #17873.

	* app/tools.h: added SELECTION_ANCHOR to the SelectOps enum.

	* app/free_select.c
	* app/rect_select.c: use the new enum value in the "oper_update"
	and "cursor_update" functions. In the "motion" function, set the
	tool's operation type back to SELECTION_REPLACE if the tool is
	active and call the "cursor_update" function explicitly.
	Closes #17870.

	* app/by_color_select.c: fixed warning caused by the new enum value.
2000-07-29 16:12:40 +00:00
Sven Neumann c5e7b16d06 Very hackerish attempt to create all three lists of authors
from one source. The file 'contributors' lists all the names
and is the only one you should dare to edit from now on.


--Sven
2000-07-24 22:11:28 +00:00
Michael Natterer 6e2e59edf4 AUTHORS gimp.1.in removed a doubly added author.
2000-07-19  Michael Natterer  <mitch@gimp.org>

	* AUTHORS
	* gimp.1.in
	* app/about_dialog.c: removed a doubly added author.
2000-07-19 08:42:39 +00:00
BST 2000 Austin Donnelly 1218b2bb89 The gif save plugin normally asks the user if it's ok to crop the image if
Tue Jul 18 23:34:34 BST 2000  Austin Donnelly  <austin@gimp.org>

	* plugs-ins/common/gif.c: The gif save plugin normally asks the
	    user if it's ok to crop the image if there are layers larger
    	    than the image size.  This isn't a good idea if we're running
    	    with run_mode == NON_INTERACTIVE.  Fix similar to that
    	    suggested by Bryan Livingston <bryan@cooltext.com> on
    	    gimp-developer mailing list.

   	* app/layer.c: Fix for Bug#17347: Scale Layer leaves artifacts.
	    Basic problem is that scaling a layer when there's a selection
    	    active (eg there's a floating selection) doesn't invalidate
    	    the layer bounds.  Same problem with resizing a layer,
    	    although the bug report didn't mention that.  Fixed by changing
    	    layer_resize() and layer_scale_lowlevel() to call
    	    layer_invalidate_boundary() once done changing the layer.
2000-07-18 22:48:14 +00:00
Michael Natterer df9eeff6ac Sven Neumann <sven@gimp.org>
2000-07-16  Michael Natterer  <mitch@gimp.org>
	    Sven Neumann      <sven@gimp.org>

	* AUTHORS
	* gimp.1.in
	* app/about_dialog.c: removed two accidentially added non-authors.

	* app/errors.[ch]
	* app/main.c: added a new command line option
	"--enable-stack-trace" which can be one of {never|query|always}.

	* app/plug_in.c
	* libgimp/gimp.c: pass the stack trace mode as an argv[] element to
	plug-ins. Cleaned up the plug-ins' argv[] (removed unused TILE_WIDTH
	and TILE_HEIGHT arguments, always pass 6 arguments to make the code
	simpler).

	* libgimp/gimpenums.h
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/Makefile.am
	* tools/pdbgen/enums.pl: export the app's STACK_TRACE_MODE enum.

	* plug-ins/common/plugindetails.c: made the titles of the tree view
	unclickable, cleanups.
2000-07-16 12:49:04 +00:00
Sven Neumann fe01ff2fcb applied a patch provided by Wolfgang Hofer <hof@hotbot.com> that fixes a
2000-07-08  Sven Neumann  <sven@gimp.org>

        * plug-ins/gap/gap_range_ops.c: applied a patch provided by
        Wolfgang Hofer <hof@hotbot.com> that fixes a problem when
        flattening a singlelayer image.
2000-07-08 14:18:50 +00:00
Seth Burgess 24542e8c9c app/levels.c : changed reset to reset all channels, not just currently
active one.  Fixes #15042.
2000-07-05 01:26:10 +00:00
Tor Lillqvist 437d7cb6c0 Use "windowing system" instead of "X-server".
2000-07-05  Tor Lillqvist  <tml@iki.fi>

* app/user_install.c (user_install_resolution): Use "windowing
system" instead of "X-server".
2000-07-04 22:54:42 +00:00
Sven Neumann 093390b91f Corrected an error message, applied updates to the italian
and german translations.


--Sven
2000-07-04 20:21:01 +00:00
Sven Neumann c271b413dc we used an array with a hardcoded size here which was too small to hold
2000-06-27  Sven Neumann  <sven@gimp.org>

	* app/about_dialog.c: we used an array with a hardcoded size here
	which was too small to hold all the authors recently added. Made
	it a dynamic one. This fixes the "Can't quit The GIMP" bug #15483.

	* app/about_dialog.h
	* app/commands.c: removed the timeout parameter from
	about_dialog_create() since it wasn't used at all.
2000-06-27 21:38:44 +00:00
BST 2000 Andy Thomas 3ed86a7343 app/paint_core.c
Tue Jun 27 22:26:30 BST 2000 Andy Thomas <alt@gimp.org>

	* app/paint_core.c

	Fixed problem with coloured brushes/grayscale images and painting
	close to the edge. Fixes bug #14159
2000-06-27 21:26:59 +00:00
Marc Lehmann 25b7eafa60 *** empty log message *** 2000-06-26 00:22:34 +00:00
Sven Neumann 49cde626db Adding 0.5 isn't always the right thing to do when converting to integer.
2000-06-25  Sven Neumann  <sven@gimp.org>

        * app/resize.c (offset_update): Adding 0.5 isn't always the
        right thing to do when converting to integer. Especially
        not if dealing with negative values. This change should
        fix the off-by-one error reported lately.
2000-06-25 13:50:12 +00:00
Matt Wilson 74fdc62e2a allocate the tool's paint_core with g_new0. This prevents us from having
2000-06-22  Matt Wilson  <msw@redhat.com>

	* app/paint_core.c (paint_core_new): allocate the tool's
	paint_core with g_new0.  This prevents us from having cruft in
	unused tools.  Systems with sensitive FPUs (Alpha) will raise
	exception in the paint_core_cursor_update if paint_core->last{x,y}
	are messy.

	* app/bezier_select.c (tools_new_bezier_select)
	* app/blend.c (blend_options_new)
	* app/brightness_contrast.c (tools_new_brightness_contrast)
	* app/bucket_fill.c (tools_new_bucket_fill)
	* app/by_color_select.c (tools_new_by_color_select)
	* app/color_balance.c (tools_new_color_balance)
	* app/color_panel.c (color_panel_new)
	* app/color_picker.c (tools_new_color_picker)
	* app/crop.c (tools_new_crop)
	* app/curves.c (tools_new_curves)
	* app/ellipse_select.c (tools_new_ellipse_select)
	* app/free_select.c (tools_new_free_select)
	* app/fuzzy_select.c (tools_new_fuzzy_select)
	* app/histogram_tool.c (tools_new_histogram_tool)
	* app/hue_saturation.c (tools_new_hue_saturation)
	* app/ink.c (tools_new_ink)
	* app/iscissors.c (tools_new_iscissors)
	* app/levels.c (tools_new_levels)
	* app/magnify.c (tools_new_magnify)
	* app/measure.c (tools_new_measure_tool)
	* app/move.c (tools_new_move_tool)
	* app/path_tool.c (tools_new_path_tool)
	* app/posterize.c (tools_new_posterize)
	* app/rect_select.c (tools_new_rect_select)
	* app/resize.c (resize_widget_new)
	* app/threshold.c (tools_new_threshold)
	* app/transform_core.c (transform_core_new)
	* app/xinput_airbrush.c (tools_new_xinput_airbrush): likewise (it
	can only help and it really isn't slow.)

	* app/color_area.c: #include <string.h> for memcpy declaration

	* app/gimphelp.c: #include <string.h> for strlen declaration
2000-06-23 00:14:07 +00:00
Manish Singh e79d0af89d tools/pdbgen/lib.pl libgimp/gimpchannel_pdb.c libgimp/gimpcolor_pdb.[ch]
* tools/pdbgen/lib.pl
* libgimp/gimpchannel_pdb.c
* libgimp/gimpcolor_pdb.[ch]
* libgimp/gimpdrawable_pdb.[ch]
* libgimp/gimpgimprc_pdb.[ch]
* libgimp/gimpgradientselect_pdb.c
* libgimp/gimpimage_pdb.c
* libgimp/gimppaths_pdb.[ch]
* libgimp/gimpselection_pdb.[ch]
* libgimp/gimptexttool_pdb.c
* libgimp/gimptools_pdb.c: landed the genned files from the changes
below. Minimal code changes (some failure case return values changed,
hopefully this won't break anything)

-Yosh
2000-06-22 20:06:02 +00:00
Simon Budig 9e9233afc5 Layers can be renamed by pressing return in the entry-widget now.
2000-06-19  Simon Budig  <simon@gimp.org>

        * app/layers_dialog.c: Layers can be renamed by pressing
          return in the entry-widget now.

	First CVS-commit with my own account  :-)
2000-06-19 00:26:27 +00:00
Sven Neumann 37d2c07ffa applied gimp-cornwell-000613-0 which brings the list of authors upto date
2000-06-18  Sven Neumann  <sven@gimp.org>

	* AUTHORS: applied gimp-cornwell-000613-0 which brings the
	list of authors upto date including all translators and
	plug-in authors. Please check that you are listed if you have
	contributed!

	* gimp.1.in
	* app/about_dialog.c: synced the authors lists

	* INSTALL: we need gtk+-1.2.8 or newer
2000-06-18 20:32:45 +00:00
Marc Lehmann 2220f9b648 *** empty log message *** 2000-06-17 17:37:36 +00:00
BST 2000 Andy Thomas 7434c9bc8b app/edit_selection.c
Fri Jun 16 23:47:00 BST 2000 Andy Thomas <alt@gimp.org>

	* app/edit_selection.c

	A better fix for the problem with the selection outline.
	It should now cope with offsets in the image as well as
	scaling the image while moving the selection.

	These problems occurred both when moving the selection as a layer
	and just moving the selection outline.
2000-06-16 22:48:10 +00:00
Michael Natterer 7890b7ace9 Makefile.am cursors/gimp-tool-cursors.xcf cursors/perspective_small.xbm
2000-06-16  Michael Natterer  <mitch@gimp.org>

	* Makefile.am
	* cursors/gimp-tool-cursors.xcf
	* cursors/perspective_small.xbm
	* cursors/perspective_small_mask.xbm
	* cursors/rotate_small.xbm
	* cursors/rotate_small_mask.xbm
	* cursors/shear_small.xbm
	* cursors/shear_small_mask.xbm: new cursors.

	* app/tools.c
	* app/transform_core.c: use them.
2000-06-16 11:38:45 +00:00
Sven Neumann 858715f64d Dodge/Burn seems to handle animated brushes quite well, so set
2000-06-16  Sven Neumann  <sven@gimp.org>

        * app/dodgeburn.c (tools_new_dodgeburn): Dodge/Burn
        seems to handle animated brushes quite well, so set
        TOOL_CAN_HANDLE_CHANGING_BRUSH.
2000-06-16 01:45:08 +00:00
Michael Natterer 35e55cf16d app/convolve.c app/dodgeburn.c app/eraser.c app/paint_core.c fixed my tool
2000-06-14  Michael Natterer  <mitch@gimp.org>

	* app/convolve.c
	* app/dodgeburn.c
	* app/eraser.c
	* app/paint_core.c
	* app/tools.[ch]: fixed my tool toggle braino: the paint_core
	cannot decide which cursor to show from the state of the modifier
	keys.

	Added a boolean "toggled" variable to the Tool structure,
	set it in the toggleable paint tools and evaluate it in the
	paint_core.
2000-06-14 14:22:47 +00:00
Michael Natterer 1a2cfc0ff8 Makefile.am cursors/gimp-tool-cursors.xcf cursors/anchor.xbm new cursor
2000-06-14  Michael Natterer  <mitch@gimp.org>

	* Makefile.am
	* cursors/gimp-tool-cursors.xcf
	* cursors/anchor.xbm
	* cursors/anchor_mask.xbm: new cursor modifier for the move tool.

	* app/cursorutil.[ch]
	* app/move.c: use the new modifier for anchoring floating selections.
2000-06-14 13:57:17 +00:00
Michael Natterer b8ee0c8c82 Makefile.am app/cursorutil.[ch] app/tools.c added lots of new cursors and
2000-06-14  Michael Natterer  <mitch@gimp.org>

	* Makefile.am
	* app/cursorutil.[ch]
	* app/tools.c
	* cursors/*: added lots of new cursors and removed old ones.

	* app/gdisplay.[ch]: enabled the cursor setting parameters in
	gdisplay_install_tool_cursor().

	* app/bezier_select.c
	* app/blend.c
	* app/bucket_fill.c
	* app/by_color_select.c
	* app/clone.c
	* app/color_picker.c
	* app/crop.c
	* app/disp_callbacks.c
	* app/edit_selection.c
	* app/eraser.c
	* app/flip_tool.c
	* app/ink.c
	* app/iscissors.c
	* app/magnify.c
	* app/measure.c
	* app/move.c
	* app/paint_core.c
	* app/rect_select.c
	* app/text_tool.c
	* app/transform_core.c: use the new cursors. Only the transform
	tools are still using old cursors.

	* app/layers_dialog.c: a tooltip for "Keep Trans."

	* app/user_install.c: set the ctree's selection mode to BROWSE.
2000-06-14 10:59:16 +00:00
Michael Natterer db76b885a2 another cursor fix.
2000-06-15  Michael Natterer  <mitch@gimp.org>

	* app/crop.c (crop_cursor_update): another cursor fix.
2000-06-14 10:59:13 +00:00
Michael Natterer af1bd5e367 Makefile.am app/cursorutil.[ch] app/tools.c added lots of new cursors and
2000-06-14  Michael Natterer  <mitch@gimp.org>

	* Makefile.am
	* app/cursorutil.[ch]
	* app/tools.c
	* cursors/*: added lots of new cursors and removed old ones.

	* app/gdisplay.[ch]: enabled the cursor setting parameters in
	gdisplay_install_tool_cursor().

	* app/bezier_select.c
	* app/blend.c
	* app/bucket_fill.c
	* app/by_color_select.c
	* app/clone.c
	* app/color_picker.c
	* app/crop.c
	* app/disp_callbacks.c
	* app/edit_selection.c
	* app/eraser.c
	* app/flip_tool.c
	* app/ink.c
	* app/iscissors.c
	* app/magnify.c
	* app/measure.c
	* app/move.c
	* app/paint_core.c
	* app/rect_select.c
	* app/text_tool.c
	* app/transform_core.c: use the new cursors. Only the transform
	tools are still using old cursors.

	* app/layers_dialog.c: a tooltip for "Keep Trans."

	* app/user_install.c: set the ctree's selection mode to BROWSE.
2000-06-14 10:59:13 +00:00
BST 2000 Andy Thomas be17b30bce app/edit_selection.c
Tue Jun 13 22:38:22 BST 2000 Andy Thomas <alt@gimp.org>

	* app/edit_selection.c

	Fixed problem with selection outline. The outline drawing did not
	take acount of the display offset so that if you moved a selection
	to the edge of an image that cause the image to scroll in the viewing
	window the section outline was drawn incorrectly.
2000-06-13 21:44:48 +00:00
Jay Cox c485463ea4 #include plug_in.h
2000-06-13  Jay Cox  <jaycox@gimp.org>

	* tools/pdbgen/pdb/help.pdb, app/help_cmds.c:
 	#include plug_in.h
2000-06-13 18:11:52 +00:00
Jay Cox 49424610cd These files should have been commited in my 2000-05-08 commit but somehow
2000-06-13  Jay Cox  <jaycox@gimp.org>

        These files should have been commited in my 2000-05-08 commit
	but somehow they didnt make it.

	* app/hue_saturation.c
	* app/levels.c
	* app/posterize.c
	* app/threshold.c: Add a call to image_map_clear in the
	preview toggle button callback.  This makes the preview toggle
	button behave as expected.

	* app/histogram_tool: remove an unnecessary include.
2000-06-13 09:13:16 +00:00
Michael Natterer 6fddfc295f app/gdisplay.[ch] oops, my last commit caused a segfault.
2000-06-09  Michael Natterer  <mitch@gimp.org>

	* app/gdisplay.[ch]
	* app/scroll.c: oops, my last commit caused a segfault.
2000-06-09 13:36:33 +00:00
Michael Natterer d0a551bbf8 Cursor patch II: This is only the logic inside the cursor system and not
2000-06-09  Michael Natterer  <mitch@gimp.org>

	Cursor patch II:
	This is only the logic inside the cursor system and not yet used.

	* app/cursorutil.[ch]: [gimp]_change_win_cursor() take lots of
	parameters now and compose cursors from up to three cursor
	bitmaps/masks.

	* app/gdisplay.[ch]: As a test, create a hardcoded example cursor
	if "Cursor Mode" is set to "Tool Icon with Crosshair" in prefs.

	* app/curves.c
	* app/dialog_handler.c
	* app/scroll.c: changed the calls to the win_cursor function.

	* app/tools.[ch]: added a cursor and a toggle cursor to the ToolInfo
	structure of all tools.

	* app/toolsF.h: new ToolType TOOL_TYPE_NONE.

	* app/gimpdnd.c
	* app/interface.c: check for silly filenames in the file dnd
	callback. Closes #13733.

	* Makefile.am
	* cursors/bucket_fill_small.xbm
	* cursors/bucket_fill_small_mask.xbm
	* cursors/crop_small.xbm
	* cursors/crop_small_mask.xbm
	* cursors/crosshair_small.xbm
	* cursors/crosshair_small_mask.xbm
	* cursors/ellipse_select_small.xbm
	* cursors/ellipse_select_small_mask.xbm
	* cursors/eraser_small.xbm
	* cursors/eraser_small_mask.xbm
	* cursors/free_select_small.xbm
	* cursors/free_select_small_mask.xbm
	* cursors/fuzzy_select_small.xbm
	* cursors/fuzzy_select_small_mask.xbm
	* cursors/intersect.xbm
	* cursors/intersect_mask.xbm
	* cursors/minus.xbm
	* cursors/minus_mask.xbm
	* cursors/move.xbm
	* cursors/move_mask.xbm
	* cursors/paintbrush_small.xbm
	* cursors/paintbrush_small_mask.xbm
	* cursors/pencil_small.xbm
	* cursors/pencil_small_mask.xbm
	* cursors/plus.xbm
	* cursors/plus_mask.xbm
	* cursors/rect_select_small.xbm
	* cursors/rect_select_small_mask.xbm
	* cursors/resize_small.xbm
	* cursors/resize_small_mask.xbm
	* cursors/zoom.xbm
	* cursors/zoom_mask.xbm
	* cursors/zoom_small.xbm
	* cursors/zoom_small_mask.xbm: new files extracted from Tigert's
	gimp-tool-cursors.xcf created at GimpCon.

	Tigert, I'll commit the xcf as soon as I've added empty layers
	with the names of the cursors that are missing.

	* cursors/mouse.xbm
	* cursors/mouse_mask.xbm: made it 32x32 to allow for cursor
	composition.
2000-06-09 12:31:19 +00:00
Sven Neumann 8630a62302 as suggested by Daniel Egger, set TOOL_CAN_HANDLE_CHANGING_BRUSH for the
2000-06-08  Sven Neumann  <sven@gimp.org>

	* app/eraser.c: as suggested by Daniel Egger, set
	TOOL_CAN_HANDLE_CHANGING_BRUSH for the eraser tool.
	Fixes bug #13172.
2000-06-07 23:13:39 +00:00
Sven Neumann fd4355bc89 call undo_push_qmask() before removing the channel since the callback will
2000-06-08  Sven Neumann  <sven@gimp.org>

        * app/qmask.c: call undo_push_qmask() before removing the
        channel since the callback will set the qmask_state
        incorrectly otherwise. Fixes bug #13472.

        * app/undo.[ch]: code cleanup

        * plug-ins/common/gif.c: put save_comment into the values
        that are stored between calls to the GIF plug-in, so it
        remembers if the user wants to save the comment. Fixes
        bug #12755.
2000-06-07 22:51:23 +00:00
Manish Singh 0157738431 [patches from Daniel Egger]
* app/layers_dialog.c: Disable the "Add Layermask" menuentry
for indexed images.

* app/gimpimage.c: Leave gimp_image_add_layer_mask(...) after
spitting out messages when trying to add a layermask to an
indexed image.

-Yosh
2000-06-07 19:10:06 +00:00
Sven Neumann acd29877f5 applied patch provided by Daniel Egger: store the result of tile_bpp()
2000-06-07  Sven Neumann  <sven@gimp.org>

        * app/pixel_region.c: applied patch provided by Daniel Egger:
        store the result of tile_bpp() into a variable and use it
        instead of calling it over and over again in the inner loop.

        * app/pixel_region.h
        * app/pixel_regionP.h:
        Did some additional indentation and code cleanup.
2000-06-07 18:43:22 +00:00
Sven Neumann 20c5ff1ff8 sorry, there's no build directory
2000-06-07  Sven Neumann  <sven@gimp.org>

        * Makefile.am: sorry, there's no build directory

        * app/plug_in.c (plug_in_temp_run): uncommented the call to
        plug_in_pop(). This seems to solve the longstanding problem
        that made temporary procedures like Script-Fu fail when
        called from plug-ins.
2000-06-07 11:58:45 +00:00
Tor Lillqvist e9ada4544e Add the build subdirectory (which contains a copy of the build module).
2000-06-07  Tor Lillqvist  <tml@iki.fi>

* Makefile.am: Add the build subdirectory (which contains a copy
of the build module).

* app/makefile.cygwin
* libgimp/makefile.cygwin
* modules/makefile.cygwin
* plug-ins/makefile.cygwin: Include make.mingw from build/win32,
simplify accordingly.
2000-06-06 22:24:53 +00:00
Tor Lillqvist 0285191fda Test for help_path being non-NULL was wrong way.
2000-06-07  Tor Lillqvist  <tml@iki.fi>

* app/gimphelp.c (gimp_help_netscape): Test for help_path being
non-NULL was wrong way.

* app/preferences_dialog.c (file_pref_cmd_callback): Change
"From X Server" to "From windowing system".

* app/makefile.cygwin: Update according to file name changes.

* libgimp/gimp.def
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}: Update for Mitch's and Sven's
changes.

* plug-ins/libgck/gck/gckcolor.c: Include <glib.h> before
gimpmath.h, so G_PI don't get redefined when glib.h is included
later.

From Hans Breuer, portability fixes for MSVC compilation:

* app/dialog_handler.h: Bypass decalration of exported functions
which are marked with G_MODULE_EXPORT in dialog_handler.c when
compiling that file. Otherwise some compilers will get confused.

* app/dialog_handler.c: Define a test macro for above bypass.

* plug-ins/MapObject/mapobject_apply.c
* plug-ins/MapObject/mapobject_image.c
* plug-ins/MapObject/mapobject_shade.c: Include <string.h>.

* plug-ins/flame/flame.c: Define S_ISREG if needed.

* plug-ins/makefile.{cygwin,msc}: Updates.

* plug-ins/sel2path/global.h: Include <stdlib.h>.

* plug-ins/winsnap/winsnap.c: Include libgimp/gimpui.h.
2000-06-06 21:33:19 +00:00
Michael Natterer 5d43ca6c21 Makefile.am cursors/crosshair.xbm new files.
2000-06-06  Michael Natterer  <mitch@gimp.org>

	* Makefile.am
	* cursors/crosshair.xbm
	* cursors/crosshair_mask.xbm: new files.

	* app/cursorutil.[ch]
	* app/gdisplay.[ch]
	* app/gimprc.[ch]
	* app/preferences_dialog.c: Started to add the new set of
	consistent tool cursors. The crosshair one is the easy part
	but I wanted to see a result :) The other two options in
	the pref's cursor menu are still dummys.
2000-06-06 00:28:28 +00:00
Sven Neumann a43f448b9d indentation, no real changes
2000-06-05  Sven Neumann  <sven@gimp.org>

        * app/paint_core.[ch]: indentation, no real changes

        * plug-ins/gap/README
        * plug-ins/gap/gap_mov_dialog.c
        * plug-ins/gap/gap_mov_exec.c: applied a patch from Wolfgang
        Hofer

        * plug-ins/imagemap/imap_csim.y: applied a patch from
        Maurits Rijk which promises to fix bug #10090.
        Yosh, could you regenerate the C code, please...?!

        * tips/gimp_tips.txt: applied gimp-quinet-20000508-0.patch,
        an update to the english tips file provided by Raphael Quinet.
2000-06-05 22:08:45 +00:00
CET Austin Donnelly ea4cab606d run the sel2path plugin with a proper display ID - previously we were
Sun Jun  4 20:17:25 2000 CET  Austin Donnelly  <austin@gimp.org>

	* app/paths_dialog.c: run the sel2path plugin with a proper
	    display ID - previously we were using a _drawable_ ID as the
	    display ID: a blatant type mismatch.

	* plug-ins/sel2path/pxl-outline.c: progress bar on
	    selection-to-path.  Also, small optimization to inner loop:
	    cache the max values of the loops rather than needing a
	    function call per loop iteration (ouch!).
2000-06-04 18:33:01 +00:00
Manish Singh 05862300c7 Happy easter II 2000-06-04 16:14:00 +00:00
Sven Neumann 9e660df93c connect to the toolbox's "style_set" signal and set window manager hints
2000-06-04  Sven Neumann  <sven@gimp.org>

        * app/interface.c: connect to the toolbox's "style_set" signal
        and set window manager hints in the callback.

another checkin using Yosh's lovely notebook...
2000-06-04 15:09:16 +00:00
Manish Singh f764c56d03 Be smarter about emitting the "invalidate_preview" signal.
comitted using Yosh's account...


--Sven
2000-06-03 18:19:22 +00:00
Michael Natterer db71b6e0e1 Sven Neumann <sven@gimp.org> Simon Budig <Simon.Budig@unix-ag.org> Garry
2000-06-01  Michael Natterer  <mitch@gimp.org>
	    Sven Neumann  <sven@gimp.org>
	    Simon Budig  <Simon.Budig@unix-ag.org>
	    Garry R. Osgood  <gosgood@idt.net>
	    Seth Burgess <sjburges@gimp.org>
	    Tuomas Kuosmanen <tigert@gimp.org>
	    Tor Lillqvist <tml@iki.fi>
	    Andy Thomas <alt@gimp.org>
	    Andreas Bogk <andreas@andreas.org>
	    Vincent Kolwitz <vincent@andreas.org>

	The remaining bits ...

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/groups.pl
	* tools/pdbgen/pdb/gradient.pdb  -> gradients.pdb

	* app/Makefile.am
	* app/gradient_cmds.c  -> gradients_cmds.c

	* libgimp/gimpbrushes_pdb.[ch]
	* libgimp/gimpfileops_pdb.[ch]
	* libgimp/gimpguides_pdb.[ch]
	* libgimp/gimphelp_pdb.[ch]
	* libgimp/gimpmessage_pdb.[ch]
	* libgimp/gimpparasite_pdb.[ch]
	* libgimp/gimppatterns_pdb.[ch]
	* libgimp/gimpplugin_pdb.[ch]: replaced with code based on
	files generated using pdbgen

	* libgimp/gimpbrushmenu.c
	* libgimp/gimppatternmenu.c:
	reflect changes in gimp[brushes|patterns]_pdb.[ch]

	* tools/pdbgen/pdb/gradient.pdb  -> gradients.pdb

	* tools/pdbgen/pdb/plug_in.pdb: made it create libgimp code
2000-06-01 21:18:04 +00:00
Michael Natterer 6be23f70fa Sven Neumann <sven@gimp.org>
2000-06-01  Michael Natterer  <mitch@gimp.org>
	    Sven Neumann  <sven@gimp.org>

	Completed the new file structure. Yet only few of the _pdb.[ch]
	files are based upon generated code and nothing is really
	autogenerated...

	* app/Makefile.am
	* app/gdisplay_cmds.c      -> app/display_cmds.c
	* app/gimage_cmds.c        -> app/image_cmds.c
	* app/gimage_mask_cmds.c   -> app/selection_cmds.c
	* app/internal_procs.c: related change

	* libgimp/Makefile.am
	* libgimp/gimp.h
	* libgimp/gimp_pdb.h
	* libgimp/gimpdisplay_pdb.[ch]
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimpselection_pdb.[ch]: replaced with code based on files
	generated using pdbgen

	* libgimp/gimpchannelops_pdb.[ch]
	* libgimp/gimpcolor_pdb.[ch]
	* libgimp/gimpedit_pdb.[ch]
	* libgimp/gimpfloatingsel_pdb.[ch]
	* libgimp/gimpgimprc_pdb.[ch]
	* libgimp/gimptexttool_pdb.[ch]
	* libgimp/gimptools_pdb.[ch]
	* libgimp/gimpundo_pdb.[ch]: new files based on generated code

	* libgimp/gimpgradientselect.[ch]
	* libgimp/gimpimage.[ch]
	* libgimp/gimpselection.[ch]: new files wrapping around the
	autogenerated PDB wrappers as found in *_pdb.[ch]. This is necessary
	since the number of parameters or their order is different from the
	PDP calls.

	* plug-ins/common/CEL.c: plugged memleak

	* plug-ins/common/aa.c: removed compiler warning

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/groups.pl
	* tools/pdbgen/pdb/gdisplay.pdb     -> display.pdb
	* tools/pdbgen/pdb/gimage.pdb       -> image.pdb
	* tools/pdbgen/pdb/gimage_mask.pdb  -> selection.pdb

	* tools/pdbgen/pdb/channel_ops.pdb
	* tools/pdbgen/pdb/color.pdb
	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/floating_sel.pdb
	* tools/pdbgen/pdb/gimprc.pdb
	* tools/pdbgen/pdb/text_tool.pdb
	* tools/pdbgen/pdb/tools.pdb
	* tools/pdbgen/pdb/undo.pdb: made them create libgimp code
2000-06-01 12:20:13 +00:00
Michael Natterer 21651c253a Sven Neumann <sven@gimp.org>
2000-05-31  Michael Natterer  <mitch@gimp.org>
	    Sven Neumann  <sven@gimp.org>

	Coming closer to our goal of autogenerating the
	libgimp PDB wrappers...

	* app/internal_procs.c
	* app/parasite_cmds.c
	* tools/pdbgen/pdb/parasite.pdb: removed parasite_new PDB call.

	* libgimp/gimp.h
	* libgimp/gimp_pdb.h
	* libgimp/gimpbrushmenu.c
	* libgimp/gimpcompat.h
	* libgimp/gimpdrawable_pdb.[ch]
	* libgimp/gimpexport.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimpmenu.[ch]
	* libgimp/gimpparasite.[ch]
	* libgimp/gimpparasite_pdb.[ch]
	* libgimp/gimppatternmenu.c
	* libgimp/gimpproceduraldb_pdb.[ch]: changes to incorporate the new
	files listed below

	* libgimp/Makefile.am
	* libgimp/gimpbrushes_pdb.[ch]
	* libgimp/gimpbrushselect_pdb.[ch]
	* libgimp/gimpconvert_pdb.[ch]
	* libgimp/gimpgradientselect_pdb.[ch]
	* libgimp/gimppatterns_pdb.[ch]
	* libgimp/gimppatternselect_pdb.[ch]: new files partly generated
	using pdbgen

	* tools/pdbgen/lib.pl: some adjustments and fixes to the libgimp
	pdbgen code

	* tools/pdbgen/pdb/help.pdb
	* tools/pdbgen/pdb/pattern_select.pdb: make them generate PDB
	wrappers for libgimp too.
2000-05-31 21:16:11 +00:00
Michael Natterer ba9ec2a2ff Sven Neumann <sven@gimp.org>
2000-05-31  Michael Natterer  <mitch@gimp.org>
	    Sven Neumann  <sven@gimp.org>

	Episode IV...

	* app/Makefile.am

	* app/message_cmds.c: new name
	* app/interface_cmds.c: removed

	* app/help_cmds.c: new name
	* app/gimphelp_cmds.c: removed

	* app/internal_procs.c
	* app/gimphelp_cmds.c
	* app/plug_in_cmds.c: moved gimp_plugin_help_register to
	plug_in_cmds.c, s/gimp_plugin_domain_add/gimp_plugin_domain_register/

	* libgimp/Makefile.am
	* libgimp/gimp_pdb.h
	* libgimp/gimpfileops_pdb.[ch]
	* libgimp/gimpguides_pdb.[ch]
	* libgimp/gimpmessage_pdb.[ch]
	* libgimp/gimpprocedural_db_pdb.[ch]
	* libgimp/gimpplugin_pdb.[ch]: new files containing PDB wrappers
	moved out of libgimp/gimp.[ch]

	* libgimp/gimpchannel_pdb.c
	* libgimp/gimpdisplay_pdb.[ch]
	* libgimp/gimpdrawable_pdb.[ch]
	* libgimp/gimphelp_pdb.[ch]
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimplayer_pdb.c
	* libgimp/gimpparasite_pdb.c
	* libgimp/gimpselection_pdb.c: various changes.

	* libgimp/gimpunit.c: new file
	* libgimp/gimpunit_pdb.[ch]: contains only PDB wrappers prefixed
	with "_" which are called from libgimp/gimpunit.c only.

	* libgimp/gimpunit.h: minor stuff

	* libgimp/gimpcompat.h: declared the following functions obsolete:
	 gimp_query_database
	 gimp_query_images

	* libgimp/gimp.[ch]: removed all PDB wrappers.

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/groups.pl: changed

	* tools/pdbgen/lib.pl: tried to fix libgimp autogeneration and
	fixed just a few comments.

	* tools/pdbgen/pdb/interface.pdb
	* tools/pdbgen/pdb/gimphelp.pdb: removed

	* tools/pdbgen/pdb/help.pdb
	* tools/pdbgen/pdb/message.pdb: new names

	* plug-ins/script-fu/script-fu.c
	* plug-ins/perl/Gimp/Lib.xs:
	s/gimp_plugin_domain_add/gimp_plugin_domain_register/

2000-05-31  Michael Natterer  <mitch@gimp.org>

	* POTFILES.in: s/gimpunit_pdb/gimpunit/
2000-05-31 13:24:14 +00:00
Michael Natterer 053af2f1c9 Sven Neumann <sven@gimp.org>
2000-05-31  Michael Natterer  <mitch@gimp.org>
	    Sven Neumann  <sven@gimp.org>

	* libgimp/Makefile.am
	* libgimp/gimpchannel_pdb.h
	* libgimp/gimpdisplay_pdb.h
	* libgimp/gimpdrawable_pdb.h
	* libgimp/gimpgradient_pdb.h
	* libgimp/gimphelp_pdb.h
	* libgimp/gimpimage_pdb.h
	* libgimp/gimplayer_pdb.h
	* libgimp/gimpparasite_pdb.h
	* libgimp/gimpselection_pdb.h
	* libgimp/gimpunit_pdb.h
	* libgimp/gimpdrawable.[ch]
	* libgimp/gimphelp.c
	* libgimp/gimppixelrgn.h
	* libgimp/gimptile.h: new files

	* libgimp/gimp.[ch]
	* libgimp/gimpchannel_pdb.c
	* libgimp/gimpdrawable_pdb.c
	* libgimp/gimpgradient_pdb.c
	* libgimp/gimppalette_pdb.c
	* libgimp/gimpselection_pdb.c
	* libgimp/gimphelp_pdb.c
	* libgimp/gimpimage_pdb.c
	* libgimp/gimplayer_pdb.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimpbrushmenu.c
	* libgimp/gimpmenu.[ch]
	* libgimp/gimppatternmenu.c
	* libgimp/gimppixelrgn.c
	* libgimp/gimptile.c: part III of the (final) libgimp cleanup

	Split gimp.h into a bunch of headers. More or less finished the
	task of moving PDB wrappers into separate files in preparation
	of the upcoming autogen-it-all-attack.

	* libgimp/gimpcompat.h: declared the following functions obsolete:
	gimp_[channel|layer]_[width|height]
	gimp_layer_[bpp|type]
	gimp_channel_get_[image|layer]_ID

	* libgimp/gimptypes.h: new file:
	GPlugInInfo
	GTile
	GDrawable
	GPixelRgn
	GParamColor
	GParamRegion
	GParamData
	GParamDef
	GParam: s/G/Gimp/

	* app/gimphelp_cmds.c
	* app/plug_in_cmds.c
	* tools/pdbgen/pdb/gimphelp.pdb
	* tools/pdbgen/pdb/plug_in.pdb: changed help texts.
2000-05-31 06:15:06 +00:00
Michael Natterer 804af727f6 app/gimpunit.c all libgimp headers are included via gimp.h or gimpui.h, so
2000-05-31  Michael Natterer  <mitch@gimp.org>

	* app/gimpunit.c
	* libgimp/*: all libgimp headers are included via gimp.h or
	gimpui.h, so include <gtk/gtk.h> there and in the *.c files.
	Various cleanups.
2000-05-30 23:38:46 +00:00
BST 2000 Andy Thomas a0363b362e app/about_dialog.c
Mon May 29 22:41:31 BST 2000 Andy Thomas <alt@gimp.org>

	* app/about_dialog.c

	Added C.Bunks.
2000-05-29 21:53:51 +00:00
Sven Neumann 9529e1e696 app/Makefile.am app/paint_core.c moved brush subsampling kernels into its
2000-05-29  Sven Neumann  <sven@gimp.org>

        * app/Makefile.am
        * app/paint_core.c
        * app/paint_core_kernels.h: moved brush subsampling kernels
        into its own header file and generated a slightly different
        kernel (using the new kernelgen tool, see below). The new
        kernel simulates a circular brush instead of a rectangular
        one and gives slightly different (lighter) results.

        * app/gimage_mask.c: when stroking a selection, offset the
        points by 0.5 to align the brushes with the pixel grid. This
        lets you create 1-pixel wide rectangles and ellipses.

        * tools/Makefile.am
        * tools/kernelgen.c: simple hack to generate subsampling
        kernels.
2000-05-29 08:40:29 +00:00
Tor Lillqvist 2090f17620 Update to match Unix version.
2000-05-29  Tor Lillqvist  <tml@iki.fi>

* gimprc.win32: Update to match Unix version.

* app/gimp.sym: Add dialog_{,un}register.

* app/dialog_handler.c: Include <gmodule.h>, mark above functions
with G_MODULE_EXPORT.

* app/makefile.{msc,cygwin}: Update to match current GLib 1.3.

* libgimp/gimp.def
* libgimp/gimpui.def: Update according to function name changes etc.

* libgimp/makefile.{msc,cygwin}: Update for changed file
names.

* libgimp/makefile.cygwin
* modules/makefile.cygwin: Simplify, use the
../build/win32/make.mingw file.

* plug-ins/common/gz.c (save_image): Somewhat more informative
error message on Win32 when gzip.exe isn't found (most probable
cause of error).

* tips/gimp_tips.txt: Clarify location of personal GIMP directory
on Unix and Windows.
2000-05-28 23:46:16 +00:00
Michael Natterer 2b775b6b8c libgimp/gimp.h libgimp/gimpcolordisplay.h libgimp/gimpcolorselector.h
2000-05-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimp.h
	* libgimp/gimpcolordisplay.h
	* libgimp/gimpcolorselector.h
	* libgimp/gimpmatrix.h
	* libgimp/gimpmodule.h
	* libgimp/gimpunit_pdb.c: purely cosmetic stuff and added some
	typedefs to make the html documentation nicer. Moved the module
	documentation from the headers to the sgml files.

	* app/module_db.[ch]: The type of the "init" and "unload" functions
	has changed. Code cleanup.

2000-05-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/libgimp-decl.txt
	* libgimp/libgimp-docs.sgml
	* libgimp/libgimp-sections.txt
	* libgimp/tmpl/gimp.sgml
	* libgimp/tmpl/gimpcolorbutton.sgml
	* libgimp/tmpl/gimpcolordisplay.sgml
	* libgimp/tmpl/gimpcolorselector.sgml
	* libgimp/tmpl/gimpcolorspace.sgml
	* libgimp/tmpl/gimpcompat.sgml
	* libgimp/tmpl/gimpenums.sgml
	* libgimp/tmpl/gimpfeatures.sgml
	* libgimp/tmpl/gimplimits.sgml
	* libgimp/tmpl/gimpmath.sgml
	* libgimp/tmpl/gimpmodule.sgml
	* libgimp/tmpl/gimpparasite.sgml
	* libgimp/tmpl/gimpparasiteio.sgml
	* libgimp/tmpl/gimppixmap.sgml
	* libgimp/tmpl/gimpprotocol.sgml
	* libgimp/tmpl/gimpsignal.sgml
	* libgimp/tmpl/gimpui.sgml
	* libgimp/tmpl/gimpunit.sgml
	* libgimp/tmpl/gimputils.sgml
	* libgimp/tmpl/gimpvector.sgml
	* libgimp/tmpl/gimpwire.sgml
	* libgimp/tmpl/libgimp-unused.sgml: Moved the module documentation
	from the libgimp headers here, updates, cleanups.
2000-05-28 00:00:28 +00:00
Sven Neumann 301ca8e381 use spinbuttons in the GIMP colorselector
--Sven
2000-05-27 13:53:49 +00:00
People doing a 16 bpc version of gimp b09291f06d Sat May 27 04:27:36 EDT 2000 calvinw@mindspring.com
* app/gimpimage.c
	--Fixed Fujita Yuji's bug (reported 27May2000 to
	gimp-developer) -larger than 64x64 brush and
	selection mask crashes smudge/dodgeburn/convolve
	This was a rowstrides bug in gimp_image_replace_image.
2000-05-27 08:48:50 +00:00
Michael Natterer 6fa33d6855 Libgimp cleanup part II (with a little help from Yosh who moved the CVS
2000-05-27  Michael Natterer  <mitch@gimp.org>

	Libgimp cleanup part II (with a little help from Yosh
	who moved the CVS files).

	* libgimp/Makefile.am
	* libgimp/gimpchannel_pdb.c
	* libgimp/gimpdisplay_pdb.c
	* libgimp/gimpdrawable_pdb.c
	* libgimp/gimpgradient_pdb.c
	* libgimp/gimphelp_pdb.c
	* libgimp/gimpimage_pdb.c
	* libgimp/gimplayer_pdb.c
	* libgimp/gimppalette_pdb.c
	* libgimp/gimpparasite_pdb.c
	* libgimp/gimpselection_pdb.c
	* libgimp/gimpunit_pdb.c: new names of all files which contain
	PDB wrappers.

	* modules/Makefile.am
	* libgimp/gimpcolordisplay.h
	* libgimp/gimpcolorselector.h
	* modules/gimpmodregister.[ch]: renamed.

	* libgimp/gimpparasiteF.h
	* libgimp/gimpparasiteP.h: removed because gimp.h had to include
	the private header anyway.

	* app/color_notebook.c
	* app/color_select.c
	* app/gdisplay_color.[ch]
	* app/gdisplay_color_ui.c
	* app/gimpbrushpipe.c
	* app/gimpdrawable.[ch]
	* app/gimpimage.c
	* app/gimpimage.h
	* app/gimpparasite.[ch]
	* app/gimprc.c
	* app/image_new.c
	* app/layer.c
	* app/parasite_cmds.c
	* app/parasitelist.[ch]
	* app/plug_in.c
	* app/procedural_db.c
	* app/undo.c
	* app/xcf.c
	* libgimp/gimp.[ch]
	* libgimp/gimpcolordisplay.h
	* libgimp/gimpparasite.[ch]
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* modules/colorsel_gtk.c
	* modules/colorsel_triangle.c
	* modules/colorsel_water.c
	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/FractalExplorer/Events.c
	* plug-ins/Lighting/lighting_apply.c
	* plug-ins/Lighting/lighting_shade.c
	* plug-ins/MapObject/mapobject_image.c
	* plug-ins/common/gpb.c
	* plug-ins/common/psp.c
	* plug-ins/sel2path/sel2path.c
	* po-libgimp/POTFILES.in
	* tools/pdbgen/pdb.pl
	* tools/pdbgen/pdb/parasite.pdb: changed includes accordingly.
2000-05-27 01:30:21 +00:00
Michael Natterer 863f7e1c44 Final (1.2) libgimp namespace cleanup part I:
2000-05-26  Michael Natterer  <mitch@gimp.org>

	Final (1.2) libgimp namespace cleanup part I:

	* app/gimpbrushpipe.c
	* app/gimpdrawable.[ch]
	* app/gimpimage.[ch]
	* app/gimpparasite.[ch]
	* app/gimprc.c
	* app/image_new.c
	* app/parasite_cmds.c
	* app/parasitelist.[ch]
	* app/parasitelistP.h
	* app/plug_in.c
	* app/undo.c
	* app/xcf.c
	* libgimp/color_display.h
	* libgimp/gimp.[ch]
	* libgimp/gimpdrawable.c
	* libgimp/gimpimage.c
	* libgimp/gimpparasite.c
	* libgimp/gimpprotocol.c
	* libgimp/parasite.[ch]
	* libgimp/parasiteF.h
	* libgimp/parasiteP.h
	* libgimp/parasiteio.[ch]
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* plug-ins/common/csource.c
	* plug-ins/common/gif.c
	* plug-ins/common/gpb.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/psp.c
	* plug-ins/common/tiff.c
	* plug-ins/common/xbm.c
	* plug-ins/gap/gap_exchange_image.c
	* plug-ins/gdyntext/gdyntext.c
	* plug-ins/ifscompose/ifscompose.c
	* plug-ins/xjt/xjt.c: s/Parasite/GimpParasite/g,
	                      s/parasite_*/gimp_parasite_*/g

	* libgimp/gimpcompat.h: added the old names.

	* tools/pdbgen/pdb.pl
	* tools/pdbgen/pdb/parasite.pdb: dito and an ugly perl hack to work
	around a substitution clash. Perl gurus, feel free to fix it.
2000-05-26 22:28:40 +00:00
Sven Neumann 7a8d504bdb update the color-selector when Return is pressed in the hex-entry.
2000-05-25  Sven Neumann  <sven@gimp.org>

        * app/color_select.c: update the color-selector when Return
        is pressed in the hex-entry.
2000-05-25 07:50:44 +00:00
Sven Neumann 95500f2d40 moved Magnify into the Transformation tools category. This is not entirely
2000-05-22  Sven Neumann  <sven@gimp.org>

* app/tools.c: moved Magnify into the Transformation tools
category. This is not entirely correct, but at least the
tools are now grouped as they appear in the toolbox.

* plug-ins/common/flarefx.c: applied modified version of
gimp-timecop-200005-4.flarefx which adds a scaled down
flarefx to tthe preview.


--Sven
2000-05-22 17:39:15 +00:00
Michael Natterer 9c6b0b0c33 These changes enable help support for 3rd party plug-ins which install
2000-05-21  Michael Natterer  <mitch@gimp.org>

	These changes enable help support for 3rd party plug-ins which
	install their help files outside GIMP's main help dir.

	Instead of calling gimp_help(), gimp_plugin_help_func() etc.,
	all help callbacks now have to call gimp_standard_help_func()
	which has different implementations in the app and in libgimp.

	There is a new function gimp_plugin_help_register() which can
	be called during plug-in query. plug_in.c keeps a list of
	executable_name/help_path pairs. Plug-ins have to pass their
	exec. name to gimp_help() which uses the list to find the plug-in's
	help directory.

	* app/gimphelp.[ch]: gimp_help() now takes a help_path parameter.
	help_path == NULL means the standard help directory. Various
	changes to pass the help_path to the help browser.

	* app/gimprc.c: save the plug-in's help_path in the pluginrc file.

	* app/menus.c: ugly hack to enable help_paths in the "F1" callback.

	* app/plug_in.[ch]: many help_path related changes. Use g_basename()
	instead of strrchr(str,G_DIR_SEPARATOR), cosmetic cleanups.

	* app/internal_procs.c
	* app/gimphelp_cmds.c
	* tools/pdbgen/pdb/gimphelp.pdb: new procedure
	gimp_plugin_help_register(). gimp_help() takes a second parameter
	which is the executable name (not the help_path).

	* app/color_notebook.c
	* app/commands.c
	* app/lc_dialog.c
	* app/preferences_dialog.c
	* app/tools.c: call gimp_standard_help_func() instead of gimp_help().

	* libgimp/gimp.c: new function gimp_get_progname() which returns
	the full path of the plug-in's executable.

	* libgimp/gimp.h: export the new function,
	removed gimp_plugin_help_func(), gimp_help() takes the executable
	name as second parameter.

	* libgimp/gimpcompat.h: added gimp_plugin_help_func().

	* libgimp/gimphelp.c: a wrapper for gimp_plugin_help_register(),
	changed the calls to gimp_help.

	* libgimp/gimphelpui.[ch]: call gimp_standard_help_func() instead
	of gimp_help().

	* plug-ins/helpbrowser/helpbrowser.c: now called with an additional
	help_path parameter. Various changes to enable
	help_path != gimp_standard_help_path.

	Unrelated stuff:

	* app/batch.h: added missing GPL header.

	* app/gimpunit.c: had a LGPL header, merged some fprintf's into
	one call.

	* app/procedural_db.[ch]: cosmetic: g* types, s/g_malloc/g_new/,
	prototypes, indentation.

	* app/resize.c: use less packing widgets. didn't find the "offset"
	redraw bug :(
2000-05-21 17:41:02 +00:00
Garry R. Osgood 89c8637d3b *app/docindex.c Used feof(fp) as a hardware independent indicator,
2000-05-20  Garry R. Osgood <gosgood@idt.net>
*app/docindex.c
Used feof(fp) as a hardware independent indicator, replacing
constructs comparing EOF (-1) to integers that once were unsigned
characters. Puts an end to infinite looping at line 239 giving rise to
#11578. See bug report; closes 11578.
2000-05-21 09:30:59 +00:00
Sven Neumann e882c30e44 added links to Carey Bunks's "Gimp-Savvy" and "Grokking the GIMP"
2000-05-20  Sven Neumann  <sven@gimp.org>

* plug-ins/webbrowser/web-browser.scm: added links to
Carey Bunks's "Gimp-Savvy" and "Grokking the GIMP" resources.

* libgimp/gimpwidgets.[ch]: use unsigned integers for the
memsize_entry. Added gimp_uint_adjustment_update().

* gimprc.[ch]
* preferences_dialog.c: use unsigned integers for memsizes
(tile_cache_size and max_new_image_size). Allows to set those
values up to 4GB. Fixes bug #11053.
2000-05-20 18:39:02 +00:00
Sven Neumann 03b2e9d08a when transforming a selection in an indexed image, we used to create an
2000-05-20  Sven Neumann  <sven@gimp.org>

* app/transform_core.c (transform_core_cut): when transforming
a selection in an indexed image, we used to create an indexed
tile_buffer. This gives strange (black) results later when we
use layer_new_from_tiles() since that function assumes that a
TileManager is always RGB or GRAY. Eeek!!

Instead of fixing it correctly by changing the TileManager
struct, I've unset the keep_indexed flag when calling
gimage_mask_extract(), so whatever layer_new_from_tiles()
assumes becomes true. Fixes bug #10762.


--Sven
2000-05-20 10:49:03 +00:00
Asbjørn Pettersen 3814d33855 add OS2 functions 2000-05-17 15:19:39 +00:00
Sven Neumann 6fea6b332a rewrote the "Help/Dump Items" function. Now it outputs the
accelerator keys too. Unfortunately this does only work
with LANG=C yet.


--Sven
2000-05-17 14:43:18 +00:00
Michael Natterer 0cca79f817 be a bit more verbose in the "Plug-In crashed" message: Warn the user that
2000-05-17  Michael Natterer  <mitch@gimp.org>

	* app/plug_in.c: be a bit more verbose in the "Plug-In crashed"
	message: Warn the user that Gimp's internal state may be messed
	up and that the safe way is to restart Gimp.
	Unified all plug-in error messages.

	* libgimp/gimp.c: also changed to messages that the Gimp is using
	a newer/older wire protocol than the plug-in.
2000-05-17 12:29:38 +00:00
Sven Neumann c93eab8370 corrected the usage of the "invalidate_preview" signal.
Now simpler and more robust. Should fix bug #11248.


--Sven
2000-05-17 10:59:50 +00:00
Michael Natterer 07b3a04f27 app/commands.c app/layers_dialog.c set the scale/resize dialog insensitive
2000-05-16  Michael Natterer  <mitch@gimp.org>

	* app/commands.c
	* app/layers_dialog.c
	* app/resize.c: set the scale/resize dialog insensitive before
	scaling/resizing to keep users from pressing "OK" again.
	Fixes #10656.
2000-05-16 17:25:14 +00:00
Tor Lillqvist bc1db67d83 libgimp/gimpenv.c (gimp_path_parse) Don't try to handle tilde (~) at all
2000-05-16  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimpenv.c (gimp_path_parse)
* app/gimprc.c (transform_path): Don't try to handle tilde (~) at
all on Windows. The tilde is used when mangling long file names
into 8.3 form, and some people have a HOME environment variable
that contains this kind of 8.3 path with a tilde. This causes
interesting effects if we expand a tilde in some gimprc variable
with $HOME, which contains a tilde, which we expand with $HOME,
etc.
2000-05-15 22:47:36 +00:00
Sven Neumann b101e7bc85 enabled the (commented out) signal "invalidate_preview".
2000-05-12  Sven Neumann  <sven@gimp.org>

* gimpdrawable.c: enabled the (commented out) signal
  "invalidate_preview".

* app/layers_dialog.c: connect to the "invalidate_preview"
  signal to catch changes that need to be shown in the layer
  previews. Synthetize an expose event when a layer changes.

  Expose events are optimzed away by GTK+ if the widget is not
  visible. Therefore, previews not visible in the layers_dialog
  are not redrawn when they invalidate. Later the preview gets
  validated by the image_preview in lc_dialog but is never
  propagated to the layer_pixmap. We work around this by using an
  additional flag "layer_pixmap_valid" so that the pixmap gets
  updated once the preview scrolls into sight.

  Fixes bugs #10549, #10300 and #8787.

* app/channel.[ch]
* app/layer.[ch]: code review and indentation


--Sven
2000-05-12 17:07:54 +00:00
jaycox e2b3381917 Copy the name, tatto and parasites of the bottom layer to the new merged
* app/gimpimage.c: Copy the name, tatto and parasites of the
	bottom layer to the new merged layer in gimp_image_merge_layers.
2000-05-12 01:14:21 +00:00
Sven Neumann d42269996a unified messages in fileops.c and updated german translation
--Sven
2000-05-11 17:03:52 +00:00
Michael Natterer 86e4b1ef65 Another try to get the signal/dead child recovery stuff right.
2000-05-10  Michael Natterer  <mitch@gimp.org>

	Another try to get the signal/dead child recovery stuff right.

	Could the brave signal crew (TM) (Austin, Garry, Raphael, Tim)
	please do bad tests to the new code? I removed all strange
	constants (SA_NODEFER etc.) and used only glib and POSIX stuff.

	* app/main.c
	* libgimp/gimp.c:
	- Call gimp_signal_private() with no flags to enforce a proper
	  sigaction() behaviour (block signals while handler is active).
	- Removed the reentrancy guards from the handlers.
	- Renamed the handlers.
	- Ignore SIGPIPE in the app and in plugins.
	- Re-introduced the SIGCHLD handler because it should work
	  now. Also added a SIGCHLD handler to libgimp/gimp.c.

	* app/errors.c
	* libgimp/gimp.c: in the signal handler, unblock all signals
	with sigprocmask() before calling g_on_error_query() because
	gdb otherwise inherits the blocked signals and does nothing.
	Wrapped the statements with "if (TRUE) { }" blocks so it's
	easy to make the stack trace a command line option.

	* app/plug_in.c
	* libgimp/gimp.c: listen for G_IO_ERR and G_IO_HUP on the read
	channels. In the app, pop up an error message and clean up the
	plugin. In plugins, clean up and exit.

	* libgimp/gimpwire.c: removed the "plug-in chrashed?" message
	and print the program's name with all error messages.

	* plug-ins/helpbrowser/helpbrowser.c: typo.
2000-05-10 21:21:23 +00:00
Tor Lillqvist aec3c5a51a Clarifications.
2000-05-10  Tor Lillqvist  <tml@iki.fi>

* README.win32: Clarifications.

* app/makefile.{cygwin,msc}: Remove docindexif.

* app/gimprc.c (save_gimprc_strings): Pass strings through
gimp_strescape().

* libgimp/gimpui.def: Add gimp_toggle_button_sensitive_update.

* plug-ins/makefile.{cygwin,msc}: Add some new unofficial
plug-ins. Remove bmpos2 object.
2000-05-10 19:39:03 +00:00
Marc Lehmann a39fd6d69f *** empty log message *** 2000-05-10 03:02:55 +00:00
jaycox af0c94abf6 new function image_map_clear that removes the preview without freeing the
* app/image_map.[ch]: new function image_map_clear that removes
	the preview without freeing the image_map.

	* app/brightness_contrast.c
	* app/color_balance.c
	* app/curves.c
	* app/hue_saturation.c
	* app/levels.c
	* app/posterize.c
	* app/threshold.c: Add a call to image_map_clear in the
	preview toggle button callback.  This makes the preview toggle
	button behave as expected.

	* app/histogram_tool: remove an unnecessary include.
2000-05-09 05:43:29 +00:00
Michael Natterer e475183f05 oops, forgot a debugging g_print().
2000-05-08  Michael Natterer  <mitch@gimp.org>

	* app/errors.c (gimp_fatal_error): oops, forgot a debugging
	g_print().

	* app/gdisplay.c (gdisplay_set_menu_sensitivity): there _can_ be
	an active drawable even if there is no layer. Also reordered
	the rest if the checks.
2000-05-08 21:20:53 +00:00
Michael Natterer 5948e2ab51 app/fileops.c return silently from save/save_as and grey out the menu
2000-05-08  Michael Natterer  <mitch@gimp.org>

	* app/fileops.c
	* app/gdisplay.c: return silently from save/save_as and grey out
	the menu entries if there is no active drawable. Fixes #10239.
2000-05-08 00:40:10 +00:00
Michael Natterer f034d23e0e put the ops_buttons box into the action_area. Makes the dialog smaller.
2000-05-08  Michael Natterer  <mitch@gimp.org>

	* app/docindex.c (open_idea_window): put the ops_buttons box
	into the action_area. Makes the dialog smaller.
2000-05-07 23:42:23 +00:00
Sven Neumann dc5da262a3 in Image/Filters move all entries that are not submenus to the top of the
* app/menus.c: in Image/Filters move all entries that are not
  submenus to the top of the menu.

* app/plug_in.c: order all plugin menu-entries alphabetically
  (in the current locale) before sending them to menus.c.

* plug-ins/script-fu/script-fu-scripts.c: order all script-fu
  menu-entries alphabetically (in the current locale) before
  registering them.

* plug-ins/script-fu/script-fu.c: minor cleanups

* plug-ins/bmp/bmpread.c
* plug-ins/bmp/bmpwrite.c
* plug-ins/xjt/xjt.c: strings used with g_message do not need
  a trailing newline


--Sven
2000-05-07 22:04:51 +00:00
Michael Natterer 031e3dea86 app/app_procs.c named all public functions document_index_*(). Don't
2000-05-07  Michael Natterer  <mitch@gimp.org>

	* app/app_procs.c
	* app/docindex.[ch]: named all public functions document_index_*().
	Don't loop/segfault when opening an old "ideas" file but silently
	skip the first line.

	* app/fileops.[ch]: do some file access sanity checks before
	actually calling the load/save proc. Show the full file name
	in all error messages. Use a query_boolean_box for the overwrite
	warning. Made file_save() static.
	Also copied some Win32 #define's from libgimp/gimpenv.c for the
	file access stuff. Tor, could you have a look at them please?
2000-05-07 17:47:24 +00:00
Sven Neumann a907871937 gimprc.in gimprc.win32 set default image size back to 256x256, default to
* gimprc.in
* gimprc.win32
* app/gimprc.c: set default image size back to 256x256, default
to local paint options and info-window-follows-mouse.

* app/brightness_contrast.c
* app/docindex.c
* app/hue_saturation.c: picky changes on some labels.

* app/tips_dialog.c: applied (sort of) gimp-quinet-20000504-0,
which replaces the message "Show tip next time" in the
Tip Of The Day dialog with "Show tip next time GIMP starts".


--Sven
2000-05-07 10:06:27 +00:00
Michael Natterer b3b571117f no need to reorder <Image>/Script-Fu twice.
2000-05-06  Michael Natterer  <mitch@gimp.org>

	* app/menus.c (menus_reorder_plugins): no need to reorder
	<Image>/Script-Fu twice.

	* app/docindex.c: replaced the toolbar by an ops_buttons box.
	Also default to opening the file instead of rising an already
	open display.
2000-05-06 19:25:53 +00:00
Michael Natterer dfbbe8a925 new public function gimp_dnd_file_dest_set(). Moved the file/url dnd stuff
2000-05-06  Michael Natterer  <mitch@gimp.org>

	* app/gimpdnd.[ch]: new public function gimp_dnd_file_dest_set().
	Moved the file/url dnd stuff from interface.c to gimpdnd.c.

	* app/docindex.c
	* app/interface.c: use the function from gimpdnd.
2000-05-06 17:03:44 +00:00
Michael Natterer 000090ee2f po/POTFILES.in app/Makefile.am removed because it was not doing core/ui
2000-05-06  Michael Natterer  <mitch@gimp.org>

	* po/POTFILES.in
	* app/Makefile.am
	* app/docindexif.[ch]: removed because it was not doing core/ui
	separation at all. UI functions were randomly scattered across
	both files.

	* app/app_procs.c
	* app/docindex.[ch]: swallow all functions from docindex.c,
	removed functions which were called just once, replaced the
	tree by a list. Actually raise displays of already open images.
	When opening a file which is already in the list, move it's entry
	to the top; this way the toolbox' last_opened list finally works
	as expected.
2000-05-06 16:35:21 +00:00
Michael Natterer 9bad5d7482 the "delete_event" callback should always do the same as the "Close"
2000-05-05  Michael Natterer  <mitch@gimp.org>

	* app/docindex.c: the "delete_event" callback should always do
	the same as the "Close" callback.
2000-05-05 15:21:56 +00:00
Michael Natterer c53bbcab1b Made the document index a bit more like the rest of the dialogs:
2000-05-05  Michael Natterer  <mitch@gimp.org>

	Made the document index a bit more like the rest of the dialogs:

	* app/commands.[ch]
	* app/menus.c: added a cmd_callback instead of calling a function
	in docindex.c directly.

	* app/gimprc.c
	* app/session.[ch]: added proper session management.

	* app/app_procs.c
	* app/docindex.[ch]
	* app/docindexif.[ch]: removed another bunch of useless variables
	and functions. Removed the status bar because it was not telling
	very useful stuff. Removed the window position/size from the
	"ideas" file.

	Note: you have to either remove your ~/.gimp-1.1/ideas file or
	remove it's first line or experience a nice endless loop :)
2000-05-05 14:53:38 +00:00
Michael Natterer 53238ebc28 app/docindex.[ch] call dialog_[un]register(). Fixes #10284. Also removed
2000-05-05  Michael Natterer  <mitch@gimp.org>

	* app/docindex.[ch]
	* app/docindexif.[ch]: call dialog_[un]register(). Fixes #10284.
	Also removed some useless stuff.

	* app/gdisplay_color_ui.c
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c: call dialog_[un]register().
2000-05-05 13:29:46 +00:00
Jay Cox 9f1ec1a13d try to minimize the overhead of multiprocessor support. This should fix
2000-05-05  Jay Cox  <jaycox@earthlink.net>

	* app/pixel_processor.c: try to minimize the overhead of
	multiprocessor support.  This should fix bug #9296
	but it has not been tested on a dual processor machine.
2000-05-05 01:15:39 +00:00
Michael Natterer 4517b8746d removed layers_dialog_idle_set_layer_focus() because Wolfgang pointed out
2000-05-03  Michael Natterer  <mitch@gimp.org>

	* app/layers_dialog.c: removed layers_dialog_idle_set_layer_focus()
	because Wolfgang pointed out that it caused bad segfaults. This
	fixes #10139 and #9844. OTOH this brings back the bug that the
	active layers is sometimes not the selected one in the layers
	dialog, grmpf.

	* plug-ins/script-fu/script-fu-scripts.c: small cleanups.

	* plug-ins/gap/README
	* plug-ins/gap/gap_exchange_image.c
	* plug-ins/gap/gap_lib.[ch]
	* plug-ins/gap/gap_main.c
	* plug-ins/gap/gap_mov_dialog.[ch]
	* plug-ins/gap/gap_mov_exec.[ch]
	* plug-ins/gap/gap_navigator_dialog.c: applied a patch from
	Wolfgang Hofer <hof@hotbot.com>.
2000-05-03 13:14:32 +00:00
Michael Natterer 268902c6b5 app/main.c as noticed by Garry, Tim, Raphael and probably many others, my
2000-05-02  Michael Natterer  <mitch@gimp.org>

	* app/main.c
	* libgimp/gimp.c: as noticed by Garry, Tim, Raphael and probably
	many others, my latest signal change introduced a Linuxism
	which doesn't compile on any other UNIX system, eek.
	s/SA_NOMASK/SA_NODEFER/ makes it compile and is hopefully
	the last chapter in this saga.
2000-05-02 17:18:27 +00:00
Manish Singh e35436426b applied gimp-quinet-000427-0, draw the straight line preview in the center
* app/paint_core.c: applied gimp-quinet-000427-0, draw the straight
line preview in the center of the start and end pixels at high zoom
levels.

-Yosh
2000-05-01 18:10:20 +00:00
Michael Natterer 1c1c182074 app/main.c again... _do_ use gimp_signal_private() but force it to behave
2000-05-01  Michael Natterer  <mitch@gimp.org>

	* app/main.c
	* libgimp/gimp.c: again... _do_ use gimp_signal_private() but
	force it to behave like signal(). While on Linux it seems to
	be ok to use both signal() and sigaction() (because signal() is
	built on top of sigaction()), doing the same on other systems
	is totally broken code. Thanks to Garry for pointing out this
	portability issue.

	* app/errors.c: s/vprintf/g_strdup_vprintf/

	* libgimp/gimpsignal.[ch]: code formating paranoia.
2000-05-01 14:57:54 +00:00
Michael Natterer ef751a454d gimprc.in replaced "color-cube" by "min-colors".
2000-04-30  Michael Natterer  <mitch@gimp.org>

	* gimprc.in
	* app/gimprc.[ch]: replaced "color-cube" by "min-colors".

	* app/app_procs.c: read unitrc/gimprc before displaying the splash.

	* app/colormaps.c: set min_colors and install_cmap before
	initializing GdkRGB.

	* app/gimprc.[ch]
	* app/gimpunit.c: don't call the splash's progress_update function.

	* app/plug_in.c: pass min_colors instead of color_cube to plugins.

	* app/preferences_dialog.c: widget for min_colors.

	* libgimp/gimp.[ch]: s/color_cube/min_colors/ but left
	gimp_color_cube() there for source level compatibility.

	* libgimp/gimpprotocol.[ch]: changed the GPConfig message
	accordinly and increased the gimp protocol version number because
	the change breaks binary compatibility. Also actually pass the
	use_xshm variable over the wire (was only in the GPConfig struct
	before).

	Was it the right thing to do to increase the version number??

	* libgimp/gimpui.c (gimp_ui_init): use the same code as the app
	for initializing GdkRGB. Never explicitly activate Gdk's SHM
	usage (only switch it off).

	* app/main.c
	* libgimp/gimp.c: reverted the handling of all signals except
	SIGCHLD back to plain old signal() because those signals are
	fatal anyway and sigaction() as used by gimp_signal_*() made
	debugging (stacktrace) impossible.

	* plug-ins/AlienMap/AlienMap.c
	* plug-ins/AlienMap2/AlienMap2.c
	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/bmp/bmp.c
	* plug-ins/borderaverage/borderaverage.c
	* plug-ins/dbbrowser/dbbrowser.c
	* plug-ins/faxg3/faxg3.c
	* plug-ins/fits/fits.c
	* plug-ins/flame/flame.c
	* plug-ins/fp/fp.c
	* plug-ins/fp/fp_gtk.c
	* plug-ins/gdyntext/Makefile.am
	* plug-ins/gdyntext/gdyntext_ui.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gflare/gflare.c
	* plug-ins/gfli/gfli.c
	* plug-ins/gimpressionist/gimpressionist.c
	* plug-ins/helpbrowser/helpbrowser.c
	* plug-ins/ifscompose/ifscompose.c
	* plug-ins/imagemap/Makefile.am
	* plug-ins/imagemap/imap_main.c
	* plug-ins/maze/maze_face.c
	* plug-ins/mosaic/mosaic.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/print.c
	* plug-ins/rcm/rcm_dialog.c
	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-server.c
	* plug-ins/sel2path/Makefile.am
	* plug-ins/sel2path/sel2path.c
	* plug-ins/sgi/sgi.c
	* plug-ins/sinus/sinus.c
	* plug-ins/struc/struc.c
	* plug-ins/webbrowser/webbrowser.c
	* plug-ins/winsnap/winsnap.c
	* plug-ins/xjt/xjt.c: use gimp_ui_init().

	* plug-ins/Lighting/lighting_ui.c
	* plug-ins/MapObject/mapobject_ui.c: only switch Gdk SHM usage off,
	never on. Don't use gimp_ui_init() here because of libgck.
2000-04-30 18:17:55 +00:00
Garry R. Osgood ab4e420026 app/main.c libgimp/gimpsignal.c [Documentation only] Patches arising from
2000-04-30 Garry R. Osgood <gosgood@idt.net>
* app/main.c
* libgimp/gimpsignal.c [Documentation only]
Patches arising from Tim Mooney to fix #2742
which should (hopefully) die at this point.
removes on_sig_chld() from app/main() which
offers no meaningful functionality in light
of SA_NOCHLDSTOP.
2000-04-30 17:47:32 +00:00
Sven Neumann c1d23aa596 moved the OS/2 define for finite into libgimp/gimpmath.h
--Sven
2000-04-30 13:37:28 +00:00
jaycox 2ba5ae4c24 Fix the end of group check in gimage_mask_stroke. This fixes bug #8699
* app/gimage_mask.c: Fix the end of group check in
	gimage_mask_stroke.  This fixes bug #8699
2000-04-29 22:00:27 +00:00
Asbjørn Pettersen 71809d8a21 os2 finite patch 2000-04-29 19:50:08 +00:00
jaycox ce4234b2a6 Correctly initialize the max arrays in thin_region. Fixes bug #8351 return
* app/paint_funcs.c: Correctly initialize the max arrays in
        thin_region. Fixes bug #8351
        * app/scale.c: return from the channel_scale function if we
        tried to zoom in/out too far.  This prevents some
        unnecessary display redraws.
2000-04-28 23:59:40 +00:00
Michael Natterer c73b233f8a app/color_select.c app/colormaps.[ch] removed unused global variables
2000-04-26  Michael Natterer  <mitch@gimp.org>

	* app/color_select.c
	* app/colormaps.[ch]
	* app/context_manager.c: removed unused global variables
	[foreground|background]_pixel and [old|new]_color_pixel.

	Initialize the colormap and visual stuff with GdkRGB instead of
	GtkPreview functions (which are deprecated).

	* app/[62 files]: removed #include's (started with colormaps.h and
	couldn't stop). Also ordered them consistently and did some small
	unrelated cleanups.
	Removed variuos <stdlib.h> et.al. but checked the files carefully
	before doing so. If I was too radical and you get warnings on your
	platform, please flame me or just put them back :)
2000-04-27 17:27:28 +00:00
Michael Natterer 4c24479a58 app/gdisplay.[ch] made the warning_dialog a per-display variable. The old
2000-04-26  Michael Natterer  <mitch@gimp.org>

	* app/gdisplay.[ch]
	* app/gdisplay_ops.c: made the warning_dialog a per-display
	variable. The old behaviour of having only one global variable
	can easily result in loss of work and should IMHO be considered
	a bug.
2000-04-26 21:04:35 +00:00
Michael Natterer f084945e77 when reading PROP_UNIT, check it's value against the number of built-in
2000-04-26  Michael Natterer  <mitch@gimp.org>

	* app/xcf.c (xcf_load_image_props): when reading PROP_UNIT, check
	it's value against the number of built-in units, not against the
	number of defined units.
2000-04-26 19:30:37 +00:00
Michael Natterer ba7c2c8a3d removed C++ comments (#9444).
2000-04-26  Michael Natterer  <mitch@gimp.org>

	* app/paint_funcs.c: removed C++ comments (#9444).
2000-04-26 00:20:52 +00:00