gimp/app
Michael Natterer 99e78c7074 General cleanup of the selection tools and their PDB wrappers:
2001-10-22  Michael Natterer  <mitch@gimp.org>

	General cleanup of the selection tools and their PDB wrappers:

	* app/core/Makefile.am
	* app/core/gimpimage-contiguous-region.[ch]
	* app/core/gimpimage-mask-select.[ch]: new files providing a clean,
	uniform API for the selection functionalities. Changed order of
	parameters to be consistent, removed code duplication.

	The region returned by the "by_color" function is not really
	contiguous but the API is so similar to "by_seed" and it's used
	in the same context so it's fair enough to put them together.

	Also, I'm not sure if the two is_pixel_sufficiently_different()
	I've optimized away were meant to do *exactly* the same. Added
	a comment there to remember the former difference.

	* app/core/gimpchannel.[ch] (gimp_channel_feather): removed the
	"output" channel parameter and made it optionally push an undo
	(like the other channel operations do).

	* app/core/gimpimage-mask.c: call gimp_channel_feather() with
	"push_undo == TRUE", removed some useless comments.

	* app/tools/gimpbycolorselecttool.[ch]
	* app/tools/gimpellipseselecttool.[ch]
	* app/tools/gimpfreeselecttool.[ch]
	* app/tools/gimpfuzzyselecttool.[ch]
	* app/tools/gimprectselecttool.[ch]: removed all the actual
	selection functionality and call the new gimp_image_mask_select_*()
	and gimp_image_contiguous_region_*() functions instead.

	* app/tools/gimpbezierselecttool.c
	* app/tools/gimpiscissorstool.c: use new function
	gimp_image_mask_select_channel() instead of doing the same manually.

	* app/tools/gimpbucketfilltool.c: find_contiguous_region() ->
	gimp_image_contiguous_region_by_seed().

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/groups.pl
	* tools/pdbgen/pdb/selection_tools.pdb: added new group "Selection
	Tools" which depends only on "core/" stuff (not on "tools/" any
	more, brrrr).

	* tools/pdbgen/pdb/text_tool.pdb: don't include "appenv.h"

	* tools/pdbgen/pdb/tools.pdb: removed the selection tools.

	* app/pdb/Makefile.am
	* app/pdb/selection_tools_cmds.c: new file.

	* app/pdb/internal_procs.c
	* app/pdb/text_tool_cmds.c
	* app/pdb/tools_cmds.c: regenerated.

	* libgimp/Makefile.am
	* libgimp/gimp_pdb.h
	* libgimp/gimpselectiontools_pdb.[ch]: new files.

	* libgimp/gimptools_pdb.[ch]: regenerated

	Misc cleanups:

	* app/app_procs.c: call splash_create() with "no_splash_image"
	as parameter.

	* app/display/gimpdisplay-render.c
	* app/display/gximage.c: don't include "appenv.h".

	* app/gui/gui.c: call session_restore() only if "restore_session"
	is TRUE.

	* app/gui/session.c: don't "if(restore_session)" here and don't
	include "appenv.h"

	* app/gui/splash.[ch]: added "gboolean show_image" parameter to
	splash_create(), don't include "appenv.h"

	* app/tools/gimppainttool.[ch]: added a "GimpGradient" parameter
	to gimp_paint_tool_get_color_from_gradient().

	* app/tools/gimppaintbrushtool.c: pass the gradient.

	* app/tools/gimpselectiontool.c
	* app/tools/gimptransformtool.c
	* app/tools/tool_manager.c: s/GDisplay/GimpDisplay/.

	* app/widgets/gimpcontainergridview.[ch]: removed the "white_style"
	class variable and don't fiddle around with colors and styles...

	* themes/Default/gtkrc: ...do the same here with a simple rc style.
2001-10-22 12:13:44 +00:00
..
actions link the app in a different order as some init functions are called from 2001-10-19 16:41:09 +00:00
arch/i386/mmx app/Makefile.am app/detect_mmx.S app/arch/i386/mmx/detect_mmx.S 2001-04-02 17:19:41 +00:00
base app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
core General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
dialogs app/Makefile.am removed. 2001-10-18 17:27:36 +00:00
display General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
file added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. 2001-08-29 17:48:28 +00:00
gui General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
menus link the app in a different order as some init functions are called from 2001-10-19 16:41:09 +00:00
paint General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
paint-funcs added GTK_DISABLE_COMPAT_H back to CPPFLAGS. 2001-08-01 00:35:59 +00:00
pdb General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
plug-in link the app in a different order as some init functions are called from 2001-10-19 16:41:09 +00:00
tools General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
widgets General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
xcf app/Makefile.am removed. 2001-10-18 17:27:36 +00:00
.cvsignore shut up CVS 2000-08-26 12:52:38 +00:00
Makefile.am link the app in a different order as some init functions are called from 2001-10-19 16:41:09 +00:00
airbrush.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
app_procs.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
app_procs.h link the app in a different order as some init functions are called from 2001-10-19 16:41:09 +00:00
appenv.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
batch.c added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. 2001-08-29 17:48:28 +00:00
batch.h seems Mathieu messed up the last commit :) Added these two files back from 2001-07-18 00:24:07 +00:00
colormaps.c added -DGDK_DISABLE_DEPRECATED. 2001-09-03 13:03:34 +00:00
colormaps.h added -DGDK_DISABLE_DEPRECATED. 2001-09-03 13:03:34 +00:00
devices.c require GTK+-1.3.8 and PangoFT2-0.19. 2001-09-19 14:42:35 +00:00
devices.h app/devices.h app/disp_callbacks.c applied a patch from 2001-08-19 11:21:48 +00:00
docindex.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
docindex.h app/devices.c app/disp_callbacks.c app/docindex.[ch] app/file-save.c 2001-07-29 14:09:50 +00:00
errors.c require GTK+-1.3.8 and PangoFT2-0.19. 2001-09-19 14:42:35 +00:00
errors.h app_procs.c errors.c errors.h file-save.c gdisplay.c module_db.c use 2001-07-25 01:03:43 +00:00
file-open.c added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
file-open.h app/Makefile.am removed. 2001-07-07 12:17:23 +00:00
file-save.c added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
file-save.h Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning) 2001-07-24 21:27:11 +00:00
file-utils.c added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. 2001-08-29 17:48:28 +00:00
file-utils.h added RunModeType. removed RunModeType. don't scan app/plug_in.h for 2001-04-28 15:11:29 +00:00
floating_sel.c app/appenv.h removed "use_mmx" and the MMX detection. 2001-07-13 19:25:34 +00:00
floating_sel.h app/Makefile.am new file with one set of functions... 2001-01-29 13:51:23 +00:00
gdisplay_color.c app/app_procs.c app/datafiles.c app/devices.c app/docindex.c 2001-05-21 20:30:16 +00:00
gdisplay_color.h Last-minute cleanup: 2000-12-16 21:37:03 +00:00
gdisplay_color_ui.c set style properties for dockables. 2001-08-03 19:43:19 +00:00
gdisplay_color_ui.h fill dummy gimage->base_type as well 2000-01-03 07:49:19 +00:00
general.c removed search_in_path() and the unused xstrsep(). 2001-05-16 18:09:45 +00:00
general.h removed search_in_path() and the unused xstrsep(). 2001-05-16 18:09:45 +00:00
gimp.rc Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00
gimp.sym Update to match Unix version. 2000-05-28 23:46:16 +00:00
gimphelp.c added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
gimphelp.h app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h 2000-12-29 15:22:01 +00:00
gimpprogress.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpprogress.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimprc.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimprc.h added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. 2001-08-29 17:48:28 +00:00
image_map.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
image_map.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
libgimp_glue.c app/Makefile.am app/gimpunit.c removed... 2001-07-11 12:39:49 +00:00
libgimp_glue.h removed the gimp_busy boolean, check whether user_installation is needed 2001-07-10 19:16:16 +00:00
main.c HACKING Makefile.am acconfig.h autogen.sh use AM_GLIB_GNU_GETTEXT. Since 2001-09-27 15:33:53 +00:00
makefile.mingw.in disabled display filters code, since it is unfinished 2000-12-24 20:27:04 +00:00
makefile.msc need to link with pangof2 2001-09-22 19:47:27 +00:00
nav_window.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
nav_window.h major cleanup. After being finished, I decided that it needs to be 2001-06-18 13:10:03 +00:00
ops_buttons.c app/docindex.c more GObject porting. 2001-07-29 08:37:43 +00:00
ops_buttons.h app/docindex.c more GObject porting. 2001-07-29 08:37:43 +00:00
paint_core.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
paint_options.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
path.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
path.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
pathP.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
path_bezier.c app/Makefile.am removed. 2001-05-09 22:34:59 +00:00
path_bezier.h app/Makefile.am app/apptypes.h app/path_bezier.[ch] app/path_curves.[ch] 2001-04-07 14:55:39 +00:00
path_curves.c s/USE_GCC_INTEL_MMX/HAVE_ASM_MMX/ 2001-05-19 16:09:41 +00:00
path_curves.h app/path_curves.[ch] app/tools/gimpdrawtool.c app/tools/gimppathtool.[ch] 2001-04-11 13:28:53 +00:00
path_transform.h Introduced GimpPaintTool and GimpDrawTool 2001-02-27 05:21:12 +00:00
plug_in.c link the app in a different order as some init functions are called from 2001-10-19 16:41:09 +00:00
plug_in.h link the app in a different order as some init functions are called from 2001-10-19 16:41:09 +00:00
plug_in_cmds.c Garry R. Osgood <grosgood@rcn.com> 2001-03-11 13:15:41 +00:00
qmask.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
qmask.h eek, my last change changed the width of all GtkRange subclasses, not only 2001-07-31 16:55:59 +00:00
transform_core.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
undo.c link the app in a different order as some init functions are called from 2001-10-19 16:41:09 +00:00
undo.h app/apptypes.h app/channel_ops.c app/commands.c app/convert.[ch] 2001-03-08 02:01:52 +00:00
undo_history.c added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. 2001-08-29 17:48:28 +00:00
undo_history.h app/Makefile.am new file. 2001-01-29 02:45:02 +00:00
undo_types.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
user_install.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
user_install.h removed the gimp_busy boolean, check whether user_installation is needed 2001-07-10 19:16:16 +00:00
wilber.ico Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00