1. 29 Dec, 2001 1 commit
    • Michael Natterer's avatar
      app/gimpprogress.c app/nav_window.c app/ops_buttons.c app/undo_history.c · 14d0a3ff
      Michael Natterer authored
      2001-12-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpprogress.c
      	* app/nav_window.c
      	* app/ops_buttons.c
      	* app/undo_history.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/about-dialog.c
      	* app/gui/brush-editor.c
      	* app/gui/channels-commands.c
      	* app/gui/color-area.c
      	* app/gui/color-notebook.c
      	* app/gui/color-select.c
      	* app/gui/colormap-dialog.c
      	* app/gui/convert-dialog.c
      	* app/gui/device-status-dialog.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/info-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/palettes-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/qmask-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/resolution-calibrate-dialog.c
      	* app/gui/splash.c
      	* app/gui/tips-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/user-install-dialog.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/paint_options.c
      	* app/tools/selection_options.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpconstrainedhwrapbox.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerlistview.c
      	* app/widgets/gimpcontainermenuimpl.c
      	* app/widgets/gimpdialogfactory.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdock.c
      	* app/widgets/gimpdockbook.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpfontselection-dialog.c
      	* app/widgets/gimphistogramview.c
      	* app/widgets/gimpitemfactory.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplistitem.[ch]
      	* app/widgets/gimpmenuitem.c
      	* app/widgets/gimppreview.[ch]
      	* app/widgets/gtkhwrapbox.c
      	* app/widgets/gtkvwrapbox.c
      	* app/widgets/gtkwrapbox.c
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpexport.c
      	* libgimp/gimpgradientmenu.c
      	* libgimp/gimpmenu.c
      	* libgimp/gimppatternmenu.c
      	* libgimpwidgets/gimpbutton.c
      	* libgimpwidgets/gimpchainbutton.[ch]
      	* libgimpwidgets/gimpcolorarea.h
      	* libgimpwidgets/gimpcolorbutton.c
      	* libgimpwidgets/gimpfileselection.c
      	* libgimpwidgets/gimphelpui.c
      	* libgimpwidgets/gimpoffsetarea.c
      	* libgimpwidgets/gimppatheditor.c
      	* libgimpwidgets/gimppixmap.h
      	* libgimpwidgets/gimpquerybox.c
      	* libgimpwidgets/gimpstock.[ch]
      	* libgimpwidgets/gimpwidgets.h
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/FractalExplorer/Events.c
      	* plug-ins/FractalExplorer/FractalExplorer.c
      	* plug-ins/Lighting/lighting_ui.c
      	* plug-ins/MapObject/mapobject_ui.c
      	* plug-ins/bmp/bmpwrite.c
      	* plug-ins/dbbrowser/dbbrowser_utils.c
      	* plug-ins/fits/fits.c
      	* plug-ins/flame/flame.c
      	* plug-ins/fp/fp_gtk.c
      	* plug-ins/fp/fp_misc.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/gfli/gfli.c
      	* plug-ins/gimpressionist/*.c
      	* plug-ins/imagemap/*.[ch]
      	* plug-ins/maze/maze_face.c
      	* plug-ins/mosaic/mosaic.c
      	* plug-ins/pagecurl/pagecurl.c
      	* plug-ins/print/print_gimp.h
      	* plug-ins/rcm/rcm_callback.c
      	* plug-ins/rcm/rcm_dialog.c
      	* plug-ins/rcm/rcm_misc.c
      	* 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/sel2path/sel2path.c
      	* plug-ins/sel2path/sel2path_adv_dialog.c
      	* plug-ins/sgi/sgi.c
      	* plug-ins/webbrowser/webbrowser.c
      	* plug-ins/xjt/xjt.c
      	* plug-ins/common/[A-n]*.c: compile with GTK_DISABLE_DEPRECATED
      	defined. Not everything is fully ported yet, had to #undef
      	GTK_DISABLE_DEPRECATED in many places and added #warnings when
      	doing so.
      
      	* pixmaps/Makefile.am
      	* pixmaps/chain.xpm: removed.
      
      	* themes/Default/Makefile.am
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-button-hchain-broken.png
      	* themes/Default/images/stock-button-hchain.png
      	* themes/Default/images/stock-button-vchain-broken.png
      	* themes/Default/images/stock-button-vchain.png: new stock icons.
      14d0a3ff
  2. 28 Dec, 2001 3 commits
    • Sven Neumann's avatar
      write comment to top of gimprc. · 64424f6c
      Sven Neumann authored
      2001-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimprc.c: write comment to top of gimprc.
      
      	* app/core/gimpscanconvert.c: removed redundant CLAMP statements.
      
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-in.c: rewrote pluginrc scanner and moved the code
      	that writes the pluginrc into plug-in-rc.c.
      64424f6c
    • Sven Neumann's avatar
      calculate mouse movement in screen coordinates. Reset threshold to default · e43620f8
      Sven Neumann authored
      2001-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpmagnifytool.c: calculate mouse movement in screen
      	coordinates. Reset threshold to default value when the Reset button
      	is pressed.
      e43620f8
    • Sven Neumann's avatar
      app/config/gimpconfig-serialize.[ch] app/config/gimpconfig.h added new · d2990f2f
      Sven Neumann authored
      2001-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig.h
      	* app/config/gimprc.[ch]: added new function to only write changes to
      	the personal gimprc.
      
      	* app/config/test-config.c: test the new functionality.
      
      	* tools/pdbgen/pdb/procedural_db.pdb: the change I did yesterday
      	wasn't overly clever; here's a better one.
      
      	* app/pdb/procedural_db_cmds.c: regenerated.
      d2990f2f
  3. 27 Dec, 2001 3 commits
    • Sven Neumann's avatar
      app/plug-in/Makefile.am new files that parse pluginrc using a GScanner. · 97824930
      Sven Neumann authored
      2001-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-rc.[ch]: new files that parse pluginrc using a
      	GScanner.
      
      	* app/plug-in/plug-in.[ch]: made PlugInDef public again so we can use
      	it from the pluginrc parser.
      
      	* tools/pdbgen/pdb/procedural_db.pdb: made regex string matching
      	robust against NULL pointers.
      
      	* app/pdb/procedural_db_cmds.c: regenerated.
      
      	* app/gimprc.c: removed old pluginrc parser.
      97824930
    • David Odin's avatar
      Added a threshold value determining by how many pixels the mouse should · f3b79372
      David Odin authored
      move to use the window mode.
      f3b79372
    • Sven Neumann's avatar
      INSTALL NEWS require latest versions of glib, gtk+ and friends. Bumped our · 7e309cc1
      Sven Neumann authored
      2001-12-27  Sven Neumann  <sven@gimp.org>
      
      	* INSTALL
      	* NEWS
      	* configure.in: require latest versions of glib, gtk+ and friends.
      	Bumped our version number to 1.3.2.
      
      	* app/plug-in/plug-in.c (plug_in_params_destroy, plug_in_args_destroy):
      	moved condition out of the switch statement, simplified code.
      
      	* app/plug-in/plug-in-proc.[ch]: moved plug_in_proc_def_destroy() here.
      
      	* app/gimprc.c: use plug_in_proc_def_destroy().
      
      	* app/pdb/procedural_db.c: use g_string_hash() instead of our own hash
      	function.
      
      	* app/xcf/xcf.c: initialize all fields of the PlugInProcDef struct.
      7e309cc1
  4. 20 Dec, 2001 1 commit
  5. 19 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/plug-in/Makefile.am new files. Started to split plug-in.c into smaller · 774caf0e
      Sven Neumann authored
      2001-12-19  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in-proc/plug-in-proc.[ch]: new files. Started to split
      	plug-in.c into smaller pieces.
      
      	* app/plug-in/plug-in-types.h: namespacified GimpRunModeType enum and
      	renamed it to GimpRunMode.
      
      	* app/plug-in/plug-in.[ch]
      	* app/gimphelp.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/paths-dialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/fileops_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* libgimp/gimpfileops_pdb.[ch]
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpcompat.h: added gimpcompat.h mostly as a place to
      	document plug-in API changes.
      
      	* plug-ins/*: changed all occurences of GimpRunModeType to GimpRunMode.
      774caf0e
  6. 18 Dec, 2001 5 commits
    • Sven Neumann's avatar
      docs/gimptool-1.3.1.in applied patch from Roger Leigh <rl117@york.ac.uk> · 89844be4
      Sven Neumann authored
      2001-12-18  Sven Neumann  <sven@gimp.org>
      
      	* docs/gimptool-1.3.1.in
      	* gimptool-1.3.in: applied patch from Roger Leigh <rl117@york.ac.uk>
      	that makes gimptool respect the DESTDIR environment variable.
      
      	* app/config/Makefile.am: declare test-config as TESTS so it is build
      	and executed when running 'make check'.
      
      	* app/config/gimpbaseconfig.c: don't register a GimpConfig interface.
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimpguiconfig.c: no need to include "gimpconfig.h".
      
      	* app/config/gimpconfig.[ch]: removed store_unknown parameter from
      	deserialize method. The default implementation will bail out on
      	unknown tokens.
      
      	* app/config/gimprc.c: override deserialize method so it stores
      	unknown tokens.
      89844be4
    • Sven Neumann's avatar
      don't build test-config by default. · 5a48cb85
      Sven Neumann authored
      2001-12-18  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am: don't build test-config by default.
      
      	* app/config/gimprc.[ch]: new files for the GimpRc implementation.
      
      	* app/config/gimpcoreconfig.h
      	* app/config/gimpdisplayconfig.h
      	* app/config/gimpguiconfig.h: include the necessary enum headers
      	here and prefix local includes with config so the files can be safely
      	included from almost everywhere.
      
      	* app/config/test-config.c: instantiate and test GimpRc.
      5a48cb85
    • David Odin's avatar
      some more g_malloc -> g_new and g_realloc -> g_renew changes, for better · 47d14e30
      David Odin authored
      readability and type safety.
      47d14e30
    • Sven Neumann's avatar
      app/display/Makefile.am new file with GimpCursorMode enum. · 39ab860e
      Sven Neumann authored
      2001-12-18  Sven Neumann  <sven@gimp.org>
      
      	* app/display/Makefile.am
      	* app/display/display-enums.h: new file with GimpCursorMode enum.
      
      	* app/display/display-types.h: removed CursorMode enum here, include
      	display-enums.h.
      
      	* app/gimprc.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/preferences-dialog.c: changed accordingly.
      
      	* app/config/Makefile.am
      	* app/config/gimpbaseconfig.[ch]
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimpdisplayconfig.[ch]
      	* app/config/gimpguiconfig.[ch]: implemented the remaining properties.
      39ab860e
    • Sven Neumann's avatar
      app/config/Makefile.am new files with utility functions. · def233b4
      Sven Neumann authored
      2001-12-18  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-utils.[ch]: new files with utility functions.
      
      	* app/config/gimpdisplayconfig.[ch]: new class with display config
      	properties so GimpGuiConfig doesn't get too large.
      
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimpguiconfig.[ch]: install path properties with
      	useable defaults (substituted gimpdir and friends). Moved properties
      	around.
      
      	* app/gui/session.c: removed outdated comment.
      def233b4
  7. 17 Dec, 2001 4 commits
    • Michael Natterer's avatar
      added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS. · be1215a2
      Michael Natterer authored
      2001-12-18  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS.
      
      	* app/core/gimpbuffer.[ch]: gimp_buffer_get_[width|height]:
      	added "const" to the GimpBuffer parameter.
      
      	* app/core/gimpchannel.c: indentation and comment changes.
      
      	* app/core/gimpdrawable-desaturate.c: don't include
      	"paint-funcs/paint-funcs.h".
      
      	* app/display/gimpdisplayshell.c: don't include "base/temp-buf.h".
      
      	* app/gui/gui.c: removed the image container's "name_changed"
      	handler.
      
      	* app/gui/palette-import-dialog.[ch]: use GimpPreview and
      	GimpContainerMenu instead of doing the same manually. Removed lots
      	of code. Not perfect yet.
      
      	* app/tools/gimpfuzzyselecttool.c: no need to include tile stuff.
      
      	* app/widgets/gimpcontainerview-utils.c: better g_warning() message.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: don't include
      	"base/tile-manager.h".
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* data/images/Makefile.am
      	* data/images/gimp_logo.ppm: removed...
      	* data/images/gimp_logo.png: ...and added as PNG.
      
      	* app/gui/about-dialog.c: use gdk_pixbuf_new_from_file() to load
      	the PNG logo instead of manually parsing the PPM.
      be1215a2
    • Michael Natterer's avatar
      changed the GimpNewDrawableFunc typedef to take an additional · d15b07b4
      Michael Natterer authored
      2001-12-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdrawablelistview.[ch]: changed
      	the GimpNewDrawableFunc typedef to take an additional
      	"GimpDrawable *template" paramater, added the "Drop to New"
      	feature again by passing the dropped drawable to
      	view->new_drawable_func().
      
      	* app/gui/channels-commands.[ch]: channels_new_channel_query:
      	* app/gui/layers-commands.[ch]: layers_new_layer_query:
      
      	Added the "template" parameter because they are used as the
      	views' new_drawable_func(), create layers/channels with
      	the template's properties if a template is passed.
      d15b07b4
    • Michael Natterer's avatar
      oops, GIMP_IS_DRAWABLE(gimage) will always fail :-) fixed. · 9901ec48
      Michael Natterer authored
      2001-12-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.c: oops, GIMP_IS_DRAWABLE(gimage) will
      	always fail :-) fixed.
      9901ec48
    • Sven Neumann's avatar
      don't serialize unknown tokens; leave that to the gimprc implementation. · a30b11c9
      Sven Neumann authored
      2001-12-17  Sven Neumann  <sven@gimp.org>
      
      	* gimpconfig.[ch]: don't serialize unknown tokens; leave that to
      	the gimprc implementation. Create file with correct permissions.
      
      	* test-config.c: changed accordingly.
      
      	* gimpguiconfig.[ch]: added more properties.
      a30b11c9
  8. 16 Dec, 2001 4 commits
    • Sven Neumann's avatar
      app/config/Makefile.am app/config/gimpguiconfig.[ch] started to implement · 8ba4e0c0
      Sven Neumann authored
      2001-12-16  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimpguiconfig.[ch]
      	* app/config/test-config.c: started to implement GimpGuiConfig.
      
      	* app/config/gimpcoreconfig.c: set default for image-comment.
      8ba4e0c0
    • Sven Neumann's avatar
      changed thumbnail_mode to boolean write_thumbnails. thumbnail_mode used to · 45874f1b
      Sven Neumann authored
      2001-12-16  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcoreconfig.[ch]: changed thumbnail_mode to boolean
      	write_thumbnails. thumbnail_mode used to have only two defined
      	values; if we need more later, we can change that easily when the
      	new GimpConfig system is in place.
      
      	* app/gimprc.c
      	* app/file/file-save.c
      	* app/gui/file-open-dialog.c
      	* app/gui/preferences-dialog.c: changed accordingly.
      
      	* app/config/gimpcoreconfig.[ch]: finished GimpCoreConfig class.
      45874f1b
    • Sven Neumann's avatar
      app/config/gimpconfig-params.[ch] added support for GimpUnit type. · efe8f6db
      Sven Neumann authored
      2001-12-16  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-params.[ch]
      	* app/config/gimpconfig-types.[ch]: added support for GimpUnit type.
      
      	* app/config/gimpbaseconfig.[ch]
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/test-config.c: cleaned up includes. Added more properties
      	to GimpCoreConfig.
      
      	* app/libgimp_glue.h
      	* libgimpbase/gimpunit.h:
      	declared gimp_unit_get_number_of_built_in_units() G_GNUC_CONST.
      
      	* app/core/gimpunit.[ch]: internal GimpUnit functions return const
      	strings.
      
      	* app/xcf/xcf-save.c: changed accordingly.
      efe8f6db
    • Sven Neumann's avatar
      merged fix for bug #66003 from stable branch. · 5371511d
      Sven Neumann authored
      2001-12-16  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpscanconvert.c: merged fix for bug #66003 from stable
      	branch.
      5371511d
  9. 14 Dec, 2001 1 commit
    • Michael Natterer's avatar
      added GIMP_IMAGE_TYPE_IS_[RGB|GRAY|INDEXED]() and · 37269769
      Michael Natterer authored
      2001-12-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: added
      	GIMP_IMAGE_TYPE_IS_[RGB|GRAY|INDEXED]() and
      	GIMP_IMAGE_TYPE_BASE_TYPE() macros.
      
      	* app/plug-in/plug-in.[ch]: new enum PlugInImageType instead of
      	multiple #defines.
      
      	* app/gui/file-dialog-utils.[ch]: file_dialog_update_menus(): take
      	a GimpImageType instead of the PlugInImageType.
      
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimplayermask.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/file-save-dialog.c
      	* app/gui/toolbox.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/image.pdb: use the new macros, cleanups like
      	storing GimpImageType in GimpImageType variables, not just gint.
      
      	* app/pdb/convert_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      	* app/widgets/gimpdialogfactory.c: save the state of the "Auto"
      	button in sessionrc.
      37269769
  10. 13 Dec, 2001 2 commits
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.h fixed typos. · 94e7e1e5
      Sven Neumann authored
      2001-12-13  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.h
      	* app/config/gimpconfig-serialize.c: fixed typos.
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: converted ChannelType enum to GimpChannelType
      	and moved it to core-enums.h.
      
      	* app/core/gimpimage.[ch]
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcomponentlistitem.[ch]
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* app/pdb/image_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      94e7e1e5
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.c app/config/gimpconfig-params.h · 1e5888d4
      Sven Neumann authored
      2001-12-13  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-params.h
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig-substitute.c
      	* app/config/gimpconfig-types.c
      	* app/config/gimpconfig.[ch]
      	* app/config/test-config.c: code cleanup, I18N
      
      	* app/config/gimpcoreconfig.[ch]: some more properties.
      1e5888d4
  11. 12 Dec, 2001 2 commits
    • Michael Natterer's avatar
      made gimp->global_buffer a GimpBuffer, not TileManager. · 9b8bf8de
      Michael Natterer authored
      2001-12-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.[ch]: made gimp->global_buffer a GimpBuffer,
      	not TileManager.
      
      	* app/core/gimpbuffer.[ch]: added a "gboolean copy_pixels" to
      	gimp_buffer_new().
      
      	* app/core/gimpimage-new.c
      	* app/core/gimpedit.[ch]
      	* app/core/gimpimage-qmask.c
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c: chaned accordingly, don't
      	include "base/tile-manager.h".
      
      	* app/core/gimpdrawable.[ch]: added gimp_drawable_copy().
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimplayermask.[ch]: use it in
      	gimp_[channel|layer|layer_mask]_copy(), added "GType new_type" as
      	paramater to all of them.
      
      	* app/core/gimpimage-duplicate.c
      	* app/gui/channels-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/layers-commands.c
      	* app/widgets/gimpchannellistview.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/core/gimplayer.[ch]: removed the "layer_type" parameter from
      	gimp_layer_new_from_tiles() because it always needed to be equal
      	to gimp_image_base_type_with_alpha() of the passed image.
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c: cahanged accordingly.
      
      	* app/core/gimpimage.[ch]: added some new GIMP_IMAGE_TYPE_FOO()
      	marcos to get rid of magic values like "pixels = 3" all over the
      	place.
      
      	* app/core/gimplayer.[ch]: added gimp_layer_new_from_drawable()
      	which creates a layer from an other image's drawable.
      
      	* app/core/gimpimage-convert.[ch]: made the RGB and GRAY converters
      	public to use them above, use the new GIMP_IMAGE_TYPE() macros.
      
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/toolbox.c: removed tile manager stuff and use the new
      	functions.
      
      	* app/widgets/gimpdrawablelistview.[ch]: added a
      	"convert_drawable_func" which is used to handle drops from other
      	images.
      
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplistitem.[ch]: implemented DND of layers between
      	images using gimp_layer_new_from_drawable().
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      9b8bf8de
    • Michael Natterer's avatar
      app/core/Makefile.am new files. · 1bc1419e
      Michael Natterer authored
      2001-12-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-pick-color.[ch]: new files.
      
      	gimp_image_pick_color() doesn't set the FG or BG color and doesn't
      	touch the current palettte.
      
      	* app/tools/gimpcolorpickertool.[ch]: removed the actual picking
      	code, set the user_context's FG or BG color here.
      
      	* app/gui/palette-editor.[ch]:
      	s/palette_set_active_color/palette_editor_update_color/, don't set
      	the FG and BG color here. The function is still #if 0'ed.
      
      	* app/gui/toolbox.c: fixed WM resize hints in toolbox_style_set(),
      	code cleanup.
      
      	* app/tools/gimppainttool.[ch]: some cleanup before chopping.
      
      	* app/tools/gimpsmudgetool.c: changed accordingly.
      
      	* tools/pdbgen/pdb/misc_tools.pdb: removed the possibility to set
      	the FG or BG color or add the picked color to the active palette
      	bacause it doesn't belong here. Palette PDB wrappers are on the
      	TODO anyway.
      
      	* app/pdb/misc_tools_cmds.c
      	* libgimp/gimpmisctools_pdb.[ch]: regenerated.
      
      	* plug-ins/perl/examples/image_tile
      	* plug-ins/perl/examples/logulator
      	* plug-ins/script-fu/scripts/hsv-graph.scm
      	* plug-ins/script-fu/scripts/title-header.scm: changed accordingly.
      1bc1419e
  12. 11 Dec, 2001 4 commits
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.c app/config/gimpconfig-serialize.c · 0709bfe8
      Sven Neumann authored
      2001-12-12  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig-substitute.c: plugged a memleak and applied
      	some optimizations.
      0709bfe8
    • Sven Neumann's avatar
      app/core/core-enums.h moved gradient enums to core-enums.h and · c44fe725
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: moved gradient enums to core-enums.h and
      	namespaceified them.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpgradient.c
      	* app/gui/gradient-editor-commands.c
      	* app/pdb/misc_tools_cmds.c
      	* app/tools/gimpblendtool.c
      	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.
      
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      c44fe725
    • Sven Neumann's avatar
      app/base/base-enums.h moved all remaining enums to base-enums.h · 03a6c044
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base-enums.h
      	* app/base/base-types.h: moved all remaining enums to base-enums.h
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: moved GimpImageType to core-enums.h and
      	changed the values from RGB_GIMAGE to GIMP_RGB_IMAGE and the like.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/file-save-dialog.c
      	* app/gui/toolbox.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpdodgeburntool.c: changed accordingly.
      
      	* tools/pdbgen/Makefile.am: no need to parse app/base/base-types.h
      	any longer.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      03a6c044
    • Sven Neumann's avatar
      removed GimpImageBaseType enum ... · a611f063
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-types.h: removed GimpImageBaseType enum ...
      
      	* app/core/core-enums.h: and added it here with proper namespace
      	(enum values prefixed with GIMP_).
      
      	* app/gimprc.c
      	* app/core/gimpcoreconfig.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/gui/colormap-dialog.c
      	* app/gui/convert-dialog.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimppainttool.c
      	* app/widgets/gimpchannellistview.c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/convert_cmds.c
      	* app/pdb/image_cmds.c
      	* libgimp/gimpconvert_pdb.c
      	* libgimp/gimpimage_pdb.c: regenerated.
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-params.h
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpcoreconfig.[ch]: added more stuff to GimpCoreConfig.
      a611f063
  13. 10 Dec, 2001 6 commits
    • Sven Neumann's avatar
      libgimpbase/Makefile.am added new function gimp_plug_in_directory() to · 3bd3300d
      Sven Neumann authored
      2001-12-10  Sven Neumann  <sven@gimp.org>
      
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpenv.[ch]: added new function gimp_plug_in_directory()
      	to retrieve the compile_time defined plug_in directory. Declared some
      	functions G_GNUC_CONST and simplified code by introducing a helper
      	function.
      
      	* app/config/Makefile.am
      	* app/config/gimpcoreconfig.[ch]: started to implement GimpCoreConfig
      	derived from GimpBaseConfig.
      
      	* app/config/gimpbaseconfig.[ch]: misc small changes.
      
      	* app/config/gimpconfig-deserialize.c
      	(gimp_config_deserialize_properties): return quietly if there are no
      	properties.
      
      	* app/config/gimpconfig-substitute.c: more special cases.
      
      	* app/config/test-config.c: test GimpCoreConfig.
      3bd3300d
    • Sven Neumann's avatar
      renamed some variables · 49e4062e
      Sven Neumann authored
      49e4062e
    • Sven Neumann's avatar
      app/config/Makefile.am new files with code to do substitution magic on · ad6d670b
      Sven Neumann authored
      2001-12-10  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-substitute.[ch]: new files with code to do
      	substitution magic on path strings. Similar to the code in gimprc.c
      	but UTF8 safe.
      
      	* app/config/gimpconfig-params.h
      	* app/config/gimpbaseconfig.c: added a bunch of convenience macros
      	to register config properties and use them for GimpBaseConfig.
      
      	* app/config/gimpconfig-types.h: added missing GIMP_VALUE_HOLDS_FOO()
      	macros.
      
      	* app/config/gimpconfig-deserialize.c: UTF8-validate all strings.
      
      	* app/config/gimpconfig-serialize.c: some code reorganisation.
      ad6d670b
    • Michael Natterer's avatar
      removed, chopped... · 29ae6957
      Michael Natterer authored
      2001-12-10  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/tools.pdb: removed, chopped...
      
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb: ...and added here.
      
      	* app/pdb/tools_cmds.c
      	* libgimp/gimptools_pdb.[ch]: removed.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* libgimp/gimpmisctools_pdb.[ch]
      	* libgimp/gimppainttools_pdb.[ch]: generated files.
      
      	* app/pdb/Makefile.am
      	* libgimp/Makefile.am
      	* libgimp/gimp_pdb.h
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl: changed accordingly.
      
      	* tools/pdbgen/pdb/selection_tools.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: cosmetic comment changes.
      29ae6957
    • Sven Neumann's avatar
      app/base/Makefile.am use GLIB_GENMARSHAL and GLIB_MKENUMS variables · 3a84f99d
      Sven Neumann authored
      2001-12-10  Sven Neumann  <sven@gimp.org>
      
      	* app/base/Makefile.am
      	* app/core/Makefile.am: use GLIB_GENMARSHAL and GLIB_MKENUMS variables
      	declared by AM_PATH_GLIB_2_0 instead of calling the binaries directly.
      3a84f99d
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.c stricter parsing. · 69ec8e3b
      Sven Neumann authored
      2001-12-10  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig.c: stricter parsing.
      
      	* app/config/test-config.c: more output.
      69ec8e3b
  14. 09 Dec, 2001 3 commits
    • Sven Neumann's avatar
      ooops, forgot to add this one · b6461c99
      Sven Neumann authored
      b6461c99
    • Sven Neumann's avatar
      check for pkg.m4. · 2cb8ffbe
      Sven Neumann authored
      2001-12-09  Sven Neumann  <sven@gimp.org>
      
      	* autogen.sh: check for pkg.m4.
      
      	* configure.in: removed logic to extract GLIB CFLAGS and LDFLAGS
      	from the GTK CFLAGS and LDFLAGS. Use AM_PATH_GLIB_2_0() instead.
      	This change will break things on awfully misconfigured systems.
      	Simplified the checks and moved version numbers to the top to ease
      	maintainance. Check if gtk-doc is suffiently new.
      
      	* app/main.c: removed the GimpConfig test code.
      
      	* app/config/Makefile.am
      	* app/config/test-config.c: added a (yet very small) standalone test
      	suite for GimpConfig.
      
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfig-deserialize.[ch]: allow to specify if
      	unknown tokens should be stored or should cause a parser error.
      	Changed code to store unknown tokens to use a list since a hash
      	table seems to be overkill here.
      2cb8ffbe
    • Sven Neumann's avatar
      app/config/gimpconfig-params.[ch] added new param_spec GIMP_PARAM_PATH · 85783edf
      Sven Neumann authored
      2001-12-09  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-params.[ch]
      	* app/config/gimpconfig-types.[ch]: added new param_spec
      	GIMP_PARAM_PATH with value_type GIMP_PATH_TYPE.
      
      	* app/config/gimpconfig.[ch]: added code to store and lookup unknown
      	tokens.
      
      	* app/config/gimpconfig-deserialize.c: improved logic, prepared for
      	special handling of GIMP_PATH_TYPE; still work in progress...
      
      	* app/config/gimpbaseconfig.c: register temp-path and swap-path as
      	GIMP_PARAM_PATH properties.
      85783edf