1. 21 Feb, 2002 1 commit
    • Michael Natterer's avatar
      return the corrent value in g_retuen_val_if_fail(). · 5153abaf
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpdrawtool.c: return the corrent value in
      	g_retuen_val_if_fail().
      
      	* app/tools/gimppainttool.c: removed some more painting logic...
      
      	* app/paint/gimppaintcore.[ch]: ...and added it here so the PDB
      	wrappers can use it too. Added "gboolean use_pressure" which needs
      	to be set by GimpPaintTool so we don't need access to GdkDevices.
      5153abaf
  2. 20 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Implemented #10125 ("quick" colour picker does not honour "sample merged") · a49635e2
      Michael Natterer authored
      2002-02-20  Michael Natterer  <mitch@gimp.org>
      
      	Implemented #10125 ("quick" colour picker does not honour
      	"sample merged")
      
      	* app/tools/gimpcolorpickertool.[ch]: made definition of
      	GimpColorPickerToolOptions public.
      
      	* app/tools/gimppainttool.c: get the color picker's tool_options
      	and pick colors accordingly. Also draw a rectangle for
      	"sample_average".
      a49635e2
  3. 18 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/tools/tools-types.h chain up unconditionally in control(), · bec4c725
      Michael Natterer authored
      2002-02-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-types.h
      	* app/tools/*.[ch]: chain up unconditionally in control(),
      	s/ToolAction/GimpToolAction/g, s/ToolState/GimpToolState/g.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c: don't touch tool->paused_count
      	(setting it to 0 was a hack which should no longer be needed).
      
      	* app/tools/gimpdrawtool.c: check if the draw tool has actually
      	been started (draw_tool->gdisp != NULL) before calling it's
      	draw() function.
      
      	* app/tools/tool_manager.c: simplified tool_manager_control_active():
      	simply call gimp_tool_control() if gdisp == tool->gdisp.
      
      	* app/tools/gimptool.[ch]: gimp_tool_control(): do all the PAUSE,
      	RESUME and HALT voodoo here.
      
      	* app/tools/gimppainttool.c: implemented #9902 (Drawing straight
      	lines does not work between different views). It's an evil hack,
      	but clearly marked in the source.
      bec4c725
  4. 17 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Fixed #34633 (wheel mouse zooming leaves straigth-line helpline on image) · 2ccbf2a4
      Michael Natterer authored
      2002-02-17  Michael Natterer  <mitch@gimp.org>
      
      	Fixed #34633 (wheel mouse zooming leaves straigth-line helpline on
      	image) and maybe some other stuff caused by the misbehaviour
      	described below:
      
      	* app/tools/tools-types.h
      	* app/tools/tool_manager.c (tool_manager_control_active):
      
      	Removed the "PAUSED" ToolState.
      
      	The possible state transitions were INACTIVE <-> ACTIVE <-> PAUSED,
      	where the ACTIVE <-> PAUSED transition was done only in the
      	tool_manager, causing the tools's control() never to be called
      	when the tool was INACTIVE.
      
      	The GimpPaintTool however wants to draw on the display when it's
      	INACTIVE, and of course wants to be suspended/resumed correctly
      	while fiddling with display repainting/scaling/...
      
      	The PAUSED state was also redundant information, since
      	(tool->paused_count > 0) is the same information (only more
      	correct and independent of tool activity).
      
      	* app/display/gimpdisplayshell-scale.[ch]: suspend/resume the
      	active tool around _all_ changes to the display's "scale" and
      	"offset" fields.  Added new function
      	gimp_display_shell_scale_by_values() which does that and is called
      	from all places which need to change these values.
      
      	* app/tools/gimpmagnifytool.c: changed accordingly.
      
      	Unrelated stuff:
      
      	* app/paint/gimpairbrush.c: added a #warning FIXME.
      
      	* app/tools/gimpdrawtool.c: made a warning more verbose.
      
      	* app/tools/gimppainttool.c: put one more drawable offset
      	calculation in { .. }, will make a utility function out of it...
      2ccbf2a4
  5. 15 Feb, 2002 1 commit
    • Michael Natterer's avatar
      added back the handler which invalidates the display_title on dirty/clean. · 72284d38
      Michael Natterer authored
      2002-02-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-handlers.c: added back the handler
      	which invalidates the display_title on dirty/clean. Removing it
      	was simply wrong.
      
      	* app/display/gimpdisplayshell-scale.c: don't call
      	gimp_display_shell_update_title() directly but set
      	shell->title_dirty to TRUE before calling gdisplays_flush().
      
      	* app/paint/gimppaintcore.[ch]: added gimp_paint_core_constrain()
      	which does the "snap to 15 degrees" stuff formerly done in
      	GimpPaintTool. Call gimp_brush_select_brush() in
      	gimp_paint_core_paint() if paint_state == MOTION, not in several
      	other places.  Reordered functions, added some comments and
      	documentation.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c:
      	s/CORE_CAN_HANDLE_CHANGING_BRUSH/CORE_HANDLES_CHANGING_BRUSH/g,
      	minor cleanup.
      
      	* app/pdb/pdb-types.h: include "paint/paint-types.h"
      
      	* app/tools/gimppainttool.[ch]: use gimp_paint_core_constrain(),
      	removed paint_tool->state because it's not needed any more,
      	lots of cleanup.
      
      	* tools/pdbgen/app.pl: another eeky special case for "paint/".
      
      	* tools/pdbgen/pdb/paint_tools.pdb: include stuff from "paint/",
      	not "tools/".
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      72284d38
  6. 14 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Core/UI separation for the paint tools: · dca988f7
      Michael Natterer authored
      2002-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Core/UI separation for the paint tools:
      
      	* configure.in
      	* app/Makefile.am
      	* app/paint/.cvsignore
      	* app/paint/Makefile.am: added new directory for the paint methods
      	without GUI and tools around them.
      
      	* app/paint/paint-types.h: typedefs for this module.
      
      	* app/paint/gimppaintcore-kernels.h
      	* app/paint/gimppaintcore.[ch]: the general paint logic taken
      	from GimpPaintTool.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.[ch]
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: subclasses of GimpPaintCore,
      	implementing their own paint() methods.  Needs more hacking
      	to get the GtkWidget pointers out of the options structs.
      
      	* app/tools/gimppainttool_kernels.h: removed.
      
      	* app/tools/tools-types.h: removed the paint tool enums.
      
      	* app/tools/gimpairbrushtool.[ch]
      	* app/tools/gimpclonetool.[ch]
      	* app/tools/gimpconvolvetool.[ch]
      	* app/tools/gimpdodgeburntool.[ch]
      	* app/tools/gimperasertool.[ch]
      	* app/tools/gimppaintbrushtool.[ch]
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimppenciltool.[ch]
      	* app/tools/gimpsmudgetool.[ch]: all paint tools are pure GUI
      	things now.  PaintOptions and friends still need to be chopped up
      	though...
      
      	* app/undo.c: changed PaintUndo to GimpPaintCoreUndo, some minor
      	cleanup.
      
      	* tools/kernelgen.c: changed accordingly.
      
      	* tools/pdbgen/Makefile.am: scan paint/paint-types.h for enums.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: hardcode "success = FALSE" for
      	all paint PDB wrappers.  The non-gui stuff is completely broken.
      	More commits to come...
      
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      dca988f7
  7. 13 Feb, 2002 1 commit
    • Michael Natterer's avatar
      moved all global variables into the GimpPaintTool structure so they have a · dac875d3
      Michael Natterer authored
      2002-02-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimppainttool.[ch]: moved all global variables into
      	the GimpPaintTool structure so they have a proper lifecycle and
      	it's easier to move them to the upcoming GimpPaintCore (??)
      	object.
      
      	* app/tools/gimppainttool_kernels.h
      	* tools/kernelgen.c: s/SUBSAMPLE/KERNEL_SUBSAMPLE/
      dac875d3
  8. 07 Feb, 2002 1 commit
    • Michael Natterer's avatar
      made the gimp_object_get_memsize() debugging output configurable by a · 758de05b
      Michael Natterer authored
      2002-02-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpobject.c: made the gimp_object_get_memsize()
      	debugging output configurable by a global "gimp_debug_memsize"
      	boolean.
      
      	* app/display/gimpdisplay.c: removed duplicated prototype.
      
      	* app/display/gimpdisplayshell.[ch]: renamed the various cursor
      	functions to be more consistent and shorter. Compress window title
      	updates by adding a "gboolean title_dirty" and updating the title
      	in gimp_display_shell_flush().  Added "%m" (memory size) to the
      	possible title string substitutions.
      
      	* app/display/gimpdisplay-foreach.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimptool.c: changed accordingly.
      
      	* app/display/gimpdisplayshell-callbacks.c: forgot to grab the
      	pointer when dragging guides from the rulers. Coincidentially,
      	this also fixes the buggy offset between guide and mouse
      	pointer...
      	Cleaned up the main tool event callback a but more.
      
      	* app/widgets/gimppreview.c
      	* app/gui/commands.c: set the new global "gimp_debug_memsize"
      	toggle to TRUE while calling gimp_object_get_memsize().
      
      	* app/gui/preferences-dialog.c: added a image title example
      	containing the new "%m" feature.
      
      	* docs/gimprc-1.3.5.in: document "%m" in the manpage.
      
      	* app/tools/gimpbezierselecttool.c: reordered some statements.
      
      	* app/tools/gimpdrawtool.[ch]: store the GimpDisplay passed to
      	gimp_draw_tool_start() in draw_tool->gdisp and use it for
      	coordinate transfomration. This way we can paint on a display
      	which is not tool->gdisp.
      
      	* app/tools/gimppainttool.c: changed the gimp_draw_tool_foo()
      	calls needed to make the straight_line preview work in a way
      	that does not interfere with paint_tool subclasses which want
      	to do their own drawing (like the clone tool).
      
      	Also changed the paint_tools PRETRACE_PAINT and POSTTRACE_PAINT
      	flags usage in a way that subclasses can use them without major
      	hackery: don't simply wrap gimp_display_flush_now() with
      	PRETRACE/POSTTRACE calls, but wrap the actual painting calls, so
      	subclasses are able to do useful things with paint_tool->*_coords.
      
      	* app/tools/gimpclonetool.c: removed poking around in draw_tool
      	internals and simply suspend()/resume() it in
      	PRETRACE_PAINT/POSTTRACE_PAINT to get the clone_src indicator
      	drawn correctly.
      758de05b
  9. 05 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Removed pointer grabbing from all tools: · 967d3e4e
      Michael Natterer authored
      2002-02-05  Michael Natterer  <mitch@gimp.org>
      
      	Removed pointer grabbing from all tools:
      
      	* app/tools/gimptool.[ch]: added "gboolean perfectmouse" which
      	defaults to FALSE but can be set to TRUE in a tool's instance_init
      	function.
      
      	* app/display/gimpdisplayshell-callbacks.c: look at
      	active_tool->perfectmouse and gimprc.perfectmouse and do the
      	pointer grab/ungrab here. The pointer is now grabbed right before
      	dispatching the button_press to the tool and ungrabbed after
      	the tool's button_release has returned. It is also grabbed
      	*always*, not only if tool->state got ACTIVE by button_press,
      	which makes it all much simpler...
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c: removed
      	gdk_pointer_grab()/ungrab() calls all over the place. Also removed
      	inclusion of "display/gimpdisplayshell.h" from most of them.
      967d3e4e
  10. 04 Feb, 2002 1 commit
    • Michael Natterer's avatar
      added fields for both the tool's toggled and untoggled GdkCursorType, · 989d80e7
      Michael Natterer authored
      2002-02-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.[ch]: added fields for both the tool's
      	toggled and untoggled GdkCursorType, GimpToolCursorType and
      	GimpCursorModifier. Added a default implementation of
      	gimp_tool_cursor_update() which uses the new fields. Added
      	gimp_tool_set_cursor() as simple wrapper around the resp.
      	GimpDisplayShell functions so tools don't need to know them.
      
      	Tool implementations can either set the new fields in their
      	cursor_update() function and chain up or call the new wrapper.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimppathtool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c: changed accordingly:
      
      	- set default values in the tools' instance_init functions.
      	- changed the cursor_update() stuff.
      	- removed inclusion of subclasses in gimppainttool.c
      	- the cursor_update() functions are better than before but still evil.
      	- i probably broke some of them...
      989d80e7
  11. 03 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/display/Makefile.am app/display/display-types.h new widget derived · 0440bbbf
      Michael Natterer authored
      2002-02-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/display/gimpstatusbar.[ch]: new widget derived from
      	GtkStatusbar.  Contains the coordinates display, a progress bar
      	which is also used for status message display and a cancel button.
      	Added a simplified API for pushing/popping messages which takes a
      	string as context_id and does the conversion to guint internally
      	on each call.
      
      	* app/display/gimpdisplayshell.[ch]: removed the status bar code.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/gui/view-commands.c
      	* app/gimpprogress.c: changed accordingly.
      
      	Removed knowledge about GimpDisplayShell from tools:
      
      	* app/tools/gimptool.[ch]: added gimp_tool_push_status() and
      	gimp_tool_pop_status() so tools don't need to fiddle with
      	display details.
      
      	* app/tools/gimpdrawtool.[ch]: pass a GimpDisplay instead of
      	a GdkWindow to gimp_draw_tool_start() (the window passed was
      	always gdisp->shell->canvas->window).
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.[ch]
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.[ch]
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.[ch]
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimppathtool.c
      	* app/tools/gimprectselecttool.[ch]
      	* app/tools/gimptransformtool.c: changed accordingly:
      
      	- pass GimpDisplay to gimp_draw_tool_start().
      	- use GimpTool's new status push/pop functions.
      	- removed the statusbar context_id from all tool structs.
      
      	* app/gui/dialogs-constructors.[ch]: a bit cleanup in preparation
      	of dockable editor dialogs.
      0440bbbf
  12. 12 Dec, 2001 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new files. · 1bc1419e
      Michael Natterer authored
      2001-12-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-pick-color.[ch]: new files.
      
      	gimp_image_pick_color() doesn't set the FG or BG color and doesn't
      	touch the current palettte.
      
      	* app/tools/gimpcolorpickertool.[ch]: removed the actual picking
      	code, set the user_context's FG or BG color here.
      
      	* app/gui/palette-editor.[ch]:
      	s/palette_set_active_color/palette_editor_update_color/, don't set
      	the FG and BG color here. The function is still #if 0'ed.
      
      	* app/gui/toolbox.c: fixed WM resize hints in toolbox_style_set(),
      	code cleanup.
      
      	* app/tools/gimppainttool.[ch]: some cleanup before chopping.
      
      	* app/tools/gimpsmudgetool.c: changed accordingly.
      
      	* tools/pdbgen/pdb/misc_tools.pdb: removed the possibility to set
      	the FG or BG color or add the picked color to the active palette
      	bacause it doesn't belong here. Palette PDB wrappers are on the
      	TODO anyway.
      
      	* app/pdb/misc_tools_cmds.c
      	* libgimp/gimpmisctools_pdb.[ch]: regenerated.
      
      	* plug-ins/perl/examples/image_tile
      	* plug-ins/perl/examples/logulator
      	* plug-ins/script-fu/scripts/hsv-graph.scm
      	* plug-ins/script-fu/scripts/title-header.scm: changed accordingly.
      1bc1419e
  13. 11 Dec, 2001 1 commit
    • Sven Neumann's avatar
      removed GimpImageBaseType enum ... · a611f063
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-types.h: removed GimpImageBaseType enum ...
      
      	* app/core/core-enums.h: and added it here with proper namespace
      	(enum values prefixed with GIMP_).
      
      	* app/gimprc.c
      	* app/core/gimpcoreconfig.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/gui/colormap-dialog.c
      	* app/gui/convert-dialog.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimppainttool.c
      	* app/widgets/gimpchannellistview.c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/convert_cmds.c
      	* app/pdb/image_cmds.c
      	* libgimp/gimpconvert_pdb.c
      	* libgimp/gimpimage_pdb.c: regenerated.
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-params.h
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpcoreconfig.[ch]: added more stuff to GimpCoreConfig.
      a611f063
  14. 08 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/core/Makefile.am new file that holds enums that are registered with · a65e1a39
      Sven Neumann authored
      2001-12-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-enums.h: new file that holds enums that are registered
      	with the type system and is used to generate core-enums.c.
      
      	* app/core/core-types.h: include core-enums.h
      
      	* app/base/base-types.h: namespace cleanup. Prefix all enumeration
      	types with Gimp and their values with GIMP. Moved GimpLayerModeEffects
      	enum ...
      
      	* app/base/base-enums.h: ... here.
      
      	* app/image_map.c
      	* app/base/temp-buf.c
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/brush-select.c
      	* app/gui/layers-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/paint-funcs/paint-funcs.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimptexttool.c
      	* app/tools/paint_options.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimpwidgets-constructors.[ch]
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      
      	* libgimpbase/gimpbasetypes.h: no need to chop GIMP prefix off the
      	enums any longer.
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/gimprc.c: removed code to parse for "plug_in" keyword which was
      	left over from some very early gimp days.
      
      	* app/plug-in/plug-in.[ch]: removed now unused function plug_in_add().
      a65e1a39
  15. 07 Dec, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed, chopped... · bcd208d9
      Michael Natterer authored
      2001-12-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/devices.[ch]: removed, chopped...
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/gui/Makefile.am
      
      	* app/widgets/gimpdeviceinfo.[ch]
      	* app/widgets/gimpdevices.[ch]
      	* app/gui/device-status-dialog.[ch]
      	* app/gui/input-dialog.[ch]: ...and added here.
      
      	Made GimpToolInfo a GimpContext subclass. Create a GimpDeviceManager
      	struct in gimpdevices.c and attach it to the Gimp instance.
      
      	* app/core/gimp.[ch]: removed gimp_create_context(). It was a bad
      	idea in the first place beause it prevented GimpContext subclasses
      	from being be properly registered with their Gimp instance.
      
      	* app/core/gimpcontext.c: moved the stuff which used to be in
      	gimp_create_context() back here. Added a "gimp" property which
      	must be set on construction. Added a "dispose" implementation
      	which removes the context from it's Gimp's context_list.
      
      	* app/gimprc.c
      	* app/core/gimptoolinfo.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/toolbox.c
      	* app/tools/gimppainttool.c
      	* app/tools/tool_manager.c
      	* app/widgets/gimpimagedock.c: changed accordingly.
      
      	* app/gui/tools-commands.[ch]: made all callback signatures
      	the same.
      
      	* app/gui/preferences-dialog.c: cleaned up the
      	display_format_string GtkCombo code.
      bcd208d9
  16. 01 Dec, 2001 2 commits
    • Michael Natterer's avatar
      forgot a "return". · 6d0e5c34
      Michael Natterer authored
      2001-12-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/errors.c: forgot a "return".
      
      	* app/gui/error-console-dialog.c: the menu item signals were
      	connected "swapped", which is wrong.
      
      	* app/tools/gimperasertool.c: added a cursor_update_func(), update
      	the "toggled" state there and chain up. Fixes wrong cursor
      	updating.
      
      	Made brush_pipe slection work again, removed the #warnings:
      
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushpipe.c: changed brush_class->select_brush()
      	and brush_class->want_null_motion() to be proper virtual
      	functions. Pass last_coords and cur_coords to them.
      
      	* app/tools/gimppainttool.c: call the functions again.
      6d0e5c34
    • Michael Natterer's avatar
      app/main.c moved "message_handler" from here... · f77c7ade
      Michael Natterer authored
      2001-12-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/main.c
      	* app/appenv.h: moved "message_handler" from here...
      
      	* app/core/gimp.[ch]: ...to here. Added gimp_message() and a
      	"gui_message_func" pointer...
      
      	* app/gui/gui.c: ...which gets set here to gui_message().
      
      	* app/errors.c: don't include any gui stuff but simply call
      	gimp_message().
      
      	* app/app_procs.c: don't set "message_handler" here, it's done in
      	gui.c now.
      
      	* app/gui/error-console-dialog.[ch]: use gimp->message_handler.
      
      	* app/gui/dialogs-constructors.c: pass a Gimp pointer to
      	error_console_create().
      
      	* app/widgets/gimpwidgets-utils.[ch]: made the "message" parameter
      	of gimp_message_box() a const gchar*, not just gchar*.
      
      	* tools/pdbgen/pdb/message.pdb: use gimp->message_handler, don't
      	include "appenv.h".
      
      	* app/pdb/message_cmds.c: regenerated.
      
      	* app/devices.[ch]: cleanup before chopping: removed global
      	variable "current_device", added devices_get_current(), pass lots
      	of Gimp pointers around.
      
      	* app/gimprc.c: pass a Gimp pointer to devices_rc_update().
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/toolbox.c
      	* app/tools/gimppainttool.c: use devices_get_current(), pass Gimp
      	pointers to all devices_foo() functions.
      
      	* app/core/gimpimage-mask.c: no need to include "pdb/pdb-types.h".
      f77c7ade
  17. 28 Nov, 2001 1 commit
    • Michael Natterer's avatar
      s/gimage_mask/gimp_image_mask/g · f7bbdc3e
      Michael Natterer authored
      2001-11-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: s/gimage_mask/gimp_image_mask/g
      
      	* app/floating_sel.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/display/gimpdisplayshell-qmask.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/select-commands.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      f7bbdc3e
  18. 20 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/tools/gimpdrawtool.[ch] app/tools/gimppainttool.[ch] · 9ceb205c
      Michael Natterer authored
      2001-11-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpdrawtool.[ch]
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimprectselecttool.[ch]
      	* app/tools/gimptool.[ch]
      	* app/tools/gimptransformtool.[ch]: use simple virtual functions
      	instead of signals for all tools because they are much faster and
      	don't need to be signals at all.
      9ceb205c
  19. 15 Nov, 2001 1 commit
    • Michael Natterer's avatar
      restructured the new draw utility functions and added · f901b46d
      Michael Natterer authored
      2001-11-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpdrawtool.[ch]: restructured the new draw utility
      	functions and added gimp_draw_tool_draw_handle() and
      	gimp_draw_tool_on_handle().
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpcroptool.[ch]
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimptransformtool.c: use the new functions all over
      	the place so handle drawing and mouse_over detection work the same
      	for all tools.
      f901b46d
  20. 13 Nov, 2001 1 commit
    • Michael Natterer's avatar
      use GimpCoords structs for cur_coords, last_coords and start_coords and · 6ed75230
      Michael Natterer authored
      2001-11-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimppainttool.[ch]: use GimpCoords structs for
      	cur_coords, last_coords and start_coords and the undo struct
      	instead of storing separate gdouble values.
      
      	* app/undo.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpsmudgetool.c: changed accordingly.
      6ed75230
  21. 12 Nov, 2001 1 commit
    • Michael Natterer's avatar
      use gimp_display_shell_[install|remove]_override_cursor() to set the · 242b9041
      Michael Natterer authored
      2001-11-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c: use
      	gimp_display_shell_[install|remove]_override_cursor() to set the
      	middle mouse button move cursor so we get the original cursor back
      	after scrolling.
      
      	* app/tools/gimpdrawtool.[ch]: added lots of drawing functions
      	(gimp_draw_tool_draw_rectangle() etc.) which work in image (or
      	active drawable) coordinates.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.[ch]
      	* app/tools/path_tool.[ch]: use the new functions. Removed tons of
      	gdk_draw_foo() and gdisplay_transform_foo() calls. Most drawing
      	functions look *much* nicer now. Ported some tools to detect
      	handle clicks in display coordinates while I was on it, misc
      	fixes.
      
      	* app/tools/gimpmovetool.[ch]: derive from GimpDrawTool instead
      	of drawing manually.
      242b9041
  22. 10 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/display/gimpdisplay-marching-ants.h removed... · 8dac8949
      Michael Natterer authored
      2001-11-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplay-marching-ants.h
      	* app/display/gimpdisplay-selection.[ch]: removed...
      
      	* app/display/gimpdisplayshell-marching-ants.h
      	* app/display/gimpdisplayshell-selection.[ch]: ...new names.
      
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]: moved the Selection stuff
      	from GimpDisplay to GimpDisplayShell.
      
      	Renamed all functions which will stay in GimpDisplay from
      	gdisplay_foo() to gimp_display_foo(). Added gimp_display_get_ID(),
      	cleaned up the idle renderer.
      
      	* app/image_map.c
      	* app/plug_in.c
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-foreach.[ch]
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/gui/gui.c
      	* app/gui/view-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* tools/pdbgen/pdb.pl: changed accordingly, cleanup.
      
      	* app/pdb/display_cmds.c: regenerated.
      8dac8949
  23. 08 Nov, 2001 1 commit
    • Michael Natterer's avatar
      build display/ before tools/. · 02fde14c
      Michael Natterer authored
      2001-11-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am: build display/ before tools/.
      
      	* app/devices.c: devices_check_change(): added all events
      	which have a GdkDevice pointer.
      
      	* app/gimpprogress.c: include "display-types.h" instead of
      	"core-types.h".
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-bucket-fill.[ch]: new files: the bucket_fill
      	stuff taken from tools/gimpbucketfilltool.[ch].
      
      	* app/core/core-types.h: added "BucketFillMode".
      
      	* app/core/gimpimage-mask-select.[ch]: cleanup.
      
      	* app/core/gimpmarshal.list: added more marshallers for GimpTool's
      	new signal signatures.
      
      	* app/core/gimpmarshal.[ch]: regenerated.
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplayshell-dnd.[ch]
      	* app/display/gimpdisplayshell-layer-select.[ch]: new files: the
      	canvas drop callbacks from gimpdisplayshell-callbacks.[ch] and
      	the stuff formerly knows as gui/layer-select.[ch].
      
      	* app/display/gimpdisplay.h: don't include "gui/gui-types.h".
      
      	* app/display/gximage.c: include "display-types.h".
      
      	* app/display/gimpdisplay-foreach.c
      	* app/display/gimpdisplayshell.[ch]: call gdsplay_delete(), don't
      	destroy the shell widget.
      
      	* app/gui/Makefile.am
      	* app/gui/layer-select.[ch]: removed.
      
      	* app/gui/gradients-commands.c: fixed "Save as POV" fprintf()s.
      
      	* app/gui/preferences-dialog.c: removed the layer_select stuff
      	because it is useless with the new preview system.
      
      	* app/gui/tool-options-dialog.c: send the correct data to the
      	close_callback.
      
      	* app/gui/tools-commands.c: changed to follow the new
      	gimp_tool_initialize() semantics (see below).
      
      	Tool & canvas event handling chainsawing:
      
      	* app/tools/tools-types.h: new struct GimpCoords which contains
      	x, y, pressure, tilt etc.
      
      	* app/display/gimpdisplayshell-callbacks.[ch]: added utility
      	functions which transparently retreive the current event's
      	GimpCoords or take it from the device directly if the event has
      	none. Pass GimpCoords _in_image_coordinates_ to all tool
      	functions.
      
      	Most important: don't pass GdkEvents and display coordinates to
      	tools any more.
      
      	* app/tools/gimptool.[ch]: changed virtual functions to take
      	GimpCoords, time and state separately instead of GdkEvents.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.[ch]
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.[ch]
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.[ch]
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.[ch]
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.[ch]
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpselectiontool.[ch]
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.[ch]
      	* app/tools/path_tool.[ch]
      	* app/tools/selection_options.c: tons and tons of changes:
      
      	- changed to use the new virtual function parameters.
      	- removed zillions of gdisplay_untransform_coords().
      	- get the active drawable's offsets manually in many cases.
      	  (questionable, but IMHO ok because it's obvious and not simply a
      	  "TRUE" passed to some function)
      	- reordered some functions to be consistent across tools.
      	- some tools had to be changed to work on image coords, not
      	  display ones (esp. crop).
      	- fixed strange rotate tool behaviour which should be backported
      	  to stable.
      	- some stuff i came across.
      	- indentation and other paranoia.
      	- rounding of coordinated may be broken in some tools.
      	- new bugs guaranteed.
      
      	* app/tools/tool_manager.[ch]: new semantic of
      	tool_manager_initialize_active() (looked at the places where it
      	was used from and put common code together). Should be a bit
      	better now :)
      
      	* app/tools/gimpblendtool.c
      	* app/tools/transform_options.c: use the new GTK+ feature that a
      	widget (toggle button) can be a frame's title for this tools' tool
      	options.
      
      	* app/widgets/widgets-types.h: stuff.
      
      	* themes/Default/gtkrc: s/GtkDialog/GimpDialog/.
      
      	* tools/pdbgen/Makefile.am: don't scan tools/gimpbucketfilltool.h
      	any more.
      
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* tools/pdbgen/pdb/tools.pdb: changed bucket_fill wrapper.
      
      	* app/pdb/tools_cmds.c: regenerated.
      02fde14c
  24. 31 Oct, 2001 1 commit
  25. 29 Oct, 2001 1 commit
    • Michael Natterer's avatar
      Cleanup weekend... · 05e15eb1
      Michael Natterer authored
      2001-10-29  Michael Natterer  <mitch@gimp.org>
      
      	Cleanup weekend...
      
      	* app/app_procs.c: pass "no_interface" to gimp_new().
      
      	* app/core/gimp.[ch]: added "gboolean no_interface" and the
      	load_procs and save_procs GSLists.
      
      	* app/core/gimptoolinfo.[ch]: added a "Gimp" pointer to the
      	GimpToolInfo object so more functions find their context without
      	accessing the global "the_gimp" variable.
      
      	* app/display/display-types.h: removed the GDisplay -> GimpDisplay
      	typedef.
      
      	* app/display/gimpdisplay.c: look at gimp->no_interface, don't
      	include "appenv.h".
      
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]: don't use "the_gimp" any more. Instead,
      	pass around lots of "Gimp" pointers. Removed the global load_procs
      	and save_procs variables here. Use access() to find out whether a
      	file is readable/writable, removed the manual voodoo and it's
      	Win32 wrappers. Added an optional (can be NULL) "PlunInProcDef"
      	parameter to file_save(), removed file_save_with_proc().
      
      	* app/gui/menus.c: Use the unused "gpointer data" parameter of the
      	GtkItemFactory callbacks to pass a "Gimp" pointer to all of them.
      	This reduces the usage of the global "the_gimp" hack to zero
      	in app/gui/... yeah.
      
      	* app/gui/channels-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/palettes-commands.c
      	* app/gui/select-commands.c
      	* app/gui/test-commands.c
      	* app/gui/tools-commands.c
      	* app/gui/view-commands.c: use the passed "Gimp" pointer.
      
      	* app/gui/color-area.[ch]
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-new-dialog.[ch]
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]
      	* app/gui/gui.c
      	* app/gui/info-window.[ch]
      	* app/gui/module-browser.[ch]
      	* app/gui/palette-editor.c
      	* app/gui/palette-import-dialog.[ch]
      	* app/gui/paths-dialog.c
      	* app/gui/preferences-dialog.[ch]
      	* app/gui/resize-dialog.[ch]
      	* app/gui/tool-options-dialog.[ch]
      	* app/gui/toolbox.c: pass around lots more "Gimp" and
      	"GimpContext" pointers and don't use "the_gimp" any more.
      
      	* app/tools/gimptool.h: added a pointer to the corresponding
      	GimpToolInfo object (which in turn has a pointer to a Gimp).
      
      	* app/tools/tool_manager.[ch]: set the pointer after creating the
      	tool object. Removed tool_manager_get_info_by_tool() as there is a
      	tool->tool_info pointer now.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/path_tool.c
      	* app/tools/xinput_airbrush.c: s/GDisplay/GimpDisplay/g.
      	Use tool->tool_info and tool_info->gimp in some places to get
      	rid of using "the_gimp".
      
      	Removing the remaining ones involves changing the tool options
      	system and is scheduled next...
      
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c: pass a "Gimp" pointer to all
      	file_open_*() functions.
      
      	* app/gdisplay_color.[ch]
      	* app/gdisplay_color_ui.[ch]
      	* app/image_map.[ch]
      	* app/nav_window.[ch]
      	* app/path.c
      	* app/path_bezier.c
      	* app/path_transform.h
      	* app/qmask.[ch]: s/GDisplay/GimpDisplay/g
      
      	* tools/pdbgen/pdb/fileops.pdb: load_procs and save_procs are
      	members of the "Gimp" object now.
      
      	* tools/pdbgen/pdb/plug_in.pdb: use gimp->no_interface, don't
      	include "appenv.h".
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      05e15eb1
  26. 22 Oct, 2001 1 commit
    • Michael Natterer's avatar
      General cleanup of the selection tools and their PDB wrappers: · 99e78c70
      Michael Natterer authored
      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.
      99e78c70
  27. 13 Oct, 2001 1 commit
    • Michael Natterer's avatar
      gdk_pixbuf_new_from_stream -> _from_inline · 859e9c41
      Michael Natterer authored
      2001-10-13  Michael Natterer  <mitch@gimp.org>
      
      	* RELEASE-TO-CVS.patch: gdk_pixbuf_new_from_stream -> _from_inline
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-foreach.[ch]: new files for functions
      	operating on all displays (will go away as soon as the display
      	behaves like a proper view which doesn't need to be updated
      	explicitly).
      
      	* app/display/gimpdisplay-callbacks.c
      	* app/display/gimpdisplay-scale.[ch]
      	* app/display/gimpdisplay-scroll.[ch]
      	* app/display/gimpdisplay.[ch]: "scale" and "scroll" namespace
      	cleanup, moved bounds_checking() to gimpdisplay-scroll.[ch], lots
      	of unfinished, intermediate stuff.
      
      	* app/display/gimpdisplayshell.[ch]: added some GObject framework
      	for the GimpDisplayShell object (not used yet).
      
      	* app/app_procs.c
      	* app/docindex.c
      	* app/image_map.c
      	* app/nav_window.c
      	* app/path.c
      	* app/qmask.c
      	* app/undo.c
      	* app/gui/channels-commands.c
      	* app/gui/convert-dialog.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/layer-select.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/view-commands.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimplistitem.c
      	* tools/pdbgen/pdb/display.pdb
      	* app/pdb/display_cmds.c: changed accordingly (mostly including
      	"gimpdisplay-foreach.h" instead of "gimpdisplay.h")
      859e9c41
  28. 25 Sep, 2001 2 commits
    • Michael Natterer's avatar
      app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] · f235eabb
      Michael Natterer authored
      2001-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/disp_callbacks.[ch]
      	* app/gdisplay.[ch]
      	* app/gdisplay_ops.[ch]
      	* app/gximage.[ch]
      	* app/image_render.[ch]
      	* app/interface.[ch]
      	* app/marching_ants.h
      	* app/scale.[ch]
      	* app/scroll.[ch]
      	* app/selection.[ch]: removed.
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/display/gimpdisplay-callbacks.[ch]
      	* app/display/gimpdisplay-marching-ants.h
      	* app/display/gimpdisplay-ops.[ch]
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-scale.[ch]
      	* app/display/gimpdisplay-scroll.[ch]
      	* app/display/gimpdisplay-selection.[ch]
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gximage.[ch]: added here.
      
      	* app/[many files]
      	* app/gui/[many files]
      	* app/tools/*
      	* app/widgets/[many files]: changed accordingly. Still very
      	incomplete separation of the display stuff but it at least
      	compiles.
      
      	* tools/pdbgen/pdb.pl:
      	* tools/pdbgen/pdb/display.pdb: s/GDisplay/GimpDisplay/,
      	s/"gdisplay.h"/"display/gimpdisplay.h"/.
      
      	* app/pdb/display_cmds.c: regenerated.
      f235eabb
    • Michael Natterer's avatar
      renamed it to GimpDisplay and made it a GimpObject subclass. · b2215a1f
      Michael Natterer authored
      2001-09-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/gdisplay.[ch]: renamed it to GimpDisplay and made it a
      	GimpObject subclass.
      
      	* app/disp_callbacks.[ch]
      	* app/gdisplay_ops.[ch]
      	* app/scale.[ch]
      	* app/scroll.[ch]
      	* app/display/display-types.h: changed accordingly.
      
      	* app/core/gimpimage.[ch]: new signal "selection_control".
      
      	* app/core/core-types.h: moved the SelectionControl enum and all
      	other core enums here.
      
      	* app/gui/gui.c: connect to the images' "selection_control" signal
      	and call gdisplays_selection_visibility().
      
      	* app/core/gimpcontext.c
      	* app/core/gimpdrawable-offset.h
      	* app/core/gimpimage-convert.h
      	* app/core/gimpimage-mask.c
      	* app/core/gimplayer.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c: changed accordingly.
      
      	* app/gui/colormap-dialog.[ch]: GObject porting.
      
      	* tools/pdbgen/Makefile.am: removed headers which no longer
      	contain enums.
      
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/drawable.pdb: include files which are no longer
      	included automatically by the enum voodoo.
      
      	* app/pdb/convert_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      b2215a1f
  29. 19 Sep, 2001 1 commit
    • Sven Neumann's avatar
      require GTK+-1.3.8 and PangoFT2-0.19. · 334911e2
      Sven Neumann authored
      2001-09-19  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: require GTK+-1.3.8 and PangoFT2-0.19.
      
      	* app/devices.c:
      	* app/tools/gimppainttool.c: removed intermediate hacks that are no
      	longer needed with the new GTK+ release.
      
      	* app/plug_in.c
      	* libgimp/gimp.[ch]
      	* libgimp/gimpui.c
      	* libgimpbase/gimpprotocol.[ch]: removed use_xshm and color_cube
      	variables and accessor functions.
      
      	* app/errors.c: use gtk_exit() instead of gdk_exit().
      
      	* app/gdisplay.c: use Pango API to determine cursor label width. This
      	does not work correctly, but at least it compiles...
      
      	* app/gui/splash.c: follow Pango API changes.
      
      	* app/tools/gimpcurvestool.[ch]: use PangoLayouts to draw text.
      
      	* app/tools/gimptexttool.c: follow Pango API changes.
      
      	* app/widgets/gimpfontselection-dialog.c
      	* app/widgets/gimpfontselection.c: mostly rewritten following the
      	changes in GtkFontSelection. This is unusable at the moment and
      	crashes, but at least it compiles again...
      
      	* plug-ins/Makefile.am: temporarily disabled build of ifscompose since
      	it does not compile any longer after the latest GDK cleanups.
      
      	* plug-ins/common/nlfilt.c: gimp_color_cube() is obsolete.
      334911e2
  30. 09 Sep, 2001 1 commit
    • Sven Neumann's avatar
      app/devices.c readded the old code here in case the old GDK variable is · f5863106
      Sven Neumann authored
      2001-09-09  Sven Neumann  <sven@gimp.org>
      
      	* app/devices.c
      	* app/tools/gimppainttool.c: readded the old code here in case the
      	old GDK variable is defined. Since GTK+-1.3.7 is finally out, we want
      	to try to keep GIMP compile against this release as long as possible.
      
      	* plug-ins/common/gif.c: applied a patch from David Odin
      	<dindinx@wanadoo.fr> that brings the GIF plug-in back to live.
      
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl: build it again.
      f5863106
  31. 08 Sep, 2001 1 commit
  32. 14 Aug, 2001 1 commit
    • Michael Natterer's avatar
      an evil temp_hack which lets GimpContext managing the active display · e2daae31
      Michael Natterer authored
      2001-08-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/gdisplay.h: an evil temp_hack which lets GimpContext managing
      	the active display withoug including "gdisplay.h". Will go away as
      	soon ad context properties are registered dynamically.
      
      	* app/module_db.c: cleaned up the object code in preparation of
      	moving it to core/.
      
      	* app/path.c: connect to GimpImage's
      
      	* app/core/gimpobject.[ch]: derive it from GObject, not from
      	GtkObject any more (yeah :-)
      
      	* app/core/*.c: #include <glib-object.h> instead of <gtk/gtk.h>,
      	removed some remaining GtkObject-isms.
      
      	(left in a few #include <gtk/gtk.h> where bigger changes are needed
      	to get rid of the UI dependency).
      
      	* app/core/core-types.h: #include <gdk-pixbuf/gdk-pixbuf.h> here
      	temporarily.
      
      	* app/core/gimp.c (gimp_create_display): unref the image after
      	creating it's first display.
      
      	* app/core/gimpbrush.[ch]: disabled the parts of the code which
      	depend on GimpPaintTool.
      
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c: changed accordingly.
      
      	* app/core/gimpcontext.[ch]: evil hack (see above) to manage the
      	active display without including "gdisplay.h"
      
      	* app/core/gimpimage-mask.[ch]: pass a context to
      	gimage_mask_stroke() and get the current tool's PDB string from
      	there.
      
      	* app/core/gimpedit.c: changed accordingly.
      
      	* app/core/gimpimage.c: use gimp_image_update() instead of
      	gdisplays_update_full().
      
      	* app/gui/color-area.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/edit-commands.c
      	* app/gui/image-commands.c
      	* app/gui/toolbox.c: changed accordingly (don't use Gtk methods on
      	GObjects).
      
      	* app/gui/menus.c: fix some const warnings by explicit casting.
      
      	* app/tools/*.[ch]: ported all tools to GObject, some minor
      	cleanup while i was on it.
      
      	* app/widgets/gimpdialogfactory.[ch]: ported to GObject.
      
      	* app/widgets/gimplayerlistview.h: added FOO_GET_CLASS() macro.
      
      	* tools/pdbgen/app.pl: added a "widgets_eek" hack like "tools_eek"
      	which inserts #include "widgets/widgets-types.h" before ordinary
      	includes.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/edit_cmds.c: changed according to the stuff above.
      e2daae31
  33. 27 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/errorconsole.c use GtkTextView. · da88297a
      Michael Natterer authored
      2001-07-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/errorconsole.c
      	* app/user_install.c: use GtkTextView.
      
      	* app/gui/preferences-dialog.c: use GtkTextView correctly :)
      
      	* app/interface.c: a quick hack which enables setting the
      	canvas padding color via gtkrc.
      
      	* app/file-utils.c
      	* app/plug_in.c
      	* app/pdb/fileops_cmds.c
      	* tools/pdbgen/pdb/fileops.pdb: s/g_basename/g_path_get_basename/
      
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c: stupid /me disabled all paint tools
      	by setting pressure to 0.0 instead of 1.0, fixed now.
      da88297a
  34. 25 Jul, 2001 1 commit
    • Sven Neumann's avatar
      app/nav_window.c app/user_install.c app/pdb/color_cmds.c · f5cfbd50
      Sven Neumann authored
      2001-07-25  Sven Neumann  <sven@gimp.org>
      
      	* app/nav_window.c
      	* app/user_install.c
      	* app/pdb/color_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptool.c
      	* app/tools/paint_options.c
      	* app/tools/selection_options.c
      	* app/tools/tool_manager.c
      	* app/tools/transform_options.c
      	* app/widgets/gimpdnd.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/selection.pdb: use GObject functions.
      f5cfbd50
  35. 24 Jul, 2001 1 commit
    • Michael Natterer's avatar
      Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning) · 06b16890
      Michael Natterer authored
      2001-07-24  Michael Natterer  <mitch@gimp.org>
      
      	Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
      
      	* configure.in: require glib/gtk+ >= 1.3.7, commented out the
      	gtkxmhtml stuff.
      
      	From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
      	to hack or use GIMP HEAD.
      
      	Beware, it crashes randomly :)
      
      	* app/core/Makefile.am
      	* app/core/gimpmarshal.list: new file plus rules to generate
      	gimpmarshal.[ch] from it.
      
      	* app/core/*
      	* app/tools/*
      	* app/widgets/*
      	* libgimpwidgets/*: started to use the glib object system. All
      	core/ objects are still gtk objects however. All signals are
      	created using g_signal_new(). There are many gtk+ artefacts left.
      	Finally, we will _not_ use the gtk_signal_foo() wrappers and
      	friends any more.
      
      	* app/colormaps.c
      	* app/devices.[ch]
      	* app/disp_callbacks.c
      	* app/errorconsole.c
      	* app/file-save.[ch]
      	* app/interface.c
      	* app/module_db.c
      	* app/nav_window.c
      	* app/ops_buttons.c
      	* app/scroll.c
      	* app/user_install.c
      	* app/gui/about-dialog.c
      	* app/gui/brush-editor.c
      	* app/gui/brushes-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradients-commands.c
      	* app/gui/image-commands.c
      	* app/gui/info-dialog.[ch]
      	* app/gui/layer-select.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.[ch]
      	* app/gui/splash.c
      	* app/gui/tips-dialog.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpmenu.c
      	* libgimp/gimppatternmenu.c
      	* libgimp/gimpui.c
      	* libgimpbase/gimpenv.c: tons and tons of changes like "const
      	gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
      	and currently disables), lots of s/gtk_signal/g_signal/,
      	removal/replacement of deprecated stuff,
      	s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
      	while I was on it, zillions of warnings left...
      
      	* modules/Makefile.am: disabled the water color selector
      	temporarily (XInput issues).
      
      	* plug-ins/Makefile.am
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
      	which did not build (including Script-Fu). They are trivial to
      	fix.
      06b16890
  36. 07 Jul, 2001 2 commits
    • Michael Natterer's avatar
      app/Makefile.am removed. · 37ce6b9a
      Michael Natterer authored
      2001-07-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/drawable.[ch]: removed.
      
      	* app/core/gimpdrawable.[ch]: added the functions here. Made an
      	end to the myth that FG/BG and the undo system (!!!) are not
      	really part of the core.
      
      	* app/disp_callbacks.c
      	* app/floating_sel.c
      	* app/image_map.c
      	* app/qmask.c
      	* app/undo.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/gui/channels-commands.c
      	* app/gui/gui.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/tool_manager.c
      	* app/widgets/gimpchannellistitem.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/tools_cmds.c
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly. Misc small
      	fixes and cleanups.
      37ce6b9a
    • Michael Natterer's avatar
      app/Makefile.am removed. · 1bcd3e18
      Michael Natterer authored
      2001-07-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/context_manager.[ch]: removed.
      
      	* app/app_procs.c: call tool_mananger instead of context_manager
      	functions, pass "the_gimp" to some more functions.
      
      	* app/drawable.[ch]: pass a GimpContext to drawable_fill().
      
      	* app/errors.c: behave according to "stack_trace_mode" when using
      	the debugging signal handler.
      
      	* app/gimprc.[ch]: removed the core/ config variables.
      
      	* app/selection.c: set the selection's state to INVISIBLE in
      	selection_pause().
      
      	* app/core/Makefile.am
      	* app/core/gimpcoreconfig.[ch]: new files (the configuration
      	variables used by core/).
      
      	* app/core/gimpcontext.[ch]: removed the global contexts (user,
      	default, ...) and their functions. It's no longer possible to pass
      	NULL to the context functions to manipulate the current context
      	(gimpcontext.c doesn't know the current context any more).
      
      	* app/core/gimp.[ch]: added them here. The functions are now called
      	gimp_[set|get]_*_context(). Added gimp_create_context() which is
      	the only function to create contexts now.
      
      	* app/gui/dialogs.[ch]
      	* app/gui/gui.[ch]: pass "gimp" to all functions.
      
      	* app/tools/tool_manager.[ch]
      	* app/tools/tools.[ch]: pass "gimp" to lots of functions. Added
      	the "global_tool_context" logic and the global/non-global paint
      	options switching from the context_manager. Pass "gimp" to all
      	tools' "register" functions.
      
      	* app/tools/*: changed accordingly.
      
      	* app/devices.c
      	* app/disp_callbacks.c
      	* app/file-open.[ch]
      	* app/file-save.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/libgimp_glue.c
      	* app/module_db.c
      	* app/nav_window.c
      	* app/plug_in.c
      	* app/qmask.c
      	* app/undo.c
      	* app/base/base-config.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c
      	* app/core/gimptoolinfo.[ch]
      	* app/core/gimpundo.c
      	* app/gui/brush-select.c
      	* app/gui/channels-commands.c
      	* app/gui/color-area.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/paths-dialog.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/test-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimplayerlistview.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/procedural_db.c
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/patterns.pdb: changed accordingly: remove usage
      	of gimp_context_[get|set]_*(NULL), create contexts with
      	gimp_create_context(). Get the user/current context with
      	gimp_get_[user|current]_context(). Added/removed access to the
      	global "the_gimp" variable in some places. Get the core's config
      	variables from "core_config".
      1bcd3e18
  37. 18 Jun, 2001 1 commit
    • Michael Natterer's avatar
      major cleanup. After being finished, I decided that it needs to be · 3ef20cd8
      Michael Natterer authored
      2001-06-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/nav_window.[ch]: major cleanup. After being finished, I
      	decided that it needs to be factored out to a widget (see below),
      	so like 90% of this file will go away soon.
      
      	* app/apptypes.h: added opaque NavigationDialog typedef.
      
      	* app/gdisplay.[ch]: Added gdisplay_selection_visibility() which
      	is called from gdisplays_selection_visibility(). Capitalized the
      	SelectionControl enum values. Cleaned up the GDisplay struct and
      	it's initialisation while i was on it.
      
      	* app/gimage.c: gimage_size_changed_handler(): removed stuff which
      	is now done by GimpImage itself.
      
      	* app/scale.c
      	* app/scroll.c: also update the navigation popup, not only the
      	dialog.
      
      	* app/selection.[ch]: major indentation & cleanup attack. Maybe
      	found the "Selection vanishes" bug (the timeout id was assinged to
      	a gint, not a _guint_).
      
      	* app/undo.c: s/gimp_image_size_changed/gimp_viweable_size_changed/
      
      	* app/core/gimpdrawable.c: invalidate the image's preview from our
      	"invalidate_preview" implementation. This means that the image's
      	preview is invalidated way too often currently, which cries for
      	some general freeze/thaw mechanism on the GimpViewable level.
      	(Note that previews are rendered in the idle loop, so this is not
      	really a major performance impact, it's just ugly).
      
      	* app/core/gimpimage.[ch]: removed the "size_changed" signal...
      
      	* app/core/gimpviewable.[ch]: ...and added it here.
      
      	* app/core/gimplayer.c: invalidate_preview(): always chain up,
      	also if it's a floating selection.
      
      	* app/gui/info-dialog.[ch]
      	* app/gui/info-window.c: minor cleanups.
      
      	* app/gui/preferences-dialog.c: no need to invalidate the image
      	after we have invalidated all it's layers.
      
      	* app/core/gimpimage-mask.c
      	* app/gui/commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c: capitalized the SelectionCommand enum
      	values.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpnavigationpreview.[ch]: new widget.
      
      	* app/widgets/gimppreview.[ch]: added a non-working
      	non-dot-for-dot mode. Added xres/yres params to the
      	gimp_preview_calc_size() helper function.
      
      	Cache the "size" value which was passed to the simple function
      	variants (gimp_preview_new() and gimp_preview_set_size()) so we
      	can re-calculate the preview's extents on the underlying
      	viewable's "size_changed" signal and on gimp_preview_set_viewable().
      
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpimagepreview.c: changed accordingly.
      3ef20cd8