Commit Graph

1706 Commits

Author SHA1 Message Date
Sven Neumann 9a8a390b65 return without warning if popup_timeout is already set. Suppresses warning
* app/gimpcontextpreview.c: return without warning if popup_timeout
   is already set. Suppresses warning that occured on double-click.

 * app/layers_dialog.[ch]
 * app/menus.c: added "Delete Mask" menu entry and removed dialog
   asking if mask is to applied or discarded on "Apply Mask".

 * app/tools.c: Magnify is not a transform tool


--Sven
2000-02-29 23:19:14 +00:00
Sven Neumann e00de7cbb9 fixed off-by-one error for the x coordinate fixed scaling without
* app/measure.c: fixed off-by-one error for the x coordinate
* app/transform_core.c: fixed scaling without interpolation (bug #6681)


--Sven
2000-02-28 22:56:06 +00:00
GMT 2000 Adam D. Moss f5b589820b added gtkutil_compress_motion() utility function to seek and destroy
Mon Feb 28 19:11:39 GMT 2000  Adam D. Moss <adam@gimp.org>

	* app/cursorutil.c app/cursorutil.h:
	added gtkutil_compress_motion() utility function to seek and
	destroy outstanding pointer motion events from the gdk event queue
	for a given widget.

	* app/edit_selection.c:305: Use gtkutil_compress_motion() to
	do a more thorough job of tracking motion (something recently
	started interleaving our motion events with others, largely
	nullifying the effectiveness of GDK_POINTER_MOTION_HINT_MASK).

	* app/edit_selection.c:704: Yikes, the key-press snooping code
	was turning part of the event queue back-to-front with each
	compressed key-press.  (Still looks a bit bogus overall; looks
	as though it could transplant a whole chunk of the start of
	the event queue right onto the end.  I'll probably disable it
	unless someone points out that I'm a doofus.)
2000-02-28 19:25:42 +00:00
Garry R. Osgood bdbb45d87c gimp/app/by_color_select.c gimp/app/color_picker.c gimp/app/gimpdrawable.c
2000-02-27 Garry R. Osgood <gosgood@idt.net>

* gimp/app/by_color_select.c
* gimp/app/color_picker.c
* gimp/app/gimpdrawable.c
* gimp/app/image_map.c
* gimp/app/paint_core.c
Inadvertent logic error in g_return_val_if_fail()
style sanity checks implemented in
gimp_drawable_get_color_at() gave rise to
segment violation reported in #6624;
error admitted out-of-bounds x&y that
do not map to tiles. Closes #6624.
GTK-critical warnings which result from
this new sanity check require that
gimp_drawable_get_color_at() clients
perform initial culling of out-of-bounds
x & y coordinates.
2000-02-28 02:40:44 +00:00
Garry R. Osgood e99bf6ac94 app/gimpimage.c Fixed small typo.
2000-02-27 Garry R. Osgood <gosgood@idt.net>

* app/gimpimage.c Fixed small typo.
2000-02-27 19:57:49 +00:00
Sven Neumann 2b077e0958 Script-Fu internationalisation!
--Sven
2000-02-27 19:35:39 +00:00
Sven Neumann 1bd3c65443 removed warnings, cleaned up the source, unmarked
internal error messages for translation


--Sven
2000-02-27 12:09:29 +00:00
GMT 2000 Andy Thomas 0e0cb8b555 gimp/app/nav_window.c
Sat Feb 26 23:58:27 GMT 2000 Andy Thomas <alt@gimp.org>

         * gimp/app/nav_window.c

	Now takes note of the users set preview size when close to the
	edge of the screen.
	If the user selected < MAX size of preview the popup would appear
	in the incorrect location of the screen. This is a slight change
	to the checkin of Sat Feb 19 13:53:34 CET 2000  by
	Sven Neumann <sven@gimp.org>
2000-02-27 00:10:57 +00:00
Sven Neumann e477d76b48 translate branches on the fly, get rid of dummy_entries
--Sven
2000-02-26 19:09:28 +00:00
Garry R. Osgood 8769bbb456 app/commands.c app/gimpimage.c app/layer.c app/layer.h app/resize.c
2000-02-26 Garry R. Osgood <gosgood@idt.net>
* app/commands.c
* app/gimpimage.c
* app/layer.c
* app/layer.h
* app/resize.c
* app/resize.h

Aliasing artifacts that changed relative positions
of layers under scaling, giving rise to #5271, are
minimized by a new layer.c function,
layer_scale_by_factors(). Closes #5271. See
http://idt.net/~gosgood/gimp-patch/patch07.html for
further detail. See also usage documentation for
layer_scale() and layer_scale_by_factors() in
layer.c.

Provided logic for the Scale Image dialog box to
pre-check an image's layers for the possibility that
a particular scaling, s: 0 < s < 1, reduces a layer
dimension to zero. Should this case prevail, a
boolean dialog box warns the user of the
possibility. The user may (1) Cancel, returning
focus to Scale Image and the possibility of
corrective adjustment, or (2) OK the scaling. The
layers that will vanish upon the new scaling are
culled from the GimpImage::layers list first.
2000-02-26 18:46:08 +00:00
SHIRASAKI Yasuhiro 5d30de1dbc moved dummy menu entries for menu path translation into plugins.
a few entries are still left.

-- yasuhiro
2000-02-26 05:49:48 +00:00
Michael Natterer 3cfa38dba2 app/channels_dialog.c app/layers_dialog.c app/ops_buttons.[ch] use
2000-02-26  Michael Natterer  <mitch@gimp.org>

	* app/channels_dialog.c
	* app/layers_dialog.c
	* app/ops_buttons.[ch]
	* app/paths_dialog.c: use GimpPixmap widgets. Don't pass the
	parent widget pointer to ops_button_box_new().
2000-02-26 03:33:57 +00:00
Sven Neumann cf495d22f1 applied patch from Daniel Egger that enables menu shortcuts for the
toolbox menus


--Sven
2000-02-24 17:48:02 +00:00
Sven Neumann 9ac098c3ce app/fileops_cmds.c don't add an already registered load|save handler twice
* app/fileops_cmds.c
 * tools/pdbgen/pdb/fileops.pdb: don't add an already registered
 load|save handler twice to the list. This fixes the problem
 that extension were listed twice if a load|save plugin changed.

 * app/plug_in.[ch]: code cleanup, indentation

 * app/xcf.[ch]: same here, include copyright headers

 * plug-ins/common/wmf.c: properly cancel the load if the user
   pressed Cancel in the dialog (fixes bug #6500)


--Sven
2000-02-24 16:11:26 +00:00
Michael Natterer 714cfa9849 we were also leaking all path preview pixmaps ever created. Always
2000-02-24  Michael Natterer  <mitch@gimp.org>

	* app/paths_dialog.c: we were also leaking all path preview
	pixmaps ever created. Always remember that GdkPixmaps are not
	created "floating" but with a real refcount of 1. Minor cleanups.
2000-02-24 12:35:25 +00:00
Michael Natterer 8f4adbadbf app/gimpbrush.[ch] app/gimpbrushgenerated.[ch] app/gimpbrushlist.[ch]
2000-02-24  Michael Natterer  <mitch@gimp.org>

	* app/gimpbrush.[ch]
	* app/gimpbrushgenerated.[ch]
	* app/gimpbrushlist.[ch]
	* app/gimpbrushlistP.h
	* app/gimpbrushpipe.[ch]
	* app/gimpbrushpipeP.h: did a brushes code-review: indentation,
	removed some includes, didn't find a bug :-)

	* app/gradient.c
	* app/palette.c: we were leaking all gradient and palette preview
	pixmaps as well as all lists of palette colors on each refresh.

	* libgimp/gimpenv.c: updated documentation.
2000-02-24 11:39:26 +00:00
Michael Natterer ae38b99c21 another leak: don't allocate the PaintPressureOptions structure twice for
2000-02-24  Michael Natterer  <mitch@gimp.org>

	* app/tool_options.c: another leak: don't allocate the
	PaintPressureOptions structure twice for one tool.
2000-02-24 02:11:10 +00:00
Michael Natterer 868888fe21 fixed a memleak.
2000-02-24  Michael Natterer  <mitch@gimp.org>

	* app/datafiles.c: fixed a memleak.

	* app/gimpbrushlist.c
	* app/gradient.c
	* app/palette.c: use the gimp_path_* functions, cleanups.

	* app/gimpbrushpipe.c: call the "destroy" function of the parent
	class, not of the object class. Fixes a huge memleak on each
	"Refresh".

	* app/gimpbrushpipeP.h
	* app/gimplist.c
	* app/gimpbrush.c: did some cleanups while searching the brush
	memleak.

	* libgimp/gimpenv.c: gimp_path_get_user_writable_dir(): return a
	copy of the string.

	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gflare/gflare.c: g_free() the string returned by
	gimp_path_get_user_writable_dir().
2000-02-24 01:52:31 +00:00
Sven Neumann a9df0647fc plugged a memleak
--Sven
2000-02-24 01:21:04 +00:00
Sven Neumann 40779fe370 quick GUI fix for the text_tool
--Sven
2000-02-24 00:51:00 +00:00
Sven Neumann 8dead13522 fixed bug #6526
--Sven
2000-02-23 23:42:25 +00:00
Sven Neumann a461944199 don't bind to the default textdomain twice if a plug-in adds it using
* app/plug_in.c: don't bind to the default textdomain twice if
  a plug-in adds it using gimp_plugin_domain_add ()


--Sven
2000-02-23 23:21:31 +00:00
Sven Neumann c4a723b3b5 plugged memleaks
--Sven
2000-02-23 22:31:26 +00:00
Tor Lillqvist ebf05daf38 Include <stdlib.h> for __argc and__argv.
2000-02-24  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimp.h (Win32): Include <stdlib.h> for __argc and__argv.

* libgimp/{gimp,gimpui}.def: Add new entry points.

* libgimp/gimpenv.c (Win32): Make compileable, with no geteuid etc.

* app/makefile.{cygwin,msc}
* libgimp/makefile.{cygwin,msc}: Update object file list.
2000-02-23 22:03:37 +00:00
Sven Neumann f530f0dbb1 the ultimate solution to the i18n problem
--Sven
2000-02-23 20:25:24 +00:00
Sven Neumann 7c3c4c3091 new functions gimp_plugin_domain_add() and gimp_plugin_domain_add_with_path()
that allow a plugin to specify its textdomain in the query() function. The
info is saved and read in from the pluginrc, but not yet used.


--Sven
2000-02-23 18:07:53 +00:00
Michael Natterer 27d4717c78 use a gimp_query_boolean_box().
2000-02-23  Michael Natterer  <mitch@gimp.org>

	* app/file_new_dialog.c: use a gimp_query_boolean_box().

	* libgimp/gimpenv.c
	* libgimp/gimpquerybox.c: documentation updates.

	* libgimp/gimpwidgets.[ch]: changed the widget constructors to
	return only the container widget and added access marcos for the
	sub-widgets. Added documentation for all functions.
	Made gimp_toggle_button_sensitive_update() public so this feature
	can be properly documented.

	* plug-ins/common/blur.c
	* plug-ins/common/gauss_iir.c
	* plug-ins/common/gauss_rle.c
	* plug-ins/common/plasma.c
	* plug-ins/common/randomize.c
	* plug-ins/common/snoise.c
	* plug-ins/common/spread.c
	* plug-ins/common/tile.c
	* plug-ins/gflare/gflare.c: updated according to the
	gimpwidgets.[ch] changes.

2000-02-23  Michael Natterer  <mitch@gimp.org>

	* libgimp/libgimp-decl.txt
	* libgimp/libgimp-sections.txt
	* libgimp/tmpl/gimpenv.sgml
	* libgimp/tmpl/gimppixmap.sgml
	* libgimp/tmpl/gimpwidgets.sgml: various updates and documentation
	for all gimpwidgets.[ch] functions.
2000-02-23 15:52:33 +00:00
Michael Natterer 863b24917c it's more intelligent to implement the parent_context stuff with
2000-02-22  Michael Natterer  <mitch@gimp.org>

	* app/gimpcontext.[ch]: it's more intelligent to implement the
	parent_context stuff with gtk_signal_connect_object() instead of
	having internal callbacks for each context attribute.
	Exported the existing gimp_context_*_changed() functions and
	changed them to do nothing but emitting the signal.

	* app/app_procs.c
	* app/tools.c
	* app/transform_tool.c: use gimp_context_tool_changed() instead of
	gtk_signal_emit_by_name().
2000-02-22 17:06:44 +00:00
Michael Natterer a4f6d59af0 app/color_area.[ch] pass masks for the "default" and "swap" pixmaps to the
2000-02-22  Michael Natterer  <mitch@gimp.org>

	* app/color_area.[ch]
	* app/interface.c: pass masks for the "default" and "swap" pixmaps
	to the color_area constructor and use them to create a clip mask
	in color_area_draw().

	* app/datafiles.[ch]: some harmless cleanups.

	* libgimp/gimppixmap.c: use gtk_pixmap_set_build_insensitive()
	instead of accessing the field directly.
2000-02-22 15:14:54 +00:00
Sven Neumann 67fc9f22ee shaped up the icons a little
--Sven
2000-02-21 18:41:36 +00:00
Michael Natterer ed071953b2 fixed a gtk-doc comment.
2000-02-21  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimppixmap.c: fixed a gtk-doc comment.

	* libgimp/gimpenv.[ch]: new functions:

	- gimp_path_parse(): Creates a GList of strings from a searchpath
	  string and performs sanity checks.
	- gimp_path_to_str(): Creates a searchpath string from the list
	  returned by gimp_path_parse().
	- gimp_path_free(): Frees the list returned by gimp_path_parse().
	- gimp_path_get_user_writable_dir(): Returns the first dir in a
	  path where the user has write access. With this function the
	  "Save" dialogs of some plugins always show the plugin's
	  subdirectory of the user's gimp_dir instead of the read-only
	  global one.

	* app/datafiles.[ch]
	* app/gimpbrushlist.c: use the new functions and
	s/datafile_loader_t/GimpDataFileLoaderFunc/.

	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/FractalExplorer/FractalExplorer.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gflare/gflare.c
	* plug-ins/gimpressionist/gimpressionist.c: use the new functions.
2000-02-21 17:15:30 +00:00
Sven Neumann c5203ce512 actually load generated brushes, marked a few messages for translation
--Sven
2000-02-21 13:07:23 +00:00
Sven Neumann e836901c83 more places with Solaris compilation problems
--Sven
2000-02-21 12:05:45 +00:00
Michael Natterer 0a5fadee17 app/perspective_tool.c app/rotate_tool.c app/scale_tool.c app/shear_tool.c
2000-02-21  Michael Natterer  <mitch@gimp.org>

	* app/perspective_tool.c
	* app/rotate_tool.c
	* app/scale_tool.c
	* app/shear_tool.c
	* plug-ins/common/gauss_iir.c
	* plug-ins/common/gauss_rle.c: fix Solaris compilation problems
	reported by Ludovic Poitou <ludovic.poitou@france.sun.com>.

	* libgimp/gimppixmap.[ch]: new function gimp_pixmap_set().

	* plug-ins/gfig/gfig.c: hacked the ui to use the libgimp widgets &
	constructors and slightly reorganized it to use fewer screen
	space (not yet perfect). Did a general namespace & code cleanup.

	* plug-ins/FractalExplorer/FractalExplorer.c: use a GimpPathEditor
	widget.
2000-02-21 11:54:33 +00:00
Marc Lehmann 737a8e2fc5 *** empty log message *** 2000-02-20 17:59:00 +00:00
Seth Burgess 0eef4ac146 Modified Files: ChangeLog app/gdisplay_ops.c
Modified Files:
 	ChangeLog app/gdisplay_ops.c

Fixed #6257
2000-02-20 16:49:39 +00:00
Sven Neumann 65f23289dc do not ignore the mask of the tool icons
--Sven
2000-02-20 02:46:53 +00:00
Sven Neumann ce4894be3d use geometry hints for the toolbox
--Sven
2000-02-19 16:29:16 +00:00
Michael Natterer 5d57b99903 gimp_pixmap_new(): set the widget's requisition so it can be properly
2000-02-19  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimppixmap.c: gimp_pixmap_new(): set the widget's
	requisition so it can be properly packed before it's realized.

	* libgimp/gimpwidgets.[ch]: added a "text" parameter to
	gimp_pixmap_button_new().

	* app/undo_history.c: use gimp_pixmap_buttons.

	* app/gradient.c
	* app/nav_window.c
	* app/palette.c
	* libgimp/gimppatheditor.c
	* plug-ins/Lighting/lighting_ui.c
	* plug-ins/MapObject/mapobject_ui.c: changed calls to
	gimp_pixmap_button_new().

	* plug-ins/MapObject/mapobject_main.c: INIT_I18N() was missing in
	query().

	* plug-ins/pagecurl/pagecurl.c: use GimpVector2 functions instead
	of reinventing the wheel.

	* plug-ins/helpbrowser/helpbrowser.c: use gimp_pixmap_buttons.

	* plug-ins/helpbrowser/back.xpm
	* plug-ins/helpbrowser/forward.xpm: cropped.
2000-02-19 14:25:27 +00:00
Sven Neumann c878108f4a ignore motion_events in a time-window of 100ms after the last event. Was
* app/fuzzy_select.c: ignore motion_events in a time-window of
  100ms after the last event. Was intended as a workaround for bug
  #5949, but IMO it makes the tool more responsive and easier to
  control.

* app/nav_window.c: as a workaround for bug #5955 move the
  navigation popup on screen if used to close to the screen borders.
  Moving the cursor will make the image scroll by a large amount
  eventually, but IMHO this is better than having a nonfunctional
  navigation popup.

* plug-ins/common/curve_bend.c
* plug-ins/gap/gap_decode_xanim.c: fixed typos


--Sven
2000-02-19 13:19:08 +00:00
Michael Natterer bf72684e5a app/paint_options.h put the pointer to tool's private context to the
2000-02-18  Michael Natterer  <mitch@gimp.org>

	* app/paint_options.h
	* app/tool_options.h: put the pointer to tool's private context to
	the PaintOptions structure instead of attaching it to the
	paint_mode optionmenu (which does not exist for all paint tools
	which have a private context). Fixes bug #6308.
2000-02-18 21:22:13 +00:00
Sven Neumann defbe35de6 forgot to exclude airbrush_blob.[ch] from the build
* app/Makefile.am: forgot to exclude airbrush_blob.[ch] from the build

* app/gimpbrushgenerated.c
* app/ink.c
* app/measure.c
* app/rotate_tool.c: use gimp_rad_to_deg and gimp_deg_to_rad macros


--Sven
2000-02-18 18:20:04 +00:00
Michael Natterer f9f4411f53 libgimp/Makefile.am simple widget which creates a pixmap from XPM data
2000-02-18  Michael Natterer  <mitch@gimp.org>

	* libgimp/Makefile.am
	* libgimp/gimppixmap.[ch]: simple widget which creates a pixmap
	from XPM data without the need to worry about it's parent's
	"realized" state and other stuff.

	* libgimp/gimpcolorbutton.c: removed a gtk-doc comment from an
	internal function.

	* libgimp/gimpwidgets.[ch]: new function gimp_pixmap_button_new().

	* app/gimpui.h
	* libgimp/gimpui.h: include gimppixmap.h.

	* app/gradient.c
	* app/nav_window.c
	* app/palette.c
	* libgimp/gimpfileselection.[ch]
	* libgimp/gimppatheditor.c
	* libgimp/gimpquerybox.c
	* plug-ins/FractalExplorer/FractalExplorer.c: use GimpPixmaps.

	* plug-ins/Lighting/*
	* plug-ins/MapObject/*: some more cleanups: reduced # of includes,
	made private functions static, use GimpPixmaps.

	* plug-ins/libgck/Makefile.am
	* plug-ins/libgck/NEWS
	* plug-ins/libgck/README
	* plug-ins/libgck/TODO
	* plug-ins/libgck/docs/html/gck.html
	* plug-ins/libgck/docs/html/gck_application_window.html
	* plug-ins/libgck/docs/html/gck_dialog_window.html
	* plug-ins/libgck/docs/html/gckmath.html
	* plug-ins/libgck/docs/html/gckui.html
	* plug-ins/libgck/docs/html/gckvector.html: removed because they
	documented files which don't exist any more.
2000-02-18 13:59:18 +00:00
Manish Singh 45842e262a added 2000 to the copyrights
* tools/pdbgen/*.pl: added 2000 to the copyrights

* tools/pdbgen/lib.pl: it's foo_pdb.[ch] now

* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/parasite.pdb: reenabled sanity checks for the
drawable IDs and the parasite names

* app/drawable.c
* app/gimpdrawable.c: added a bunch of g_return_if_fail's, instead
of the silent check and return in many functions. This should also
be done in gimpimage.c and the like too.

* app/gimpdrawable.h
* app/layer.c: cosmetic code fix

-Yosh
2000-02-17 11:44:27 +00:00
Garry R. Osgood 5581372dcf *app/paint_funcs.c: replace_pixels() was naively zeroing RGB components of
2000-02-16 Garry R. Osgood <gosgood@idt.net>
*app/paint_funcs.c: replace_pixels() was
naively zeroing RGB components of RGBA pixels
when projecting and compositing paint_core
and currently active layer pixels. Closes
#5947. See bug report, and
http://idt.net/~gosgood/gimp-patch/patch06.html
for further detail.
2000-02-16 22:36:46 +00:00
Sven Neumann 1417c36b4b copy image parasites on image duplicate (fixes bug #6270)
--Sven
2000-02-16 20:44:39 +00:00
Sven Neumann fde312118a Cleaned up the Path header mess.
--Sven
2000-02-16 13:52:33 +00:00
Sven Neumann 1cfe0c3cdb new default toolbox layout: 5x5 tools
--Sven
2000-02-16 02:08:34 +00:00
Sven Neumann 1cde0279ff Moved some functions out of paths_dialog.c into the new file
paths.c and did a general namespace cleanup:
s/PATHP/Path*/  s/PATHIMAGELISTP/PathList/ and friends.

Paths are now copied on image duplicate (fixes bug #5726).

Removed Path Tool and XInput Airbrush from the build and
renamed "Layers & Channels" to "Layers, Channels & Paths".

Applied patch from Wolfgang Hofer to xjt.c that enables loading
and saving of paths based on Andy's change explained below.


--Sven
2000-02-16 01:47:22 +00:00
GMT 2000 Andy Thomas 8f6bca3234 gimp/app/gimpdrawable.c gimp/app/channel.c gimp/app/layer.c
Tue Feb 15 23:27:42 GMT 2000 Andy Thomas <alt@gimp.org>

	 * gimp/app/gimpdrawable.c
	 * gimp/app/channel.c
	 * gimp/app/layer.c
	 * gimp/app/channel.h
	 * gimp/app/layer.h
	 * gimp/app/gimpimage.c
	 * gimp/app/gimpimage.h
	 * gimp/app/gimpdrawable.h
	 * gimp/tools/pdbgen/pdb/paths.pdb
	 * gimp/tools/pdbgen/pdb/layer.pdb
	 * gimp/tools/pdbgen/pdb/channel.pdb
	 * gimp/tools/pdbgen/pdb/gimage.pdb
	 * gimp/app/channel_cmds.c
	 * gimp/app/gimage_cmds.c
	 * gimp/app/internal_procs.c
	 * gimp/app/layer_cmds.c
	 * gimp/app/paths_cmds.c

	New gimp_*_set_tattoo procedures. This allows save/load plugins
        to save/restore tattoo states of layers, channels and paths. Note the
	internal tattoo state can also be set, however rigorous checks are
	performed to make sure that the internal tattoo states of layer,
	channels and paths are consistent and that the new state value is
	newval > MAX(MAX(layertattoo),MAX(channeltattoo),MAX(pathtattoo)).
2000-02-15 23:49:03 +00:00
Tor Lillqvist 970ad834d1 libgimp/gimp.def libgimp/gimpui.def libgimp/makefile.{cygwin,msc}
2000-02-15  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimp.def
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}
* app/makefile.{cygwin,msc}
* plug-ins/makefile.{cygwin,msc}: Updates.

* app/datafiles.c (is_script): New Win32-only function, which
tests if a file's extension matches one of the extensions in the
PATHEXT environment variable (which the cmd.exe command
interpreter also uses). This is to avoid starting applications
associated with any random data file the user might have dropped
in the plug-ins folder, while still supporting plug-ins written in
scripting languages.

* app/gimpparasite.c (gimp_parasiterc_save): (Win32:) Cannot
rename to an existing file.

* plug-ins/Lighting/lighting_image.c
* plug-ins/Lighting/lighting_share.c
* plug-ins/MapObject/mapobject_preview.c
* plug-ins/MapObject/mapobject_shade.c: Use G_PI.

* plug-ins/common/gz.c: #ifdef G_OS_WIN32 was used before its
potential definition via glib.h.

* plug-ins/common/jpeg.c: Also recognize Exif files, which are
typically produced by digital cameras. The usually have a .jpg
file name extension, and would thus already match this plug-in,
but add the magic string just in case. They are loaded just fine
by libjpeg even if they don't have the JFIF signature.

* plug-ins/common/tiff.c: Set TIFF warning and error handler, so
we get to pass libtiff's messages through the normal channels.
2000-02-14 22:44:06 +00:00
Michael Natterer 2715fd15c8 app/Makefile.am removed.
2000-02-14  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* app/vector2d.[ch]: removed.

	* app/gimpbrush.h
	* app/paint_core.c: use the vectors from libgimp.
2000-02-14 18:09:33 +00:00
Michael Natterer 260d7b2d1d plug-ins/libgck/gck/Makefile.am plug-ins/libgck/gck/gckcommon.h
2000-02-14  Michael Natterer  <mitch@gimp.org>

	* plug-ins/libgck/gck/Makefile.am
	* plug-ins/libgck/gck/gckcommon.h
	* plug-ins/libgck/gck/gcklistbox.[ch]
	* plug-ins/libgck/gck/gckmath.[ch]
	* plug-ins/libgck/gck/gckvector.[ch]: removed.

	* plug-ins/libgck/gck/gck.h
	* plug-ins/libgck/gck/gcktypes.h: modified accordingly.

	* libgimp/Makefile.am
	* libgimp/gimpvector.[ch]: new files. Modified the vector
	functions from GCK. Changed the licence to LGPL, if there are any
	objections, please let me know.

	* libgimp/gimp.h: #include "gimpvector.h"

	* libgimp/gimpmath.h: added deg <-> rad conversion macros.

	* libgimp/gimpmatrix.[ch]: added a 4x4 vector to rotation angle
	function from GCK,
	s/GimpMatrix,gimp_matrix/GimpMatrix3,gimp_matrix3/

	* plug-ins/Lighting/*
	* plug-ins/MapObject/*:
	s/GckVector,gck_vector/GimpVector,gimp_vector/

	* app/pathsP.h
	* app/paths_dialog.c
	* app/perspective_tool.[ch]
	* app/rotate_tool.[ch]
	* app/scale_tool.[ch]
	* app/shear_tool.[ch]
	* app/tools_cmds.c
	* app/transform_core.[ch]
	* tools/pdbgen/pdb/tools.pdb:
	s/GimpMatrix,gimp_matrix/GimpMatrix3,gimp_matrix3/
2000-02-14 16:29:41 +00:00
Michael Natterer 73f722ec23 purely cosmetic.
2000-02-14  Michael Natterer  <mitch@gimp.org>

	* app/preferences_dialog.c: purely cosmetic.

	* libgimp/gimpdialog.c: purely fanatic.

	* libgimp/gimpwidgets.c: attach label, scale and spinbutton to the
	adjustment returned by gimp_scale_entry_new().

	* plug-ins/common/film.c: set reasonable climb_rate's for the
	advanced options's spinbuttons.
2000-02-14 13:23:12 +00:00
Sven Neumann 4ea02e0cd1 a first approach at duplicating Paths and a small cleanup to
FractalExplorer


--Sven
2000-02-14 11:25:28 +00:00
Michael Natterer 9ca67bb02c app/color_area.c app/color_notebook.[ch] app/color_panel.c
2000-02-14  Michael Natterer  <mitch@gimp.org>

	* app/color_area.c
	* app/color_notebook.[ch]
	* app/color_panel.c
	* app/colormap_dialog.p.h
	* app/palette.c: s/ColorNotebookP/ColorNotebook*/g
2000-02-13 23:42:19 +00:00
Nick Lamb /GIMP cd60329697 Slightly better resize behaviour for palette dialog (no more horiz scroll) 2000-02-13 23:24:16 +00:00
Michael Natterer 2b92a59e64 po/POTFILES.in app/Makefile.am removed.
2000-02-13  Michael Natterer  <mitch@gimp.org>

	* po/POTFILES.in
	* app/Makefile.am
	* app/buildmenu.[ch]: removed.

	* app/blend.c
	* app/brush_select.c
	* app/curves.c
	* app/histogram_tool.c
	* app/layers_dialog.c
	* app/lc_dialog.c
	* app/levels.c
	* app/paint_options.h
	* app/paintbrush.c
	* app/tool_options.c: use the libgimp option menu
	constructor. Removed paint_mode_menu_set_history().

	* app/colormap_dialog.i.c
	* app/colormap_dialog.p.h: use a popup menu as in the palette
	dialog instead of a pulldown menu.

	* app/channels_dialog.c: made color dnd to a channel widget work
	again.

	* libgimp/gimpwidgets.[ch]: new function
	gimp_option_menu_set_history() which sets the history according to
	user_data as passed to gimp_option_menu_new().
2000-02-13 22:26:41 +00:00
Sven Neumann 263998e07b check if donts got loaded instaed os simply crashing
--Sven
2000-02-13 19:35:24 +00:00
Sven Neumann d45dae93e5 Checked in the wrong versions with my last commit.
--Sven
2000-02-13 14:36:25 +00:00
Sven Neumann 3cabc8b4d8 fixed bug #2518
--Sven
2000-02-13 14:23:47 +00:00
Michael Natterer f0ae0dccd4 app/brush_select.c app/paint_options.h use new function
2000-02-13  Michael Natterer  <mitch@gimp.org>

	* app/brush_select.c
	* app/paint_options.h
	* app/tool_options.c: use new function
	paint_mode_menu_set_paint_mode() instead of
	gtk_option_menu_set_history() because the order of paint modes in
	the menu is different from the one in the LayerModeEffects enum
	(fixes bug #6190). Create the menu with the libgimp menu
	constructor.
2000-02-13 13:14:34 +00:00
Sven Neumann fde64e54db tupos fixes and updates to german catalogs
--Sven
2000-02-13 12:04:32 +00:00
Sven Neumann 69a4749d3e reverted bogus change by Daniel Egger
polished gfli a little more


--Sven
2000-02-13 11:12:22 +00:00
Marc Lehmann 9d02cb0d45 *** empty log message *** 2000-02-13 00:11:26 +00:00
Sven Neumann 78680b3e6d something went wrong with that last commit
--Sven
2000-02-12 15:04:39 +00:00
Michael Natterer a4572c8f42 fix a warning.
2000-02-12  Michael Natterer  <mitch@gimp.org>

	* app/app_procs.c: fix a warning.

	* app/menus.c: don't allow the help menu item accelerators to be
	changed. Move all ordinary menu items under "<Toolbox>/Xtns"
	before the separator without explicitly naming them.

	* app/session.[ch]: minor cleanups without changing any logic.
2000-02-12 15:01:33 +00:00
Sven Neumann cfec42a82d cosmetics and i18n fixes
--Sven
2000-02-12 14:38:15 +00:00
Michael Natterer 9f92453c56 app/gdisplay_ops.c app/gradient.c app/palette.c removed the "eek" wilber
2000-02-12  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/gdisplay_ops.c
	* app/gradient.c
	* app/palette.c
	* plug-ins/gflare/gflare.c: removed the "eek" wilber from all
	query boxes except the "Quit the GIMP?" warning.

	* libgimp/gimpfileselection.c
	* libgimp/gimpunitmenu.c: be a bit more clever with widget signals
	(destroy, unmap) which affect the widget's sub-dialogs.

	* libgimp/gimphelpui.c: pass a GtkWindow, not a GtkWidget to
	gimp_dialog_set_icon().

	* libgimp/gimpquerybox.[ch]: added documentation.
2000-02-12 13:07:59 +00:00
Sven Neumann e01d964527 made parasites use g* types and documented gimpchainbutton
--Sven
2000-02-12 02:16:59 +00:00
Nick Lamb /GIMP 0a6a2aa3ab Move Help menu as per gimp-devel. Try it and report back 2000-02-12 01:22:42 +00:00
Sven Neumann 183fa4a9bc in the info_window, use the colorpicker pixmap from the toolbox
--Sven
2000-02-11 21:32:37 +00:00
Sven Neumann 52776aa6d4 new splash, new logo -- time for a new release
--Sven
2000-02-11 19:26:50 +00:00
Sven Neumann 3720eaf049 spit out warnings when hitting a bad translation
--Sven
2000-02-11 17:02:13 +00:00
SHIRASAKI Yasuhiro 2cb98fb2f4 plug-ins/gap/gap_decode_xanim.c fixed typo.
* plug-ins/gap/gap_decode_xanim.c
        * plug-ins/gap/gap_lib.c: fixed typo.

        * app/app_procs.c: i18n fix.

	* po*/ja.po: updated Japanese translation.

-- yasuhiro
2000-02-11 09:02:03 +00:00
Sven Neumann 420aea17cb a quick hack to work qround a gtk+ bug
--Sven
2000-02-11 06:01:03 +00:00
Sven Neumann cfbe1bd61a removed g_serialize test
--Sven
2000-02-11 01:04:23 +00:00
Michael Natterer a90cc52db3 as all boolean query boxes are confirmations for deleting/closing
2000-02-10  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpquerybox.[ch]: as all boolean query boxes are
	confirmations for deleting/closing something, I added the "eek"
	wilber (you can still disable the pixmap by passing FALSE to the
	constructor's "eek" parameter).

	* app/app_procs.c
	* app/gdisplay_ops.c
	* app/gradient.c
	* app/palette.c
	* plug-ins/gflare/gflare.c: pass eek==TRUE to the boolean query
	box constructor.
2000-02-10 23:47:56 +00:00
Michael Natterer 9ffed65563 removed the query boxes.
2000-02-10  Michael Natterer  <mitch@gimp.org>

	* app/gimpui.[ch]: removed the query boxes.

	* po-libgimp/POTFILES.in
	* libgimp/Makefile.am
	* libgimp/gimpui.h
	* libgimp/gimpquerybox.[ch]: new files. Added a boolean query box
	to get rid of all those handmade "yes/no" query dialogs. Changed
	the query box callback prototypes to return the entered value
	instead of a pointer to it.

	* app/commands.c
	* app/display_ops.c
	* app/gradient.c
	* app/palette.c
	* app/paths_dialog.c: correctly call the new query box functions
	and use the boolean query box instead of inventing this wheel over
	and over again.

	* app/global_edit.[ch]: same as above and cleaned up the public
	interface.
2000-02-10 21:54:12 +00:00
Sven Neumann 4490df9145 app/gimage.c Invalidate the color_hash_table used for rgb->indexed
* app/gimage.c
 * app/paint_funcs.[ch]: Invalidate the color_hash_table used
   for rgb->indexed conversions if the colormap of the indexed
   image changes. Fixes bug #2683.

--Sven
2000-02-10 21:38:43 +00:00
Sven Neumann 1b0928ec7b fixed bug #6092
--Sven
2000-02-10 14:43:51 +00:00
Sven Neumann 630fe55d17 Cleaned up after Adam ;-)
* app/edit_selection.c: Finally moved selections snap to the
   guides again. Layer moves are slightly faster than before, if no
   guides are present.

 * app/gdisplay.c
 * app/gdisplay.h
 * app/gdisplayP.h: Use doubles for snap_to_point. Less rounding
   makes the result much better on low resolution. If it snaps, the
   result should be exactly the guide in almost all cases now. Only
   at very low resolutions, you may end up with an error of 1 pixel.
   Some code cleanup while I was on it... Fixes bug #2353.


--Sven
2000-02-10 14:23:11 +00:00
Marc Lehmann 287455a398 *** empty log message *** 2000-02-10 04:16:52 +00:00
Sven Neumann f10909b884 i18n fixes
--Sven
2000-02-10 01:59:52 +00:00
Michael Natterer 22f266494b you can now drag the active tool out of the tool options dialog title.
2000-02-10  Michael Natterer  <mitch@gimp.org>

	* app/tools.c: you can now drag the active tool out of the tool
	options dialog title. Added a tooltip.
2000-02-10 01:49:45 +00:00
Sven Neumann b20f154ac8 app/interface.c app/pixmaps2.h use new icons courtesy by Tigert.
* app/interface.c
 * app/pixmaps2.h
 * app/tools.c: use new icons courtesy by Tigert.

 * plug-ins/common/gauss_iir.c
 * plug-ins/common/gauss_rle.c
 * plug-ins/common/spread.c: enlarged maximum values

--Sven
2000-02-10 01:49:45 +00:00
Michael Natterer 9cb95b1949 Makefile.am new file.
2000-02-10  Michael Natterer  <mitch@gimp.org>

	* Makefile.am
	* pixmaps/wilber.xpm: new file.

	* libgimp/gimpdialog.[ch]: uncommented some lines. Depending on
	your window manager, you'll figure out what it does without having
	to look at the sources...

	* app/app_procs.c
	* app/gradient.c
	* app/menus.c: minor changes to bring the goodie above to all
	places. Did dome cleanups.

	* app/commands.c: I18N fix.

	* app/channels_dialog.c: removed an unused declaration.
2000-02-10 00:00:54 +00:00
Sven Neumann a29814cd0e an attempt to guard us against badly translated menu_entries which may
* app/menus.c: an attempt to guard us against badly translated
  menu_entries which may result in a crash when passed to
  gtk_item_factory_parse_path (). This might fix bug #6052.


--Sven
2000-02-09 17:39:40 +00:00
Sven Neumann d517927260 Use static GdkPixmaps in the image_window and for the tool icons.
--Sven
2000-02-08 23:45:20 +00:00
Michael Natterer 3a0da284c8 show our selection mode cursors (REPLACE, ADD, ...) depending on the
2000-02-08  Michael Natterer  <mitch@gimp.org>

	* app/by_color_select.c: show our selection mode cursors (REPLACE,
	ADD, ...) depending on the modifier state and the "Selection Mode"
	toggles in the tool's dialog.
2000-02-08 23:35:41 +00:00
Sven Neumann 6fe8e7ee61 unref gdk_pixmaps and gdk_bitmaps
cosmetics


--Sven
2000-02-08 20:48:48 +00:00
Michael Natterer d815bf5506 added a frame around all dnd previews. Fixed a memleak (GdkPixmap's must
2000-02-08  Michael Natterer  <mitch@gimp.org>

	* app/gimpdnd.[ch]: added a frame around all dnd previews. Fixed a
	memleak (GdkPixmap's must be gtk_pixmap_unref()'ed after adding
	them to a GtkPixmap).
2000-02-08 19:49:12 +00:00
Sven Neumann a1aeeda486 make it behave like the other non-toolbox tools
--Sven
2000-02-08 12:14:53 +00:00
Michael Natterer ef17866973 app/* libgimp/* plug-ins/* did a global s/GUnit/GimpUnit/ and
2000-02-07  Michael Natterer  <mitch@gimp.org>

	* app/*
	* libgimp/*
	* plug-ins/*
	* tools/pdbgen/*: did a global s/GUnit/GimpUnit/ and
	s/GimpSizeEntryUP/GimpSizeEntryUpdatePolicy/

	* libgimp/gimpcolorspace.c: renamed the parameter names to match
	the names in the header.

	* libgimp/gimphelpui.h
	* libgimp/gimpimage.c
	* libgimp/gimpmatrix.h
	* libgimp/gimpsizeentry.[ch]
	* libgimp/gimpsizeentry.[ch]
	* libgimp/gimpunit.[ch]
	* libgimp/gimpunitmenu.[ch]
	* libgimp/gimpwidgets.[ch]: added documentation and use g* types
	all over the place (enables cross-referencing with the glib and
	gtk+ html documentation).

	* plug-ins/common/exchange.c
	* plug-ins/common/max_rgb.c: small cleanups.

	* plug-ins/common/mapcolor.c: the color buttons were attached in
	the wrong order.
2000-02-07 20:35:13 +00:00
Sven Neumann 820c8f4109 got rid of "Shades of Colors" in the info_window
--Sven
2000-02-07 20:03:03 +00:00
Sven Neumann 4006d7f259 cleaned up the gtkrc situation (bug #5974)
--Sven
2000-02-07 19:06:18 +00:00
Sven Neumann 743aaa7dee fixed bug #6006
applied GAP patches


--Sven
2000-02-07 18:40:20 +00:00
Stanislav Brabec ce6050ad5f win32 purification, rgb<->hsv remove 2000-02-07 15:49:54 +00:00
Kelly Lynn Martin 77c44b21e1 restructured toolbox to use a single gtk_hwrap_box with the added "forced
2000-02-07  Kelly Lynn Martin  <kelly@poverty.bloomington.in.us>

	* app/interface.c: restructured toolbox to use a single
	gtk_hwrap_box with the added "forced break" functionality to make
	the selector boxes not run in with the rest of the tool buttons.
	The toolbox should now not cut things off, although if the user
	selects a really small toolbox the buttons or selectors may be,
	um, difficult to use...

	* app/gtkwrapbox.h:
	* app/gtkwrapbox.c:
	* app/gtkvwrapbox.c (reverse_list_col_children):
	* app/gtkhwrapbox.c (reverse_list_row_children): support for
	"forced break" functionality needed for toolbox -- will forward
	patches to Tim Janik as well
2000-02-07 10:51:08 +00:00
Tim Janik 827e9ddad7 pulled new sources from gle (containing a fix for kelly's justify==FILL
Mon Feb  7 05:04:28 2000  Tim Janik  <timj@gtk.org>

        * app/gtkhwrapbox.c:
        * app/gtkvwrapbox.c: pulled new sources from gle (containing
        a fix for kelly's justify==FILL bug).
2000-02-07 04:10:09 +00:00