1. 13 Nov, 2001 1 commit
    • Michael Natterer's avatar
      small fix. · 3413a9ef
      Michael Natterer authored
      2001-11-12  Michael Natterer  <mitch@gimp.org>
      
      	* HACKING: small fix.
      
      	* configure.in: changed --disable-perl to --enable-perl because
      	it doesn't build properly at the moment.
      
      	* pixmaps/Makefile.am: removed stuff which is no longer there
      	from EXTRA_DIST.
      
      	* plug-ins/Makefile.am: put back the $(GIMP_PERL) line in SUBDIRS.
      
      	* app/widgets/gimpmenuitem.c. include "libgimpwidgets/gimpwidgets.h".
      
      	* data/Makefile.am
      	* data/brushes/Makefile.am
      	* data/gradients/Makefile.am
      	* data/palettes/Makefile.am
      	* data/patterns/Makefile.am: removed the old "files" hack and put
      	the stuff to EXTRA_DIST.
      
      	* app/Makefile.am
      	* app/base/Makefile.am
      	* app/core/Makefile.am
      	* app/file/Makefile.am
      	* app/gui/Makefile.am
      	* app/paint-funcs/Makefile.am
      	* app/pdb/Makefile.am
      	* app/tools/Makefile.am
      	* app/widgets/Makefile.am
      	* app/widgets/gimpmenuitem.c
      	* app/xcf/Makefile.am
      	* cursors/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am
      	* libgimpcolor/Makefile.am
      	* libgimpmath/Makefile.am
      	* libgimpwidgets/Makefile.am
      	* m4macros/Makefile.am
      	* themes/Makefile.am
      	* themes/Default/Makefile.am
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/tools/Makefile.am: removed "files" target.
      3413a9ef
  2. 12 Nov, 2001 6 commits
    • Sven Neumann's avatar
      *** empty log message *** · a38c2635
      Sven Neumann authored
      a38c2635
    • Sven Neumann's avatar
      po/Makefile.in.in po-libgimp/Makefile.in.in po-plug-ins/Makefile.in.in · 29781dad
      Sven Neumann authored
      2001-11-12  Sven Neumann  <sven@gimp.org>
      
      	* po/Makefile.in.in
      	* po-libgimp/Makefile.in.in
      	* po-plug-ins/Makefile.in.in
      	* po-script-fu/Makefile.in.in: fixed distdir.
      29781dad
    • Sven Neumann's avatar
      I checked in a wrong version by accident. This one should work better. · 4fed85e7
      Sven Neumann authored
      2001-11-12  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.in.in: I checked in a wrong version by accident. This one
      	should work better.
      4fed85e7
    • Michael Natterer's avatar
      changed GimpItemGetNameFunc signature to return a tooltip in a passed · f97a9249
      Michael Natterer authored
      2001-11-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/widgets-types.h: changed GimpItemGetNameFunc
      	signature to return a tooltip in a passed gchar* pointer location.
      
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpmenuitem.c: changed all get_name_funcs and their
      	callers accordingly (passing the "gchar **tooltip" pointer is
      	optional).
      f97a9249
    • Michael Natterer's avatar
      implemented a feature request: · a9ba89c2
      Michael Natterer authored
      2001-11-12  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/common/pixelize.c: implemented a feature request:
      
      	Made the pixel size configurable independently in x and y
      	direction. Added new PDB function. Use a GimpCoordinates widget
      	for the dialog.
      a9ba89c2
    • 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
  3. 11 Nov, 2001 2 commits
    • Michael Natterer's avatar
      oops, this should have been checked in with my last commit. · 8cf9426f
      Michael Natterer authored
      2001-11-11  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb.pl: oops, this should have been checked in
      	with my last commit.
      8cf9426f
    • Manish Singh's avatar
      configure.in app/Makefile.am app/plug-in/Makefile.am plug-ins/Makefile.am · 7117483f
      Manish Singh authored
      2001-11-11  Manish Singh  <yosh@gimp.org>
      
              * configure.in
              * app/Makefile.am
              * app/plug-in/Makefile.am
              * plug-ins/Makefile.am
              * modules/Makefile.am: fixes to build with automake 1.5 (just hacks
              to get it to work, real fixes to come later)
      
              * app/gui/preferences-dialog.c: unset GValue from tree model when
              we're done with it.
      
              * libgimpwidgets/gimpcolorarea.c
              * libgimpwidgets/gimpcolorbutton.c
              * libgimpwidgets/gimpsizeentry.[ch]
              * libgimpwidgets/gimpwidgets.[ch]
              * plug-ins/common/animationplay.c
              * plug-ins/common/colorify.c
              * plug-ins/common/curve_bend.c
              * plug-ins/common/diffraction.c
              * plug-ins/common/film.c
              * plug-ins/common/gbr.c
              * plug-ins/common/gee.c
              * plug-ins/common/gee_zoom.c
              * plug-ins/common/gicon.c
              * plug-ins/common/gih.c
              * plug-ins/common/gtm.c
              * plug-ins/common/jpeg.c
              * plug-ins/common/mail.c
              * plug-ins/common/pat.c
              * plug-ins/common/plugindetails.c
              * plug-ins/common/png.c
              * plug-ins/common/ps.c
              * plug-ins/common/sample_colorize.c
              * plug-ins/common/sinus.c
              * plug-ins/common/spheredesigner.c
              * plug-ins/common/tileit.c
              * plug-ins/common/uniteditor.c
              * plug-ins/common/xbm.c: gtk_widget_set_usize is deprecated. Use
              gtk_widget_set_size_request instead.
      
              * libgimpwidgets/gimpunitmenu.[ch]: changed to use GtkTreeView.
      7117483f
  4. 10 Nov, 2001 4 commits
    • 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
    • Michael Natterer's avatar
      Makefile.am removed... · cfeab8bc
      Michael Natterer authored
      2001-11-10  Michael Natterer  <mitch@gimp.org>
      
      	* Makefile.am
      	* user_install.[ch]: removed...
      
      	* gui/Makefile.am
      	* gui/user-install-dialog.[ch]: ...added here.
      
      	* gui/file-open-dialog.[ch]: removed file_open_with_display() and
      	file_open_with_proc_and_display() here...
      
      	* file/file-open.[ch]: ...and added them here.
      
      	* app_procs.c
      	* widgets/gimpdnd.c
      	* widgets/gimpdocumentview.c: changed accordingly.
      cfeab8bc
    • Michael Natterer's avatar
      app/Makefile.am removed. · 360f8321
      Michael Natterer authored
      2001-11-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/qmask.[ch]: removed.
      
      	* app/core/gimpimage.[ch]: added "qmask_changed" signal and
      	gimp_image_[set|get]_qmask_state().
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplayshell-qmask.[ch]: put the stuff here.
      
      	* app/display/gimpdisplayshell-handlers.[ch]: new files: handlers
      	for GimpImage signals handled by GimpDisplayShell.
      
      	* app/display/gimpdisplay-handlers.c: removed some of them here.
      	Don't include any GimpDisplayShell stuff any more.
      
      	* app/display/gimpdisplay.c: no need to update the qmask buttons
      	in gimp_display_flush_whenever().
      
      	* app/display/gimpdisplayshell.c: call gimp_display_shell_connect()
      	and disconnect().
      360f8321
    • Michael Natterer's avatar
      fixed qmask callbacks to check if the toggle is active before performing · 7125fdbc
      Michael Natterer authored
      2001-11-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/qmask.c: fixed qmask callbacks to check if the toggle is
      	active before performing any action.
      
      	* app/core/core-types.h: added the GimpCoords type here because it
      	will be used by core functions as soon as the painting stuff is
      	separated from the painting tools.
      
      	* app/core/gimpdrawable-bucket-fill.c: fixed g_return_if_fail()s
      	to not disable any useful operation :-) Still didn't figure out
      	how I broke display color and pattern dropping :-(
      
      	* app/display/gimpdisplayshell.[ch]: added
      	gimp_display_shell_[un]transform_coords() which work on two
      	GimpCoords pointers.
      
      	* app/display/gimpdisplayshell-callbacks.c: use the new functions
      	instead of the gdisplay_* ones.
      
      	* app/gui/image-commands.c: GimpImage emits "disconnect", not
      	"destroy".
      
      	* app/tools/tools-types.h
      	* app/tools/gimptool.h: removed GimpCoords here.
      
      	* app/tools/gimpconvolvetool.c: fixed modifier_key() implementation.
      
      	* app/tools/gimpcroptool.c: cleanup.
      
      	* app/tools/paint_options.c: don't need a separator in the ink
      	tool options.
      
      	* app/tools/gimprectselecttool.c
      	* app/tools/selection_options.[ch]: implemented wish #50352:
      
      	Added "Auto Shrink Selection" and "Sample Merged" toggles to
      	the rect_select and ellipse_select tools. Put the "Fixed size"
      	widgets in a frame. Removed the separators after the common
      	selection tool options because I didn't like them any more
      	(feel free to comment ;)
      7125fdbc
  5. 09 Nov, 2001 6 commits
    • Michael Natterer's avatar
      added a "Center" button to the "Offset" frame (#51599). · b70ac761
      Michael Natterer authored
      2001-11-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/resize-dialog.c: added a "Center" button to the "Offset"
      	frame (#51599).
      b70ac761
    • Tor Lillqvist's avatar
      19c899f7
    • Michael Natterer's avatar
      removed the "palette" PDB type again. Incremented protocol version. · a109f0ff
      Michael Natterer authored
      2001-11-09  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpbase/gimpprotocol.[ch]: removed the "palette" PDB type
      	again. Incremented protocol version.
      
      	* app/plug_in.c
      	* app/pdb/procedural_db.c
      	* libgimp/gimp.c
      	* libgimpbase/gimpbasetypes.h: changed accordingly.
      
      	* app/pdb/procedural_db_cmds.c
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      a109f0ff
    • Michael Natterer's avatar
      should set the fs.backing_store TileManager pointer to NULL after deleting · 4fa25532
      Michael Natterer authored
      2001-11-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.c: should set the fs.backing_store TileManager pointer
      	to NULL after deleting it. Why the heck didn't this crash
      	before...?
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-blend.[ch]: the blend stuff taken from
      	the blend tool.
      
      	* app/core/core-types.h: added the blend enums.
      
      	* app/tools/gimpblendtool.[ch]: removed the stuff here.
      
      	* tools/pdbgen/pdb/tools.pdb: changed blend wrapper accordingly.
      
      	* app/pdb/tools_cmds.c: regenerated.
      
      	* tools/pdbgen/Makefile.am: don't scan tools/gimpblendtool.c.
      
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/tools/gimpbucketfilltool.c: fixed crash caused by my last
      	change.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.c: removed lots of uglyness by
      	using GtkImages for the qmask and navigation buttons. Don't realize
      	anything before the shell is shown. Connect the realize
      	callback and do stuff there. Don't call the realize callback
      	from gimp_display_shell_canvas_events() any more.
      
      	* pixmaps/navbutton.xpm
      	* pixmaps/qmasknosel.xpm
      	* pixmaps/qmasksel.xpm: removed.
      
      	* themes/Default/Makefile.am
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-menu-navigation.png
      	* themes/Default/images/stock-menu-qmask-off.png
      	* themes/Default/images/stock-menu-qmask-on.png: new PNGs instead.
      
      	* libgimpwidgets/gimpstock.[ch]: register them as stock icons.
      4fa25532
    • Sven Neumann's avatar
      merged fix for bug #63880 from stable branch and fixed a wrong signal · 9dc96ce7
      Sven Neumann authored
      2001-11-09  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/file-open-dialog.c: merged fix for bug #63880 from stable
      	branch and fixed a wrong signal callback signature.
      
      	* plug-ins/imagemap/imap_main.c: merged fix for bug #64075 from stable
      	branch.
      
      	* plug-ins/common/gauss_iir.c
      	* plug-ins/common/gauss_rle.c: merged fix for bug #57853 from stable
      	branch.
      
      	* plug-ins/Lighting/lighting_ui.c: s/gdk_image_unref/g_object_unref/
      9dc96ce7
    • Tor Lillqvist's avatar
  6. 08 Nov, 2001 2 commits
    • 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
    • Wang Jian's avatar
      *** empty log message *** · 6337e6f3
      Wang Jian authored
      6337e6f3
  7. 05 Nov, 2001 1 commit
    • Sven Neumann's avatar
      ported fixes from stable branch (mostly missing includes of config.h), · 022d73e2
      Sven Neumann authored
      2001-11-05  Sven Neumann  <sven@gimp.org>
      
              * plug-ins/imagemap/*.c: ported fixes from stable branch (mostly
              missing includes of config.h),
      
              * plug-ins/gimpressionist/orientmap.c: removed commented out code
              that continued to show up when grepping for deprecated GTK+ code.
      
              * tools/pdbgen/pdb/procedural_db.pdb: removed unneeded inclusion
              of config.h (it gets added automatically).
      022d73e2
  8. 02 Nov, 2001 2 commits
    • Michael Natterer's avatar
      stop synthesizing expose events but use gdk_window_invalidate_rect() and · 7c2b5595
      Michael Natterer authored
      2001-11-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-scroll.c: stop synthesizing expose
      	events but use gdk_window_invalidate_rect() and
      	gdk_window_process_updates() (both with "update_children == FALSE"
      	because the canvas has no children).
      
      	* app/tools/gimpmagnifytool.c: nothing.
      7c2b5595
    • Michael Natterer's avatar
      app/display/Makefile.am app/display/gimpdisplay-callbacks.[ch] · d162376d
      Michael Natterer authored
      2001-11-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-callbacks.[ch]
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-scale.[ch]
      	* app/display/gimpdisplay-scroll.[ch]: removed and added as
      	gimpdisplayshell-foo.[ch] because they are all methods of the
      	shell.
      
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]: moved the "offset" and "size"
      	variables from GimpDisplay to GimpDisplayShell. GimpDisplay
      	should know nothing about screen coordinates.
      
      	The gdisplay_[un]transform_foo() methods are still part of
      	GimpDisplay but will be moved to GimpDisplayShell as soon as the
      	tools' vitrual functions speak in image coordinates instead of
      	GdkEvents.
      
      	* app/display/gimpdisplayshell-callbacks.[ch]: prefixed all
      	functions with gimp_display_shell_*. Moved some stuff to a
      	"realize" callback File still has to be renamed.
      
      	* app/display/gimpdisplay-foreach.[ch]: removed
      	gdisplays_shrink_wrap().
      
      	* app/gui/menus.c
      	* app/gui/view-commands.[ch]
      	* app/display/gimpdisplayshell-scale.[ch]: implemented "Zoom to
      	Fit Window" function (#57670).
      
      	* app/nav_window.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-render.[ch]
      	* app/display/gimpdisplayshell-scale.[ch]
      	* app/display/gimpdisplayshell-scroll.[ch]
      	* app/gui/colormap-dialog.c
      	* app/gui/gui.c
      	* app/gui/preferences-dialog.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmovetool.c
      	* app/widgets/gimppreview.c: changed according to variable
      	and filename changes.
      
      	* app/tools/tool_manager.c: tool_manager_select_tool(): send the
      	active tool a "HALT" command before selecting the new one. Fixes
      	stale tool dialogs which were there because some other hack was
      	removed (This is IMHO the right place to shut down the active
      	tool).
      
      	* app/tools/gimpcroptool.c: don't shrink wrap after cropping but
      	let gimprc.allow_resize_windows decide.
      
      	* app/tools/gimpselectiontool.c: gimage_mask_value() takes image,
      	not screen coordinates. A good example of how braindead it is to
      	pass GdkEvents to tools :-) Fixes incorrect cursor and oper
      	update of the selection tools.
      
      	* app/tools/gimptransformtool.c
      	* app/undo.c: removed (#if 0 for now) some strange code which did
      	manual exposing of GimpDisplayShell areas. This was definitely a
      	hack and should not be there given the image emits correct
      	"update" signals.
      d162376d
  9. 01 Nov, 2001 4 commits
  10. 31 Oct, 2001 4 commits
    • Michael Natterer's avatar
      argh. · 96fdb355
      Michael Natterer authored
      96fdb355
    • Michael Natterer's avatar
      fscking broken pipe... · cbce3390
      Michael Natterer authored
      cbce3390
    • Michael Natterer's avatar
      Chopped up the display stuff (beware: unfinished)... · 5f63e079
      Michael Natterer authored
      2001-10-31  Michael Natterer  <mitch@gimp.org>
      
      	Chopped up the display stuff (beware: unfinished)...
      
      	The plan is that GimpDisplay is the object which collects
      	updates from the image, compresses them and waits for the GIMP
      	to be idle to actually paint them. It should be a non-GUI object
      	which is the model for the actual widget to connect to.
      
      	GimpDisplayShell has all the widgets and handles painting and
      	exposing of the result. Nobody should actually be required to
      	update ot look at it as it should be a view on the GimpDisplay
      	object.
      
      	Much stuff is still in the wrong place and the functions don't
      	follow their files' filename namespace any more. More to come...
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-ops.[ch]: removed. It's functions didn't
      	belong together anyway.
      
      	* app/display/gimpdisplay-area.[ch]: new files: the GimpArea
      	functions.
      
      	* app/display/gimpdisplay-handlers.[ch]: new files: signal
      	handlers for GimpImage signals. Mostly from app/gui.c.
      
      	* app/display/gimpdisplay.[ch]: removed all widgets and other
      	GUI stuff. There is still much undecided here...
      
      	* app/display/gimpdisplayshell.[ch]: actually use the object and
      	filled it with all the stuff from GimpDisplay.
      
      	* app/display/gimpdisplay-callbacks.[ch]
      	* app/display/gimpdisplay-foreach.[ch]
      	* app/display/gimpdisplay-render.c
      	* app/display/gimpdisplay-scale.[ch]
      	* app/display/gimpdisplay-scroll.[ch]
      	* app/display/gimpdisplay-selection.c: changed accordingly.
      
      	* app/core/gimp.[ch]: return a GimpObject from
      	gimp_create_display() so it can be used as single GUI independent
      	point to create displays, require the initial scale as parameter.
      
      	* app/core/gimpcontext.c: changed the ugly EEKWrapper according to
      	the GimpDisplay structure changes. Bugfix: set the image to NULL
      	in gimp_context_display_destroyed().
      
      	* app/core/gimpedit.c
      	* app/core/gimpimage-new.c: changed gimp_create_display() calls
      	accordingly.
      
      	* app/core/gimpimage-convert.c: invalidate the layer & image
      	previews here, not in the caller.
      
      	* app/core/gimpimage-crop.c: update the whole image after cropping.
      
      	* app/core/gimpimage.[ch]: added gimp_image_find_guide(),
      	gimp_image_snap_point() and gimp_image_snap_rectangle(). Added
      	"resolution_changed" and "unit_changed" signals and corresp.
      	public convenience functions to emit them.
      
      	* app/core/gimplayer.c: emit the image's "alpha_changed" signal
      	when adding alpha to the bottom (and only) layer of the image.
      
      	* app/gimpprogress.c
      	* app/image_map.c
      	* app/nav_window.c
      	* app/qmask.c
      	* app/undo.c
      	* app/user_install.c: changed accordingly.
      
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/view-commands.c: ditto.
      
      	* app/gui/gui.[ch]: removed most gimp->images handlers as the
      	displays connect to them themselves now. chaged gui_display_new()
      	according to the gimp_create_display() changes.
      	Added gui_get_screen_resolution().
      
      	* 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/gimpdrawtool.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/gimptool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/xinput_airbrush.c: lots of changes because GimpDisplay
      	has become two objects. Lots of gdisp->shell casting uglyness
      	added. This is fine because exactly these parts will have to go
      	away.
      
      	(GimpDisplay will provide methods for XOR drawing upon the display
      	in image coordinates without the need to transform coordinates all
      	the time. Also the tools shouldn't see GdkEvents but get more
      	useful virtual functions which speak in image coordinates too).
      
      	* app/widgets/gimpcomponentlistitem.c: removed a now useless image
      	update.
      
      	* tools/pdbgen/pdb/display.pdb: use gimp_create_display().
      
      	* app/pdb/display_cmds.c: regenerated.
      5f63e079
    • Christian Rose's avatar
      Updated the Swedish translation some. · 4158715b
      Christian Rose authored
      2001-10-31  Christian Rose  <menthos@menthos.com>
      
      	* sv.po: Updated the Swedish translation some.
      4158715b
  11. 30 Oct, 2001 4 commits
  12. 29 Oct, 2001 3 commits
    • Sven Neumann's avatar
      rewrote so gcc-3.0 doesn't complain. · de5af18f
      Sven Neumann authored
      2001-10-29  Sven Neumann  <sven@gimp.org>
      
      	* app/base/temp-buf.c (temp_buf_to_gray): rewrote so gcc-3.0 doesn't
      	complain.
      
      	* app/widgets/gimpfontselection-dialog.c: use g_ascii_strcasecmp().
      
      	* libgimp/gimpintl.h
      	* libgimp/stdplugins-intl.h
      	* plug-ins/script-fu/script-fu-intl.h: don't call gtk_set_locale()
      	since gtk_init() does it for us now. Don't set LC_NUMERIC to "C".
      	INIT_I18N_UI() is the same as INIT_I18N_UI() now.
      
      	* app/devices.c
      	* app/gimprc.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpgradient.c
      	* app/gui/color-notebook.c
      	* app/gui/gradients-commands.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/gimpressionist/presets.c
      	* plug-ins/ifscompose/ifscompose_storage.c: use g_ascii_formatd() and
      	g_ascii_strtod() to serialize and deserialize floats. These functions
      	are locale-independent. There are probably more places that need to be
      	fixed in this fashion.
      
      	* plug-ins/script-fu/script-fu-console.c
      	* plug-ins/script-fu/script-fu-scripts.c
      	* plug-ins/script-fu/script-fu-server.c
      	* plug-ins/script-fu/script-fu.c: s/INIT_I18N_UI/INIT_I18N/
      
      	* tools/gimp-remote.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/paint-funcs/paint-funcs-indexeda.c
      	* app/paint-funcs/paint-funcs.c
      	* app/tools/gimppathtool.c
      	* app/tools/path_tool.c
      	* modules/colorsel_triangle.c
      	* plug-ins/common/mpeg.c
      	* plug-ins/imagemap/imap_csim_parse.c: cleanups
      de5af18f
    • 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
    • Sven Neumann's avatar
      updated links · 5e9fc1d8
      Sven Neumann authored
      2001-10-29  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/webbrowser/web-browser.scm: updated links
      
      	* tools/pdbgen/lib.pl: cosmetic change (if (!x) -> unless (x)).
      5e9fc1d8
  13. 28 Oct, 2001 1 commit
    • Hans Breuer's avatar
      define HAVE_DIRENT_H, it's from build/win32/dirent · 39dbecb7
      Hans Breuer authored
      2001-10-28  Hans Breuer  <hans@breuer.org>
      
      	* config.h.win32 : define HAVE_DIRENT_H, it's from build/win32/dirent
      
      	* app/*/makefile.msc : updated
      	* app/file/makefile.msc app/display/makefile.msc : new files
      
      	* app/user_install.c : make the G_OS_WIN32 part compile again (fn -> filename)
      
      	* app/core/gimptoolinfo.c (gimp_tool_info_init) : cosmetic change,
      	make implementation signature static like the local prototype
      
      	* app/pdb/gradients_cmds.c app/pdb/palette_cmds.c : include <string.h>
      	for strlen () / strcmp () by ...
      	* tools/pdbgen/pdb/gradients.pdb tools/pdbgen/pdb/palette.pdb :
      	... changing the perl source here
      
      	* app/widgets/gimpdocumentview.c : #include <string.h>
      
      	* libgimp/makefile.msc :
      	* libgimpwidgets/gimpwidgets.def : updated
      
      	* plug-ins/makefile.msc : reflect the fact that DIRENT functions
      	are removed from glib. Also define the questionable GETTEXT_PACKAGE
      	and LOCALEDIR which are required to compile, not adapted to NLS
      	support for win32 yet
      39dbecb7