1. 31 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/airbrush.[ch] app/bezier_select.c app/bezier_selectP.h app/blend.[ch] · 2db88815
      Michael Natterer authored
      2000-12-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/airbrush.[ch]
      	* app/bezier_select.c
      	* app/bezier_selectP.h
      	* app/blend.[ch]
      	* app/boundary.h
      	* app/brightness_contrast.[ch]
      	* app/bucket_fill.c
      	* app/by_color_select.c
      	* app/clone.[ch]
      	* app/color_balance.c
      	* app/color_picker.c
      	* app/commands.c
      	* app/convolve.[ch]
      	* app/crop.c
      	* app/crop.h
      	* app/curves.c
      	* app/dodgeburn.[ch]
      	* app/edit_selection.[ch]
      	* app/ellipse_select.c
      	* app/eraser.[ch]
      	* app/flip_tool.[ch]
      	* app/free_select.[ch]
      	* app/fuzzy_select.[ch]
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/histogram_tool.[ch]
      	* app/hue_saturation.[ch]
      	* app/image_map.[ch]
      	* app/ink.[ch]
      	* app/iscissors.c
      	* app/levels.c
      	* app/magnify.[ch]
      	* app/move.c
      	* app/nav_window.[ch]
      	* app/paint_core.[ch]
      	* app/paintbrush.[ch]
      	* app/path_bezier.[ch]
      	* app/path_tool.c
      	* app/pencil.[ch]
      	* app/perspective_tool.[ch]
      	* app/posterize.c
      	* app/rect_select.[ch]
      	* app/rotate_tool.[ch]
      	* app/scale_tool.[ch]
      	* app/selection.[ch]
      	* app/shear_tool.[ch]
      	* app/smudge.[ch]
      	* app/text_tool.[ch]
      	* app/threshold.c
      	* app/tools.[ch]
      	* app/transform_core.[ch]: removed the "gdisp_ptr" madness and
      	useless casts all over the place. Introduced a "PaintState" enum
      	instead of #define's. Various cleanups.
      2db88815
  2. 29 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h · 8d6c335f
      Michael Natterer authored
      2000-12-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/channel_pvt.h
      	* app/drawable_pvt.h
      	* app/gdisplayF.h
      	* app/gimpdrawableP.h
      	* app/gimpimageP.h
      	* app/layer_pvt.h
      	* app/toolsF.h: removed these files.
      
      	* app/apptypes.h
      	* tools/pdbgen/enums.pl: added tons of opaque typedefs and enums.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* app/*: chainsaw #include cleanup:
      
      	- Never (never!!) include stuff in header files except where we
      	  need access to structures' contents (like derived objects).
      	- Added prototypes and proper formating in many files.
      	- The #include order in *all* *.c files is as follows:
      
      	#include "config.h"
      
      	#include <system stuff>
      
      	#include <gtk/gtk.h>
      
      	#include "apptypes.h"
      
      	#include "gimp stuff"
      
      	#include "libgimp stuff"
      
      	#include "libgimp/gimpintl.h"
      
      	By following this scheme we can easily see a file's dependencies
      	from it's #include's and can grep for the inclusion to find out
      	where a file is used.
      
      	* tools/pdbgen/app.pl: changed to follow the include scheme above.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpuitypes.h: new file, included from libgimp/gimpui.h
      	and from app/apptypes.h.
      
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimpparasite.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimpprotocol.c
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpunit.h
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: changed accordingly.
      
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gdyntext/message_window.c
      	* plug-ins/imagemap/imap_default_dialog.c
      	* plug-ins/imagemap/imap_file.c: these files used to include
      	"libgimp/gimpui.h" without including "libgimp/gimp.h". This is
      	no longer possible because the libgimpui headers don't inlcude
      	"libgimp/gimpunit.h" any more.
      8d6c335f
  3. 16 Dec, 2000 1 commit
    • Sven Neumann's avatar
      Last-minute cleanup: · dfa2bed5
      Sven Neumann authored
      2000-12-16  Sven Neumann  <sven@gimp.org>
      
      	Last-minute cleanup:
      
      	* app/gimpdrawableF.h
      	* app/gimphistogramF.h
      	* app/gimpimageF.h
      	* app/gimplistF.h
      	* app/gimplutF.h
      	* app/gimpobjectF.h
      	* app/gimpsetF.h
      	* app/layerF.h
      	* app/parasitelistF.h: removed these files
      
      	* app/Makefile.am
      	* tools/pdbgen/Makefile.am: changed accordingly
      
      	* app/[almost every file]: include cleanup
      dfa2bed5
  4. 23 Jun, 2000 1 commit
    • Matt Wilson's avatar
      allocate the tool's paint_core with g_new0. This prevents us from having · 74fdc62e
      Matt Wilson authored
      2000-06-22  Matt Wilson  <msw@redhat.com>
      
      	* app/paint_core.c (paint_core_new): allocate the tool's
      	paint_core with g_new0.  This prevents us from having cruft in
      	unused tools.  Systems with sensitive FPUs (Alpha) will raise
      	exception in the paint_core_cursor_update if paint_core->last{x,y}
      	are messy.
      
      	* app/bezier_select.c (tools_new_bezier_select)
      	* app/blend.c (blend_options_new)
      	* app/brightness_contrast.c (tools_new_brightness_contrast)
      	* app/bucket_fill.c (tools_new_bucket_fill)
      	* app/by_color_select.c (tools_new_by_color_select)
      	* app/color_balance.c (tools_new_color_balance)
      	* app/color_panel.c (color_panel_new)
      	* app/color_picker.c (tools_new_color_picker)
      	* app/crop.c (tools_new_crop)
      	* app/curves.c (tools_new_curves)
      	* app/ellipse_select.c (tools_new_ellipse_select)
      	* app/free_select.c (tools_new_free_select)
      	* app/fuzzy_select.c (tools_new_fuzzy_select)
      	* app/histogram_tool.c (tools_new_histogram_tool)
      	* app/hue_saturation.c (tools_new_hue_saturation)
      	* app/ink.c (tools_new_ink)
      	* app/iscissors.c (tools_new_iscissors)
      	* app/levels.c (tools_new_levels)
      	* app/magnify.c (tools_new_magnify)
      	* app/measure.c (tools_new_measure_tool)
      	* app/move.c (tools_new_move_tool)
      	* app/path_tool.c (tools_new_path_tool)
      	* app/posterize.c (tools_new_posterize)
      	* app/rect_select.c (tools_new_rect_select)
      	* app/resize.c (resize_widget_new)
      	* app/threshold.c (tools_new_threshold)
      	* app/transform_core.c (transform_core_new)
      	* app/xinput_airbrush.c (tools_new_xinput_airbrush): likewise (it
      	can only help and it really isn't slow.)
      
      	* app/color_area.c: #include <string.h> for memcpy declaration
      
      	* app/gimphelp.c: #include <string.h> for strlen declaration
      74fdc62e
  5. 14 Jun, 2000 1 commit
    • Michael Natterer's avatar
      Makefile.am app/cursorutil.[ch] app/tools.c added lots of new cursors and · b8ee0c8c
      Michael Natterer authored
      2000-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* Makefile.am
      	* app/cursorutil.[ch]
      	* app/tools.c
      	* cursors/*: added lots of new cursors and removed old ones.
      
      	* app/gdisplay.[ch]: enabled the cursor setting parameters in
      	gdisplay_install_tool_cursor().
      
      	* app/bezier_select.c
      	* app/blend.c
      	* app/bucket_fill.c
      	* app/by_color_select.c
      	* app/clone.c
      	* app/color_picker.c
      	* app/crop.c
      	* app/disp_callbacks.c
      	* app/edit_selection.c
      	* app/eraser.c
      	* app/flip_tool.c
      	* app/ink.c
      	* app/iscissors.c
      	* app/magnify.c
      	* app/measure.c
      	* app/move.c
      	* app/paint_core.c
      	* app/rect_select.c
      	* app/text_tool.c
      	* app/transform_core.c: use the new cursors. Only the transform
      	tools are still using old cursors.
      
      	* app/layers_dialog.c: a tooltip for "Keep Trans."
      
      	* app/user_install.c: set the ctree's selection mode to BROWSE.
      b8ee0c8c
  6. 03 Jun, 2000 1 commit
  7. 16 Apr, 2000 1 commit
  8. 18 Feb, 2000 1 commit
  9. 14 Jan, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · fbfdf4b3
      Michael Natterer authored
      2000-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/tool_options_ui.h: removed.
      
      	* app/tool_options.c
      	* libgimp/gimpwidgets.[ch]: moved some more ui utility functions
      	to libgimp.
      
      	* app/airbrush.c
      	* app/blend.c
      	* app/bucket_fill.c
      	* app/channel_ops.c
      	* app/clone.c
      	* app/color_picker.c
      	* app/convolve.c
      	* app/crop.c
      	* app/dodgeburn.c
      	* app/eraser.c
      	* app/file_new_dialog.[ch]
      	* app/flip_tool.c
      	* app/image_new.[ch]
      	* app/ink.c
      	* app/layers_dialog.c
      	* app/magnify.c
      	* app/measure.c
      	* app/paintbrush.c
      	* app/pencil.c
      	* app/smudge.c
      	* app/text_tool.c
      	* app/tool_options.c
      	* app/transform_tool.c
      	* app/xinput_airbrush.c: use the libgimp functions (esp. the radio
      	button group constructor), some code cleanup.
      
      	* plug-ins/common/csource.c
      	* plug-ins/common/despeckle.c
      	* plug-ins/common/diffraction.c
      	* plug-ins/common/jpeg.c
      	* plug-ins/common/png.c
      	* plug-ins/unsharp/unsharp.c: more plugin ui tuning.
      
      	* plug-ins/unsharp/Makefile.am
      	* plug-ins/unsharp/dialog_f.[ch]
      	* plug-ins/unsharp/dialog_i.[ch]: removed.
      fbfdf4b3
  10. 14 Nov, 1999 1 commit
    • Sven Neumann's avatar
      plugged a memleak · dc3d7403
      Sven Neumann authored
              * app/ink.c: plugged a memleak
      
              * app/xinput_airbrush.c; make it compile w/o patch_xinput_airbrush
      
      --Sven
      dc3d7403
  11. 01 Sep, 1999 1 commit
    • Tor Lillqvist's avatar
      app/appenv.h New file. Includes <math.h>. Move G_PI, RINT(), ROUND() etc · 6ef23d98
      Tor Lillqvist authored
      1999-09-01  Tor Lillqvist  <tml@iki.fi>
      
      * app/appenv.h
      * libgimp/gimpmath.h: New file. Includes <math.h>. Move G_PI,
      RINT(), ROUND() etc from app/appenv.h here, so plug-ins can
      use them, too. Remove some commented-out old stuff in appenv.h.
      
      * libgimp/gimp.h: Include gimpmath.h.
      
      * libgimp/gimp.c (gimp_main): Win32: Don't install signal
      handlers, we can't do anything useful in the handler ourselves
      anyway (it would be nice to print out a backtrace, but that seems
      pretty hard to do, even if not impossible). Let Windows inform the
      user about the crash. If the plug-in was compiled with MSVC, and
      the user also has it, she is offered a chance to start the
      debugger automatically anyway.
      
      * app/*several*.c: Include gimpmath.h for G_PI etc. Don't include
      <math.h>, as gimpmath.h includes it.
      
      * plug-ins/*/*many*.c: Include config.h. Don't include <math.h>.
      Remove all the duplicated definitions of G_PI and rint(). Use
      RINT() instead of rint().
      
      * app/app_procs.[ch]: app_exit() takes a gboolean.
      
      * app/batch.c
      * app/commands.c
      * app/interface.c: Call app_exit() with FALSE or TRUE.
      
      * app/main.c (on_error): Call gimp_fatal_error. (main): Don't
      install any signal handler on Win32 here, either.
      
      * app/errors.c (gimp_fatal_error, gimp_terminate): Win32: Format
      the message and call MessageBox with it.  g_on_error_query doesn't
      do anything useful on Win32, and printf'ing a message to stdout or
      stderr doesn't do anything, either, in a windowing application.
      6ef23d98
  12. 04 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      Define ROUND(), RINT(), SQR(), G_PI and G_PI_4. The latter two will · 933b8661
      Tor Lillqvist authored
      	* app/appenv.h: Define ROUND(), RINT(), SQR(), G_PI and
      	G_PI_4. The latter two will presumably eventually be in
      	GLib. RINT() calls rint() if we have it, otherwise adds 0.5 and
      	calls floor().
      
      	* app/*.c: Remove the multiple identical definitions of M_PI. Use
      	G_PI instead of M_PI. Remove ROUND() and rint() definitions. Use
      	RINT() instead of rint().
      933b8661
  13. 24 Jul, 1999 1 commit
    • Michael Natterer's avatar
      set the "preserve" flag to FALSE. This way the tool doesn't have to detect · 9b9f3d10
      Michael Natterer authored
      1999-07-24  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/color_picker.[ch]: set the "preserve" flag to FALSE. This
      	way the tool doesn't have to detect drawable changes by itself.
      	Misc stuff like below.
      
      	* app/gradient.c: heavily changed the beast:
      
      	- Reviewed the whole ui code and indented it.
      	- Standard ui for all sub-dialogs.
      	- Handle the wm delete event of the sub-dialogs.
      	- "+" and "-" pixmaps instead of "zoom in" and "zoom out".
      	- Made the gradient preview resizable again.
      	- i18n fixes.
      	- Removed some code duplication in the sub-dialogs' cancel/delete
      	  callbacks.
      	- Grouped functions together and commented the groups and their
      	  prototypes.
      	- Didn't change any core functionality (just the ui).
      	- Please don't kill me, but I couldn't resist to indent most
      	  functions ;-)
      
      	* app/info_dialog.c: no need to call gettext() on a string which
      	was passed to a function (it's the job of the caller).
      
      	* app/ink.c: grab the pointer in the blob preview.
      
      	* app/palette.c: standardized the ui of the dialog and all it's
      	sub-dialogs, function header indentation, namespace cleanup.
      9b9f3d10
  14. 22 Jul, 1999 1 commit
    • Michael Natterer's avatar
      new ui for the "Layer Offset" dialog. · a4c1e8a5
      Michael Natterer authored
      1999-07-22  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/channel_ops.[ch]: new ui for the "Layer Offset" dialog.
      
      	* app/channels_dialog.c
      	* app/layers_dialog.c: major code cleanup: Folded some callbacks
      	into common ones, "widget" instead of "w", indentation, ...
      
      	* app/commands.c
      	* app/interface.[ch]
      	* app/global_edit.c: the query boxes must be shown by the caller
      	now. There's no need to split up the string for the message box
      	manually as the Gtk 1.2 label widget handles newlines corectly.
      	Added the "edge_lock" toggle to the "Shrink Selection" dialog.
      	Nicer spacings for the query and message boxes.
      
      	* app/ink.c: tried to grab the pointer in the blob preview but
      	failed. Left the code there as a reminder (commented out).
      
      	* app/menus.c: reordered <Image>/Select.
      
      	I was bored and grep-ed the sources for ancient or deprecated stuff:
      
      	* app/about_dialog.[ch]
      	* app/actionarea.[ch]
      	* app/app_procs.c
      	* app/brush_edit.c
      	* app/brush_select.c
      	* app/color_select.c
      	* app/convert.c
      	* app/devices.c
      	* app/gdisplay.c
      	* app/gdisplay_ops.c
      	* app/histogram_tool.[ch]
      	* app/info_window.c
      	* app/install.c
      	* app/ops_buttons.c
      	* app/palette.c
      	* app/palette_select.c
      	* app/paths_dialog.c
      	* app/pattern_select.c
      	* app/resize.c
      	* app/scale_toolc.c
      	* app/text_tool.c:
      	s/container_border_width/container_set_border_width/g,
      	s/sprintf/g_snprintf/g, replaced some constant string lengths with
      	strlen(x).
      
      	* app/bezier_select.c
      	* app/blend.c
      	* app/boundary.c
      	* app/errors.[ch]
      	* app/free_select.c
      	* app/gimpbrushlist.c
      	* app/gimprc.c
      	* app/iscissors.c
      	* app/main.c
      	* app/patterns.[ch]
      	* app/text_tool.c: namespace fanaticism: prefixed all gimp error
      	functions with "gimp_" and formated the messages more uniformly.
      
      	* app/gradient.c
      	* app/gradient_select.c: same stuff as above for the ui
      	code. There are still some sub-dialogs which need cleanup.
      
      	Did some cleanup in most of these files: prototypes, removed tons
      	of #include's, i18n fixes, s/w/widget/ as above, indentation, ...
      a4c1e8a5
  15. 20 Jul, 1999 1 commit
  16. 14 Jul, 1999 1 commit
  17. 06 Jul, 1999 1 commit
    • Michael Natterer's avatar
      app/airbrush.c app/blend.c app/bucket_fill.c app/clone.c app/convolve.c · 1058f41d
      Michael Natterer authored
      1999-07-06  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
              * app/airbrush.c
              * app/blend.c
              * app/bucket_fill.c
              * app/clone.c
              * app/convolve.c
              * app/dodgeburn.c
              * app/eraser.c
              * app/ink.c
              * app/paintbrush.c
              * app/pencil.c
              * app/smudge.c: get opacity/paint mode from the current context
              (currently always the user context).
      
              * app/gimage_mask.c: the "stroke" command uses the paintbrush's
              settings if the current context is the user context and we are in
              per-tool paint options mode.
      
              * app/context_manager.[ch]
              * app/paint_options.h
              * app/preferences_dialog.c
              * app/tool_options.c
              * app/tools.c: moved the global/per-tool paint options switching
              to the context manager. The tool options themselves only contain
              the widgets for them now. This should fix the segfaults happening
              in per-tool mode.
      	Removed the disclaimer from the prefs. dlg. as it seems to work
      	now. The impl. in the context manager however is still a hack.
      
              * app/brush_select.c
              * app/brushes_cmds.c
              * tools/pdbgen/pdb/brushes.pdb: same as above.
      
              * app/lc_dialog.c: minimal code reduction. No functionality changed.
      1058f41d
  18. 02 Jul, 1999 1 commit
    • Michael Natterer's avatar
      the Tool structure is now allocated by a common constructor which sets · a60b2c2f
      Michael Natterer authored
      1999-07-02  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/[all tools]: the Tool structure is now allocated by a common
      	constructor which sets default values and provides default tool
      	action functions. To get rid of much code duplication there should
      	be a object hierarchy of tools.
      
      	* app/context_manager.c
      	* app/tools.[ch]: create and destroy private contexts for the
      	paint tools on startup and exit. They are not used yet.
      
      	* app/interface.c
      	* app/menus.c
      	* app/tools.h: num_tools is now exported in tools.h
      
      	* app/commands.c
      	* app/gdisplay.c
      	* app/menus.c: made "Toggle Selection" a toggleable menu item.
      a60b2c2f
  19. 26 Jun, 1999 1 commit
    • Michael Natterer's avatar
      app/[all tool related files] app/commands.c app/disp_callbacks.c · c456ba93
      Michael Natterer authored
      1999-06-26  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/[all tool related files]
      	* app/commands.c
      	* app/disp_callbacks.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/interface.c: hopefully fixed the bugs that appeared with my
      	last fix. And some more changes...
      
      	- Slightly changed the conditions which cause the tools to be
      	  re-initialized on button_press events and the global
      	  initialisation functions.
      	- The dialog tools now explicitly set tool->gdisp_ptr so they can
      	  be properly hidden on display deletion.
      	- Create the crop info dialog only once and avoid ugly redraw bugs
      	  by blocking the sizeentries' signal when initializing them.
      	- Standardized the tools_new_<tool>() functions. They are
      	  scheduled to be moved to a common constructor in tools.c
      	- Various stuff...
      c456ba93
  20. 21 Jun, 1999 1 commit
    • Michael Natterer's avatar
      namespace cleanups. · f1b5e1ae
      Michael Natterer authored
      1999-06-21  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/context_manager.c: namespace cleanups.
      
      	* app/commands.[ch]
      	* app/menus.c: moved the "Toggle Selection" menu entry to "View",
      	sprinkled some separators and made the layers/channels/paths popup
      	menus consistent with Tigert's last ops buttons change.
      
      	* app/fileops.c
      	* app/plug_in.c: check for gdisplay_active() returning NULL in
      	some more places.
      
      	* app/[all tool related files]:
      
      	- Turned the ToolAction and ToolState #define's into typedef'ed
      	  enums, so the compiler can do some more sanity checking.
      	- Removed one more unused global variable "active_tool_layer".
      	- Removed some #include's from tools.c.
      	- Standardized the individual tools' structure names.
      	- Moved showing/hiding the tool options to separate functions.
      	- Stuff...
      
      	* app/commands.c
      	* app/disp_callbacks.c
      	* app/gdisplay.c
      	* app/tools.c: fixed the segfaults which happened when the image
      	of one of the tools which have dialogs (levels/posterize/...) was
      	deleted. My approach was to do stricter sanity checking and to set
      	some gdisplay pointers correctly where appropriate, so I can't
      	tell exactly where the bug was.
      	The curves tool now(??) updates on every _second_ display change
      	only, which is really obscure.
      	Finding/changing the display to operate on should definitely be
      	done by connecting to the user context's "display_changed"
      	signal.
      
      	* app/gimpset.c: emit the "remove" signal _after_ removing the
      	pointer from the set. If this was not a bug but a feature, please
      	let me know, we'll need two signals then.
      f1b5e1ae
  21. 04 May, 1999 1 commit
    • Tor Lillqvist's avatar
      Win32 portability changes: · 1dea4958
      Tor Lillqvist authored
      	* config.h.win32, README.win32: Small changes.
      
      	* tools/pdbgen/pdb/*.pdb: Include <string.h>.
      
      	* app/*_cmds.c: Autogenerated files reflect above changes.
      
      	* libgimp/makefile.msc app/makefile.msc: Various updates,
       	including new object files. Gtk+ directory now should be called
       	gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
       	now should be called just glib.
      
      	* libgimp/gimp.def: Updates.
      
      	* libgimp/gimpfeatures.h.win32: Made current with
       	gimpfeatures.h.in.
      
      	* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
       	necessary.
      
      	* tools/pdbgen/pdb/fileops.pdb: Must have a
       	statement (even an empty one) after a label.
      
      	* app/fileops_cmds.c: Autogenerated file reflects above changes.
      
      	* app/crop.c: Include <string.h>.
      
      	* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
       	plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
       	_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
       	runtime, even if we might be compiling with gcc.)
      
      	* app/fileops.c: Don't include <process.h> here.
      
      	* app/fileops.h: Do include <process.h> here.
      
      	* app/gimpparasite.c: Include config.h, guard inclusion of
       	<unistd.h>. (Is the inclusion of unistd.h in source files all over
       	the place really necessary?)
      
      	* app/ink.c: MSC doesn't handle conversion from unsigned __int64
       	to double, so cast to signed.
      
      	* app/lut_funcs.c: Include config.h, and define rint() if necessary.
      
      	* app/pixel_processor.c: Include config.h without "..", like in
       	all the other places. Include <string.h>
      
      	* app/text_tool.c: Guard the "POINTS" identifier that clashes with
       	<windows.h>, sigh.
      1dea4958
  22. 30 Apr, 1999 1 commit
    • Manish Singh's avatar
      listed tools first in SUBDIRS, so xgettext can grab the autogenned files · 8b11c6c1
      Manish Singh authored
      * Makefile.am: listed tools first in SUBDIRS, so xgettext can grab
      the autogenned files
      
      * acconfig.h: removed unused HAVE_XSHM_H
      
      * tools/pdbgen/app.pl: added proc invoke method, nicer header
      formatting
      
      * tools/pdbgen/pdb/layer.pdb: use layer_mask type for return value
      for layer_create_mask
      
      * tools/pdbgen/pdb/misc.pdb: added quit proc
      
      * tools/pdbgen/pdb/tools.pdb: added ink proc, but not added to @procs
      since it's incomplete
      
      * tools/pdbgen/pdb/fileops.pdb: new file
      
      * app/Makefile.am: added fileops_cmds.c
      
      * app/app_procs.c
      * app/fileops.c
      * app/ink.c: removed PDB procs (the one in ink.c was incomplete)
      
      * app/fileops.h: exported load_procs, save_procs, and file_proc_find()
      
      * app/plug_in.h: exported enum, #include <sys/types.h>
      
      * app/brushes_cmds.c
      * app/fileops_cmds.c
      * app/layer_cmds.c
      * app/misc_cmds.c
      * app/parasite_cmds.c
      * app/patterns_cmds.c
      * app/procedural_db_cmds.c
      * app/text_tool_cmds.c
      * app/internal_procs.c: pdbgen updates
      
      * app/paint_funcs.c: the glibc 2.1 docs say using SVID threadsafe
      random functions are preferable to rand_r, so use them instead of
      a mutex
      
      -Yosh
      8b11c6c1
  23. 27 Apr, 1999 2 commits
  24. 22 Apr, 1999 1 commit
    • Michael Natterer's avatar
      First version of per-tool paint options. No PDB interface yet. The tool · ca2cbd32
      Michael Natterer authored
      1999-04-22  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	First version of per-tool paint options. No PDB interface yet.
      	The tool options dialog got rather big when in per-tool mode, so
      	it will probably have to become a notebook.
      
      	It's not yet 100% consistent. If switched off, everything should
      	behave exactly like before.
      
      	* app/Makefile.am
      	* app/paint_options.h: new file
      
      	* app/tool_options.c: PaintOptions gui. Maintain a list of all
      	paint tools' ToolOptions to enable switching between global and
      	per-tool paint options.
      
      	* app/brush_select.[ch]: changed packing boxes, tables, ...
      	The paint options in the brush selection can be hidden now.
      	Moved create_paint_mode_menu() to paint_options.h and
      	tool_options.c and renamed it to paint_mode_menu_new().
      
      	* app/gimage_mask.c
      	* app/gimpbrush.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/paint_core.c: moved gimp_brush_[set|get]_spacing() from
      	gimpbrushlist.[ch] to gimpbrush.[ch].
      	Moved gimp_brush_[get|set]_[opacity|paint_mode]() to
      	paint_options.h and tool_options.c and renamed them to
      	paint_options_*_*().  They are "global paint options" now.
      
      	* app/airbrush.c
      	* app/blend.c
      	* app/bucket_fill.c
      	* app/clone.c
      	* app/convolve.c
      	* app/eraser.c
      	* app/ink.c
      	* app/paintbrush.c
      	* app/pencil.c: all paint tools' options are derived from
      	"PaintOptions" now. Opacity and paint mode are obtained through
      	macros which take into account the current paint options mode.
      
      	* app/buildmenu.h: #include <gtk/gtk.h>
      
      	* app/color_picker.c
      	* app/text_tool.c: changed spacings.
      
      	* app/gimprc.[ch]: new gimprc option "global-paint-options"
      
      	* app/preferences_dialog.c: Added a "Tool Options" page. Code
      	cleanup. Some work on the convenience constructors test site.
      
      	* app/tools.c: fixed "unused variable" warning.
      ca2cbd32
  25. 17 Apr, 1999 1 commit
    • Michael Natterer's avatar
      app/bucket_fill.c app/clone.c app/convolve.c app/flip_tool.c app/ink.c · 2d54cc64
      Michael Natterer authored
      1999-04-18  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/bucket_fill.c
      	* app/clone.c
      	* app/convolve.c
      	* app/flip_tool.c
      	* app/ink.c
      	* app/paintbrush.c
      	* app/transform_tool.c: remember all radio buttons in the
      	ToolOptions structures. This enables arbitrary default values and
      	gui feedback for the "toggle key" feature.
      2d54cc64
  26. 12 Apr, 1999 1 commit
    • Michael Natterer's avatar
      app/airbrush.c app/bezier_select.c app/blend.c app/brightness_contrast.c · 8dbd5f9b
      Michael Natterer authored
      1999-04-12  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
              * app/airbrush.c
              * app/bezier_select.c
              * app/blend.c
              * app/brightness_contrast.c
              * app/bucket_fill.c
              * app/by_color_select.c
              * app/clone.c
              * app/color_balance.c
              * app/color_picker.c
              * app/convolve.c
              * app/crop.c
              * app/curves.c
              * app/ellipse_select.c
              * app/eraser.c
              * app/flip_tool.c
              * app/free_select.c
              * app/fuzzy_select.c
              * app/histogram_tool.c
              * app/hue_saturation.c
              * app/ink.c
              * app/iscissors.c
              * app/levels.c
              * app/magnify.c
              * app/move.c
              * app/paintbrush.c
              * app/pencil.c
              * app/posterize.c
              * app/rect_select.[ch]
              * app/text_tool.c
              * app/threshold.c
              * app/transform_tool.c
      
              * app/tools.[ch]
              * app/toolsF.h: again: all tools :(
      
              * app/Makefile.am
              * app/tool_options.[ch]
              * app/selection_options.h
              * app/tool_options_ui.h: new files.
      
              Ok, this time it's general enough for future extensions:
      
              - The tool options structures are organized like the gtk object
                system to allow derived tool options.
              - Renamed all create and reset functions to *_options_new() and
                *_options_reset() to reflect this.
              - Changed tools_register() again. Now it takes just a pointer to a
                ToolOptions structure.
              - Moved almost the entire tool options gui code to tool_options.c.
              - Visually separated the common selection options from the
                tool-specific ones. I'd like to do the same with opacity/paint
                mode in all paint tool options but I think this needs some more
                discussion.
      
              * app/histogram_tool.c: changed packing boxes, label alignments.
      
              * app/paintbrush.c: some more sensitive settings. The gradient
              feature can now be toggled with a button. Hopefully didn't break
              anything.
      8dbd5f9b
  27. 10 Apr, 1999 1 commit
  28. 08 Apr, 1999 1 commit
    • Michael Natterer's avatar
      app/airbrush.c app/bezier_select.c app/blend.c app/brightness_contrast.c · f1b0a883
      Michael Natterer authored
      1999-04-08  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/airbrush.c
      	* app/bezier_select.c
      	* app/blend.c
      	* app/brightness_contrast.c
      	* app/bucket_fill.c
      	* app/by_color_select.c
      	* app/clone.c
      	* app/color_balance.c
      	* app/color_picker.c
      	* app/convolve.c
      	* app/crop.[ch]
      	* app/curves.c
      	* app/ellipse_select.c
      	* app/eraser.c
      	* app/flip_tool.c
      	* app/free_select.c
      	* app/fuzzy_select.c
      	* app/histogram_tool.c
      	* app/hue_saturation.c
      	* app/ink.c
      	* app/iscissors.c
      	* app/levels.c
      	* app/magnify.c
      	* app/move.c
      	* app/paintbrush.c
      	* app/pencil.c
      	* app/posterize.c
      	* app/rect_select.[ch]
      	* app/text_tool.[ch]
      	* app/threshold.c
      	* app/transform_tool.c
      
      	* app/tools.[ch]
      	* app/toolsF.h: in other words: all tools
      
      	Implemented the "reset tool options" feature.
      	- All tools register with a title string and a reset function now.
      	- The tool options' variables have two related <var>_d (default)
      	  and <var>_w (widget) variables to restore the default values.
      
      	"Standardized" the tool options UI:
      	- Put the stuff info a frame to give a hint that the dialog's
      	  contents will change.
      	- table layout, sensitive setting, spacings, borders, ...
      
      	As I had them all in my emacs simultaneously, I couldn't resist to
      	standardize the tools' *.c files declaration parts ;) Ansi stuff.
      f1b0a883
  29. 07 Mar, 1999 1 commit
  30. 03 Feb, 1999 1 commit
  31. 27 Nov, 1998 1 commit
  32. 26 Nov, 1998 1 commit
  33. 25 Nov, 1998 1 commit
  34. 23 Nov, 1998 1 commit
  35. 04 Oct, 1998 1 commit
  36. 15 Sep, 1998 1 commit
    • BST 1998  Adam D. Moss's avatar
      The facility to specify the background colour of a transparent/animated · 31088f3c
      BST 1998 Adam D. Moss authored
      Tue Sep 15 21:27:10 BST 1998  Adam D. Moss <adam@gimp.org>
      
      	* plug-ins/gif.c:
      	The facility to specify the background colour of
      	a transparent/animated GIF for non-transparent
      	viewers now works very much more consistantly.
      	The only situations in which it will fail to work
      	as expected now are those where file size can be reduced
      	(abeit not by much, as the plugin is sometimes more pessimistic
      	than it need be) by re-using an existing unused colour
      	index rather than using another bit per pixel in the
      	encoded file.  That will never be an issue with an image
      	which was freshly converted from RGB to INDEXED with the
      	Quantize option, as that option removes any unused colours
      	from the image.
      
      	Let me know if you find the consistancy/size tradeoff more
      	annoying than helpful and I can adjust it.  IMHO it is too
      	arcane a feature to present to any user as a runtime option.
      
      	* app/ink.c: #include <string.h> for a memset
      31088f3c
  37. 16 Aug, 1998 2 commits
  38. 15 Aug, 1998 1 commit
    • scott's avatar
      Another tile tweak. This one eliminates tile levels (which add · 85393964
      scott authored
      bookkeeping without being used).  Made copy_region more intelligent on
      when to use tile sharing; some changes made to pixel_regions to
      facilitate this.  Fixed a refcount problem with xcf load and probably
      a few other bugs that I've forgotten about.  Added a sanity check in
      set_undo_tiles to help with a problem larry is reporting with airbrush
      and xinput.  --sg
      85393964