1. 18 Nov, 2002 2 commits
    • Michael Natterer's avatar
      removed public function gimp_transform_tool_transform_tiles() and made it · c8a98076
      Michael Natterer authored
      2002-11-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.[ch]: removed public function
      	gimp_transform_tool_transform_tiles() and made it the default
      	implementation of the transform() virtual function. Added
      	"const gchar *progress_text" to GimpTransformTool so it is
      	available for the new default implementation. Cleanup.
      
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: removed transform() implementations
      	and set transform_tool->progress_text accordingly. Even more
      	cleanup.
      c8a98076
    • Michael Natterer's avatar
      removed unneeded #includes. · 80a11562
      Michael Natterer authored
      2002-11-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tool_manager.c: removed unneeded #includes.
      80a11562
  2. 17 Nov, 2002 1 commit
    • Michael Natterer's avatar
      compare the old and new angle using an epsilon of 0.0001 degrees so we · 7476328f
      Michael Natterer authored
      2002-11-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimprotatetool.c (roatate_angle_changed): compare the
      	old and new angle using an epsilon of 0.0001 degrees so we don't
      	get double "angle changed" because of rounding foobar.
      
      	* app/tools/gimptransformtool.c: made GimpTransformTool subclasses
      	which don't use the grid (namely the flip tool) work correctly
      	again by looking at transform_tool->use_grid more often.
      7476328f
  3. 14 Nov, 2002 2 commits
    • Michael Natterer's avatar
      Transform tool cleanup: · 7ee99ea3
      Michael Natterer authored
      2002-11-14  Michael Natterer  <mitch@gimp.org>
      
      	Transform tool cleanup:
      
      	* libgimptool/gimptoolenums.[ch]: removed the TransformState enum.
      
      	* app/tools/gimptransformtool.[ch]: don't dispatch everything
      	through the transform() virtual function. Added new vitrual
      	functions dialog(), prepare(), motion() and recalc(). Do only the
      	actual transform in transform(). Moved lots of logic which was
      	duplicated in each subclass' transform() here. Cleanup.
      
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: changed accordingly: moved code from
      	transform() to the other method imlementations. Removed duplicated
      	logic which is now done by our parent class. Makes everything
      	smaller and more readable.
      
      	InfoDialog cleanup:
      
      	* app/gui/info-dialog.c: removed the "delete_event" callback so
      	InfoDialog users can decide themselves what to do.
      
      	* app/gui/info-window.c
      	* app/tools/gimpmeasuretool.c: changed accordingly.
      
      	* app/tools/gimpcolorpickertool.c: ditto. Moved info_dialog
      	creation to a utility function to improve code readbility.
      
      	* app/tools/gimpcroptool.c: ditto. Added a "Cancel" button which
      	really cancels the tool instead of just hiding the dialog.
      
      	* app/tools/gimptransformtool.c: added a "Cancel" button here too.
      7ee99ea3
    • Michael Natterer's avatar
      removed the old hack which sets tool->gdisp. Fixes bug #98056. · 1f3bd288
      Michael Natterer authored
      2002-11-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/tools-commands.c (tools_select_cmd_callback): removed
      	the old hack which sets tool->gdisp. Fixes bug #98056.
      
      	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_initialize):
      	set tool->gdisp here because the hack was there for tools which
      	implement initialize() and show dialogs when selected from the
      	menu. Also fixed wrong paramater to gimp_viewable_dialog_new().
      1f3bd288
  4. 31 Oct, 2002 1 commit
    • Sven Neumann's avatar
      bumped version number to 1.3.10. · 00be6359
      Sven Neumann authored
      2002-11-01  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: bumped version number to 1.3.10.
      
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpvectortool.c: use shorter strings for the dockable
      	tabs.
      00be6359
  5. 29 Oct, 2002 1 commit
  6. 25 Oct, 2002 1 commit
    • Michael Natterer's avatar
      app/display/gimpdisplayshell.c app/gui/about-dialog.c · b5d27fc4
      Michael Natterer authored
      2002-10-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.c
      	* app/gui/about-dialog.c
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-commands.c
      	* app/gui/file-commands.c
      	* app/gui/palette-import-dialog.c
      	* app/tools/gimptexttool.c
      	* app/widgets/gimpdialogfactory.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpwidgets-utils.c
      	* libgimpwidgets/gimpfileselection.c
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/FractalExplorer/FractalExplorer.c
      	* plug-ins/common/AlienMap.c
      	* plug-ins/common/AlienMap2.c
      	* plug-ins/common/spheredesigner.c
      	* plug-ins/flame/flame.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gimpressionist/general.c
      	* plug-ins/gimpressionist/gimpressionist.c: replaced all sorts of
      	gtk_widget_show()/gdk_window_rise() combinations by
      	gtk_window_present().
      b5d27fc4
  7. 23 Oct, 2002 1 commit
    • Michael Natterer's avatar
      Moved generic datafile loading to LibGimpBase: · c7ac6aff
      Michael Natterer authored
      2002-10-23  Michael Natterer  <mitch@gimp.org>
      
      	Moved generic datafile loading to LibGimpBase:
      
      	* app/core/gimpdatafiles.[ch]: removed...
      
      	* libgimpbase/gimpdatafiles.[ch]: ...and add here with a changed
      	API which requires no more global variables.
      
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpbase.h
      	* libgimpbase/gimpbasetypes.h
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpdatafactory.c
      	* app/gui/gui.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/tools/tools.c: changed accordingly.
      
      	Moved module loading to LibGimpModule:
      
      	* app/core/gimpmodules.c: removed lots of code...
      
      	* libgimpmodule/gimpmoduledb.[ch]: ...and added it here as
      	GimpModuleDB object.
      
      	* libgimpmodule/Makefile.am
      	* libgimpmodule/gimpmoduletypes.h: changed accordingly.
      
      	* app/core/gimp.[ch]: replaced gimp->modules by gimp->module_db.
      
      	* libgimpmodule/gimpmodule.[ch]: added
      	gimp_module_query(). Internal cleanup. Stuff...
      
      	* app/gui/module-browser.c: changed accordingly. Unfinished...
      
      	* app/core/gimpcontainer.c
      	* app/core/gimplist.c: reverted the HACKS introduced recently.
      
      	* app/core/gimpobject.[ch]: added gimp_g_object_get_memsize()
      	utility function.
      
      	* libgimpproxy/gimpobject.[ch]: regenerated.
      
      	Changed display filter configuration stuff:
      
      	* libgimpwidgets/gimpcolordisplay.[ch]: made the virtual
      	configure() function return a GtkWidget instead of opening a
      	dialog. Changed configure_cancel() to configure_reset(). Added
      	"changed" signal.
      
      	* app/display/gimpdisplayshell-filter-dialog.c: embed the filters'
      	config GUI in the dialog. Connect to "changed" and added a "Reset"
      	button which resets the filter.
      
      	* modules/cdisplay_gamma.c
      	* modules/cdisplay_highcontrast.c: changed accordingly.
      
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c: minor fixes.
      
      2002-10-23  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpbase/libgimpbase-docs.sgml
      	* libgimpbase/libgimpbase-sections.txt
      	* libgimpbase/tmpl/gimpbasetypes.sgml
      	* libgimpbase/tmpl/gimpdatafiles.sgml: added GimpDatafiles
      
      	* libgimpmodule/libgimpmodule-docs.sgml
      	* libgimpmodule/libgimpmodule-sections.txt
      	* libgimpmodule/tmpl/gimpmoduledb.sgml: added GimpModuleDB.
      
      	* libgimpwidgets/libgimpwidgets.types: added gimp_dialog_get_type
      
      	* libgimpmodule/tmpl/gimpmodule.sgml
      	* libgimpwidgets/tmpl/gimpcolordisplay.sgml
      	* libgimpwidgets/tmpl/gimpdialog.sgml: updated.
      c7ac6aff
  8. 15 Oct, 2002 4 commits
    • Sven Neumann's avatar
      added the API for level correction using black, gray and white point. · bb2b9f68
      Sven Neumann authored
      2002-10-15  Sven Neumann  <sven@gimp.org>
      
      	* app/base/levels.[ch]: added the API for level correction using
      	black, gray and white point.
      
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimplevelstool.[ch]: misc smaller changes.
      
      	* app/widgets/gimphistogrambox.[ch]: allocate the buffer for the
      	gradient preview on size_allocate, not for every expose event.
      
      	* app/widgets/gimphistogramview.c: fixed drawing for width > 256.
      
      	* themes/Default/images/stock-color-picker-white-18.png: tweaked.
      bb2b9f68
    • Sven Neumann's avatar
      using gtk_image_new_from_pixmap() feels kinda lame. Draw the ink blob · 8a506276
      Sven Neumann authored
      2002-10-15  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpinktool.c: using gtk_image_new_from_pixmap() feels
      	kinda lame. Draw the ink blob directly in an expose handler instead.
      8a506276
    • Sven Neumann's avatar
      bd7e71dd
    • Sven Neumann's avatar
      app/tools/gimphistogramtool.c app/tools/gimplevelstool.[ch] · 9a9009ba
      Sven Neumann authored
      2002-10-15  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpthresholdtool.c
      	* app/widgets/gimphistogrambox.[ch]
      	* app/widgets/gimphistogramview.[ch]: started to clean up histogram
      	code. Moved the gradient into the GimpHistogramBox. Draw only in the
      	expose event handler.
      9a9009ba
  9. 14 Oct, 2002 2 commits
    • Dave Neary's avatar
      app/tools/gimpinktool.c Remooved warnings by including string.h, and · 29cb0e89
      Dave Neary authored
      
      2002-10-15  Dave Neary  <bolsh@gimp.org>
              * app/tools/gimpinktool.c
              * app/tools/gimptexttool.c: Remooved warnings by
              including string.h, and changing from gtk_pixmap_new()
              to gtk_image_new_from_pixmap().
      29cb0e89
    • Sven Neumann's avatar
      added convenience function gimp_display_coords_in_active_drawable(). · 63035799
      Sven Neumann authored
      2002-10-14  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplay.[ch]: added convenience function
      	gimp_display_coords_in_active_drawable().
      
      	* app/tools/gimpcurvestool.c: indicate the possibility to pick color
      	values from the image by showing a color picker cursor. Made the
      	file selection dialog transient for the tool shell.
      
      	* app/tools/gimplevelstool.c: made the file selection dialog
      	transient for the tool shell.
      63035799
  10. 13 Oct, 2002 2 commits
    • Sven Neumann's avatar
      themes/Default/images/stock-color-picker-black-18.png · 7c241ea2
      Sven Neumann authored
      2002-10-13  Sven Neumann  <sven@gimp.org>
      
      	* themes/Default/images/stock-color-picker-black-18.png
      	* themes/Default/images/stock-color-picker-gray-18.png
      	* themes/Default/images/stock-color-picker-white-18.png: new icons.
      
      	* libgimpwidgets/gimpstock.[ch]
      	* themes/Default/images/Makefile.am: added the new color picker icons.
      
      	* app/tools/gimplevelstool.c: added the GUI that will allow to pick
      	the white, gray and black point from the image.
      7c241ea2
    • Manish Singh's avatar
      #include <stdio.h> · 669e3708
      Manish Singh authored
      2002-10-13  Manish Singh  <yosh@gimp.org>
      
              * app/tools/gimptexttool.c: #include <stdio.h>
      669e3708
  11. 11 Oct, 2002 1 commit
  12. 10 Oct, 2002 2 commits
  13. 09 Oct, 2002 2 commits
    • Sven Neumann's avatar
      app/tools/gimptexttool.c app/widgets/gimpfontselection.[ch] started to · 4c7b8a37
      Sven Neumann authored
      2002-10-09  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptexttool.c
      	* app/widgets/gimpfontselection.[ch]
      	* app/widgets/gimpwidgets-utils.[ch]: started to implement the
      	text tool GUI as suggested in #84151.
      4c7b8a37
    • Sven Neumann's avatar
      new files that implement the text rendering that used to live in · 29a75b7b
      Sven Neumann authored
      2002-10-09  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-text.[ch]: new files that implement the text
      	rendering that used to live in gimptexttool.[ch].
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/tools/gimptexttool.[ch]
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/pdb/text_tool.pdb: changed accordingly.
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/text_tool_cmds.c: regenerated.
      29a75b7b
  14. 27 Sep, 2002 1 commit
  15. 17 Sep, 2002 1 commit
    • Sven Neumann's avatar
      app/gui/file-new-dialog.c app/gui/preferences-dialog.c · 8ccbf199
      Sven Neumann authored
      2002-09-17  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/file-new-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/tools/gimpimagemaptool.c
      	* app/widgets/gimpfontselection-dialog.c: place the Cancel button
      	next to the confirmative button as suggested by the HIG.
      8ccbf199
  16. 11 Sep, 2002 1 commit
  17. 08 Sep, 2002 1 commit
    • Michael Natterer's avatar
      app/widgets/gimplayerlistview.c some more auto-sizing spinbuttons. · 5dc2b347
      Michael Natterer authored
      2002-09-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimplayerlistview.c
      	* app/gui/channels-commands.c: some more auto-sizing spinbuttons.
      
      	* app/gui/offset-dialog.c: added mnemonics for "X" and "Y".
      
      	Dialog auto-hide cleanup:
      
      	* app/widgets/gimpviewabledialog.c: close the dialog when the
      	GimpViewable goes away (special cased GimpItems which become
      	invisible on "removed"). Close the dialog by syntesizing a
      	"delete_event" instead of simply hiding or destroying it so the
      	closing method of the dialog's user gets invoked.
      
      	* app/gui/resize-dialog.[ch]: don't do the same here. Simplifies
      	the API even more as we don't have to pass the object to watch any
      	more.
      
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c: changed accordingly.
      
      	* app/undo_history.c
      	* app/gui/convert-dialog.c
      	* app/gui/qmask-commands.c
      	* app/gui/vectors-commands.c: removed all dialog auto-hiding which
      	is now done by GimpViewableDialog. Also connect more close
      	callbacks to gtk_widget_destroy() and handle shell destruction
      	accordingly, so these pseudo widgets behave more like real ones.
      
      	Tool-dialog auto-hide fix:
      
      	* app/tools/tool_manager.c: never call a tool's initialize()
      	method with a NULL gdisp (I can't follow why we did this before
      	because it's conceptually broken and makes the semantics of
      	initialize() more than unclear).
      	To be sure, added g_return_if_fail(GIMP_IS_DISPLAY(gdisp)) to
      	tool_manager_initialize_active().
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: removed the recently added code
      	for handling NULL displays in initialize().
      5dc2b347
  18. 07 Sep, 2002 1 commit
    • Michael Natterer's avatar
      Histogram cleanup: · f54912e1
      Michael Natterer authored
      2002-09-07  Michael Natterer  <mitch@gimp.org>
      
      	Histogram cleanup:
      
      	* app/base/gimphistogram.c: Added g_return_if_fail() to all public
      	functions, reordered stuff, cleanup (no logic changed).
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimphistogrambox.[ch]: new widget containing a
      	GimpHistogramView and two range spinbuttons (as known from the
      	threshold tool). Users only need to connect to the histogram
      	view's "range_changed" signal. The spinbuttons are handled
      	internally.
      
      	* app/widgets/gimphistogramview.[ch]: define it's default size in
      	the header. Make sure "start" is always smaller than "end". Emit
      	"range_changed" in gimp_histogram_view_set_range().
      
      	* app/tools/gimplevelstool.c: changed accordingly.
      
      	* app/tools/gimpthresholdtool.[ch]: removed the code which
      	did the same and use the new widget.
      
      	* app/tools/gimphistogramtool.[ch]: ditto. Removed the "intensity"
      	info label. Cleanup.
      f54912e1
  19. 06 Sep, 2002 2 commits
    • Hans Breuer's avatar
      updated · e17baf71
      Hans Breuer authored
      2002-09-06  Hans Breuer  <hans@breuer.org>
      
      	* */*/makefile.msc : updated
      
      	* libgimptool/makefile.msc : new file, libgimptool
      	is currently build as static lib due to references
      	into app/core
      
      	* themes/Default/makefile.msc : removed
      	* themes/Default/images/makefile.msc : new file
      
      	* libgimpwidgets/makefile.msc libgimpwidgets/gimpwidgets.c
      	updated (externals)
      
      	* app/paint-funcs.c : replaced gccism varibale size array on
      	stack with portable alloca, removed sizeof(buf) check which
      	must fail now.
      
      	* app/config/gimpconfig.c : get write/close protos
      	on win32 from io.h
      	* app/config/gimprc.c : dito and <string.h>
      	* app/config/gimpscanner.c : <string.h> only
      
      	* app/core/gimpcontainer.c : workaround for clumsy
      	compilers not supporting vararg macros
      
      	* app/core/gimpdocumentlist.c app/core/gimpparasitelist.c
      	include <io.h> on win32
      
      	* app/widgets/gimpdocumentview.c
      	  app/widgets/gimpimagedock.c
      	  app/widgets/gimppreview.c : add #ifdef __GNUC__
      	to avoid breaking on non standard pragma #warning.
      
      	* app/gui/session.c : include <string.h>
      
      	* regexrepl/makefile.msc : build as dll
      
      	* plug-ins/makefile.msc : updated
      
      	* plug-ins/common/pix.c : open file binary
      
      	* plug-ins/common/spheredesigner.c : avoid error
      	'incompatible types' while assigning, use memcpy()
      e17baf71
    • Michael Natterer's avatar
      changed "Number of Colors" to "Max Number of Colors" to clarify what this · 424ed1f4
      Michael Natterer authored
      2002-09-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/convert-dialog.c: changed "Number of Colors" to
      	"Max Number of Colors" to clarify what this parameter does.
      	(fixes #92194).
      
      	* app/gui/menus.c: use GIMP_STOCK_INFO for "View/Info Window".
      
      	Specify spibutton sizes in chars, not pixels (eek) all over
      	the place. Also removed explicit sizes where the GtkSpinButton
      	default size does not disturbe tabular widget layouts.
      
      	* libgimpwidgets/gimpwidgets.c: removed the hardcoded width of 75
      	pixels in gimp_spin_button_new(). Changed gimp_scale_entry_new()
      	and gimp_coordinates_new() to interpret their "spinbutton_width"
      	parameters as chars if < 16, and as pixels otherwise. This gives
      	reasonable results and doesn't cause unchanged plug-ins to
      	suddenly have spinbuttons of dozens of chars width :)
      
      	* libgimpwidgets/gimpsizeentry.c: added the same heuristic here.
      
      	* libgimpwidgets/gimpquerybox.c
      	* app/gui/color-notebook.c
      	* app/gui/convert-dialog.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/paint_options.c
      	* app/tools/selection_options.c
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimppaletteeditor.c: changed accordingly.
      
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/FractalExplorer/FractalExplorer.c
      	* plug-ins/Lighting/lighting_ui.c
      	* plug-ins/common/AlienMap.c
      	* plug-ins/common/AlienMap2.c
      	* plug-ins/common/CML_explorer.c
      	* plug-ins/common/bumpmap.c
      	* plug-ins/common/checkerboard.c
      	* plug-ins/common/cubism.c
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/depthmerge.c
      	* plug-ins/common/despeckle.c
      	* plug-ins/common/diffraction.c
      	* plug-ins/common/emboss.c
      	* plug-ins/common/film.c
      	* plug-ins/common/flarefx.c
      	* plug-ins/common/fractaltrace.c
      	* plug-ins/common/gauss_iir.c
      	* plug-ins/common/gauss_rle.c
      	* plug-ins/common/glasstile.c
      	* plug-ins/common/grid.c
      	* plug-ins/common/illusion.c
      	* plug-ins/common/iwarp.c
      	* plug-ins/common/jigsaw.c
      	* plug-ins/common/lic.c
      	* plug-ins/common/max_rgb.c
      	* plug-ins/common/mblur.c
      	* plug-ins/common/newsprint.c
      	* plug-ins/common/nova.c
      	* plug-ins/common/pixelize.c
      	* plug-ins/common/sample_colorize.c
      	* plug-ins/common/scatter_hsv.c
      	* plug-ins/common/shift.c
      	* plug-ins/common/sinus.c
      	* plug-ins/common/sparkle.c
      	* plug-ins/common/spread.c
      	* plug-ins/common/tile.c
      	* plug-ins/common/tileit.c
      	* plug-ins/common/unsharp.c
      	* plug-ins/common/vpropagate.c
      	* plug-ins/common/waves.c
      	* plug-ins/common/whirlpinch.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/mosaic/mosaic.c
      	* plug-ins/rcm/rcm_dialog.c: changed accordingly, which involves
      	removals of gtk_widget_set_size_request(spinbutton), removal of
      	lots of explicit spinbutton sizes in gimp_scale_entry_new(), and
      	adding of new ones because GtkSpinButton's auto-size trashed
      	tabular layouts.
      
      	Lots of cleanup & indentation while browsing the plug-ins'
      	code. Changed spacings, moved toggle buttons into frame titles,
      	use stock items, stuff...
      424ed1f4
  20. 05 Sep, 2002 1 commit
  21. 04 Sep, 2002 1 commit
    • Michael Natterer's avatar
      More color correction stuff cleanup: · 163a3f41
      Michael Natterer authored
      2002-09-04  Michael Natterer  <mitch@gimp.org>
      
      	More color correction stuff cleanup:
      
      	* app/base/Makefile.am
      	* app/base/base-types.h
      	* app/base/levels.[ch]: new files containing levels_lut_func(), a
      	new "Levels" parameter struct and the "auto levels" stuff.
      
      	* app/base/lut-funcs.[ch]: removed the levels stuff here, added
      	lots of g_return_if_fail().
      
      	* app/base/color-balance.[ch]
      	* app/base/hue-saturation.[ch]: added init() and reset() functions
      	so we don't need to duplicate this code in the tool and the pdb
      	wrappers.
      
      	* app/base/curves.[ch]: s/gint/GimpHistogramChannel/g, made
      	curves_channel_reset() initialize the curves array.
      
      	* app/tools/gimpcolorbalancetool.[ch]: use the new functions,
      	moved the "Range" frame to the top, added a per-range "Reset"
      	button, made the global "Reset" button reset all ranges and
      	the "Preserve Luminosity" toggle.
      
      	* app/tools/gimpcurvestool.[ch]: don't initialize the curves
      	array manually, as curves_channel_reset() does that,
      	s/gint/GimpHistogramChannel/g.
      
      	* app/tools/gimphuesaturationtool.c: use the new functions, added
      	a per-channel "Reset" button and made the global "Reset" button
      	reset all channels, cleaned up the GUI update function.
      
      	* app/tools/gimplevelstool.[ch]: changed to use the new Levels
      	parameter struct and it's utility functions. Removed stuff
      	which now lives in base/levels.c
      
      	* app/tools/gimpimagemaptool.c: align the "Preview" button
      	bottom-left, not bottom-right.
      
      	* tools/pdbgen/pdb/color.pdb: use the new stuff and removed
      	uglyness because using the "Levels" struct makes the code more
      	straightforward.
      
      	* app/pdb/color_cmds.c: regenerated.
      163a3f41
  22. 02 Sep, 2002 2 commits
    • Michael Natterer's avatar
      DND cleanup part 1: · c5d4b702
      Michael Natterer authored
      2002-09-02  Michael Natterer  <mitch@gimp.org>
      
      	DND cleanup part 1:
      
      	* app/widgets/gimpdnd.[ch]: changed all gimp_dnd_*_dest_set() and
      	_unset() functions to _dest_add() and _dest_remove(). Switch from
      	using static arrays of GtkTargetEntries to dynamic GtkTargetLists.
      	The _add() and _remove() functions configure the drag dest
      	automatically if not already done, so there is no need to call
      	gtk_drag_dest_set() on the widget any more. Drag source cleanup
      	will follow...
      
      	Renamed silly function names gimp_gtk_* to gimp_dnd_*
      
      	* app/display/gimpdisplayshell.c
      	* app/tools/gimpblendtool.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcontainerview.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpmenuitem.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox-color-area.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptoolbox.c
      	* app/gui/about-dialog.c
      	* app/gui/color-select.c
      	* app/gui/device-status-dialog.c
      	* app/gui/tool-options-dialog.c: changed accordingly. Removed
      	all calls to gtk_drag_dest_set() and their GtkTargetEntry tables.
      
      	* app/widgets/gimpchannellistitem.c: enabled some commented out
      	dnd code (which will not work since dnd needs more love...)
      
      	* app/widgets/gimpitemlistview.[ch]: added a third
      	"gboolean interactive" parameter to GimpItemNewFunc.
      
      	* app/gui/channels-commands.[ch]
      	* app/gui/layers-commands.[ch]
      	* app/gui/vectors-commands.[ch]: if the new_item_func is called
      	with "interactive == FALSE", don't pop up a dialog but silently
      	create a new item of the image's size.
      
      	* app/widgets/gimpdrawablelistview.c: use the new feature to allow
      	color and pattern drops to the "New" button, which creates a new
      	layer/channel filled with the color/pattern.
      	(special feature for drc ;-)
      
      	* app/widgets/gimppaletteeditor.c: fixed event handling so we see
      	the context menu again. Also, don't redraw on "expose", since
      	GtkPreview does that for us.
      c5d4b702
    • Michael Natterer's avatar
      manually add the src_drawable's offsets instead of implicitly using the · 8ab7bfb3
      Michael Natterer authored
      2002-09-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpclonetool.c (gimp_clone_tool_draw): manually add
      	the src_drawable's offsets instead of implicitly using the
      	offsets of the active_drawable (fixes #92311).
      8ab7bfb3
  23. 01 Sep, 2002 1 commit
    • Michael Natterer's avatar
      GimpViewableDialogs everywhere, cleanup: · ce956702
      Michael Natterer authored
      2002-09-01  Michael Natterer  <mitch@gimp.org>
      
      	GimpViewableDialogs everywhere, cleanup:
      
      	* libgimpwidgets/gimpstock.c: added texts for the RESIZE, SCALE
      	and CROP stock items.
      
      	* app/widgets/gimpviewabledialog.c: update the title when the
      	viewable's name changes.
      
      	* app/gui/color-notebook.[ch]: added color_notebook_viewable_new()
      	which creates a GimpViewableDialog.
      
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/gui/colormap-editor-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/palette-editor-commands.c
      	* app/undo_history.c: use GimpViewableDialogs and the new
      	color_notebook constructor.
      
      	* app/gui/convert-dialog.c: #include "widgets/gimpviewabledialog.h"
      
      	* app/gui/image-commands.c
      	* app/gui/info-dialog.c
      	* app/gui/resize-dialog.c: minor cleanups.
      
      	* app/gui/info-window.c: cleaned up the whole thing, esp. the
      	"Extended" page. Added HSV color display to the color picker
      	frame.  Set the icons as frame titles, stuff...
      
      	* app/tools/gimpimagemaptool.[ch]: removed "shell_title",
      	"shell_name" and "stock_id" from the GimpImageMapTool struct
      	because they can be obtained from the tool's GimpToolInfo object.
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: changed accordingly.
      
      	* app/tools/gimphistogramtool.c: same here: take values from
      	tool->tool_info instead of hardcoding them.
      
      	* app/tools/gimpcroptool.[ch]: removed the static crop dialog
      	variables and added them to the GimpCropTool struct. Feels safer
      	and makes the callback code much simpler. Use stock items for the
      	dialog's "Resize" and "Crop" buttons.
      
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimprotatetool.c: for consistency don't name the tools
      	"Blah Tool", also the dialog titles need to match the menu
      	entries.
      
      	Unrelated:
      
      	* libgimpwidgets/gimpwidgets.c: the recently changed, gtk-doc
      	comment was correct, as gtk-doc takes the parameter names from
      	the header, not the .c file.
      
      	* app/tools/gimptransformtool.c: set the transform tool's state to
      	TRANSFORM_CREATING after changing displays, so the initial matrix
      	components are saved correctly for the "Reset" function.
      ce956702
  24. 30 Aug, 2002 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new dialog widget · cc3bdec2
      Michael Natterer authored
      2002-08-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpviewabledialog.[ch]: new dialog widget featuring
      	a title bar containing a stock icon, a description, the viewable's
      	name and a preview. Will be used for all viewable related dialogs
      	and serves as a common place to control their look & feel.
      
      	* app/tools/gimpimagemaptool.[ch]: removed the code which did
      	almost the same and use GimpViewableDialog.
      
      	* app/gui/info-dialog.[ch]: extended the API so it has enough
      	information to create a GimpViewableDialog.
      
      	* app/gui/channels-commands.c
      	* app/gui/convert-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/qmask-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: use GimpViewableDialogs
      
      	* themes/Default/gtkrc: apply the dialog style to "*Gimp*Dialog*",
      	not only "*GimpDialog*" so it covers GimpViewableDialog.
      cc3bdec2
  25. 28 Aug, 2002 1 commit
    • Michael Natterer's avatar
      added a tool icon and descriptive string to the dialog's title box. Create · 14e0d073
      Michael Natterer authored
      2002-08-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.[ch]: added a tool icon and
      	descriptive string to the dialog's title box. Create the
      	drawable preview with is_popup == TRUE so it doesn't show
      	layers in the image context. Still not perfect...
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: Chain up early in initialize()
      	and return if gdisp == NULL. Set stock_id and desc_text so
      	GimpImageMapTool can display them. Added lots of mnemonics
      	(#80804). Use gimp_size_entry_new() instead of manually creating
      	the slider+spinbutton stuff.
      
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimplevelstool.c: changed widgets packing to make them
      	resizable without strange effects. Put the "Load", "Save" and
      	"Auto" buttons into a frame.
      
      	* app/tools/gimphuesaturationtool.c: use GimpColorAreas instead of
      	deprecated GtkPreviews. Arranged the color previews and their
      	radio buttons as a color wheel. Not the best solution maybe but
      	IMHO better than the old GUI.
      14e0d073
  26. 27 Aug, 2002 2 commits
  27. 26 Aug, 2002 1 commit
    • Michael Natterer's avatar
      Color correction tool chopping: · 1186e83a
      Michael Natterer authored
      2002-08-26  Michael Natterer  <mitch@gimp.org>
      
      	Color correction tool chopping:
      
      	* app/Makefile.am
      	* app/image_map.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpimagemap.[ch]: ...and added here as object.
      
      	* app/base/Makefile.am
      	* app/base/base-types.h
      	* app/base/color-balance.[ch]
      	* app/base/curves.[ch]
      	* app/base/hue-saturation.[ch]
      	* app/base/threshold.[ch]: the lowlevel color correction functions
      	plus their parameter structs cut out of the resp. tools.
      
      	* app/core/core-enums.[ch]: removed GimpTransferMode enum...
      
      	* app/base/base-enums.[ch]: ...added it here. Also added
      	GimpHueRange for the new hue-saturation files.
      
      	* tools/pdbgen/enums.pl
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c: regenerated.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpcolorbalancetool-transfer.c: removed (code went
      	to base/color-balance.c).
      
      	* app/tools/gimpimagemaptool.[ch]: added most code which was
      	diplicated in subclasses. Create the dialog here with a nice title
      	bar including image preview and name (fixes #66033). Added virtual
      	functions map(), dialog() and reset() which need to be implemented
      	by subclasses.
      
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpcolorbalancetool.[ch]
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimphuesaturationtool.[ch]
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpposterizetool.[ch]
      	* app/tools/gimpthresholdtool.[ch]: removed tons of duplicated
      	code and simply implement GimpImageMapTool's virtual functions.
      	Removed all dialog structs and keep the variables in the tool
      	structs. The dialogs are now created on-the-fly and destroyed when
      	the tool goes away, which makes all callbacks much simpler and
      	safer. Lots of GUI & code cleanup in all dialogs.
      
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c: added separate "Reset Channel"
      	buttons and let the global "Reset" buttons reset all color
      	channels.
      
      	* app/tools/tools.c: the various antique foo_free() functions
      	don't exist any more.
      
      	* app/tools/gimphistogramtool.c: removed ImageMap field from
      	dialog struct (it was unused). Cleaned up dialog a bit.
      
      	* tools/pdbgen/Makefile.am: don't scan tools/gimphuesaturationtool.h
      	for enums.
      
      	* tools/pdbgen/pdb/color.pdb: use the new stuff from base/ and
      	don't include stuff from tools/ any more.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/paint_tools_cmds.c: regenerated.
      1186e83a
  28. 22 Aug, 2002 1 commit
    • Michael Natterer's avatar
      bumped version number to 1.3.9 · e62c2c58
      Michael Natterer authored
      2002-08-22  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: bumped version number to 1.3.9
      
      	* app/tools/gimpbycolorselecttool.[ch]: removed the ByColorDialog
      	and cleaned up the code.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpselectioneditor.[ch]: added new widget
      	GimpSelectionEditor with same same functionality as the old
      	ByColorDialog which can be open all the time (independent of the
      	active tool).
      
      	* app/widgets/gimppreview.[ch]: added gimp_preview_new_by_type()
      	so previews can be created without a viewable.
      
      	* app/widgets/gimppreview-utils.[ch]: changed
      	gimp_preview_type_from_viewable() to
      	gimp_preview_type_from_viewable_type().
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/menus.c: register the new dialog type.
      e62c2c58