1. 11 Jul, 2018 1 commit
  2. 25 Mar, 2018 1 commit
    • Ell's avatar
      app: use GimpObjectQueue in lots of places · 139a2345
      Ell authored
      Use GimpObjectQueue, added in the previous commit, in various
      instances where we perform an action on a set of objects.  This
      improves progress reporting, by using a single progress for the
      entire operation, rather than reporting the progress of each object
      individually, and by taking the relative cost of each object into
      account, instead of assuming a uniform cost for all objects.
      
      In particular, this affects the various whole-image operations
      (i.e., transformations and color conversions), operations on linked
      items, and operations on layer groups.  This also affects layers
      with masks, whose progress is now reported together instead of
      individually.
      
      Additionally, this commit fixes erroneous group-layer mask cropping
      during undo when resizing the image, by properly calling
      {start,end}_move() on all the resized layers before starting the
      operation, and when scaling the image, by only scaling top-level
      layers, and letting group layers scale their children themselves.
      139a2345
  3. 04 Jan, 2016 1 commit
  4. 14 Oct, 2013 1 commit
    • Michael Natterer's avatar
      app,libgimp*: fix includes to follow our include policy · 697572cc
      Michael Natterer authored
      - don't include <gdk-pixbuf/gdk-pixbuf.h> in headers in app/
      - instead, include it in many .c files instead of <glib-object.h>,
        finally acknowledging the fact that app/ depends on gdk-pixbuf almost
        globally
      - fix up includes as if libgimpbase depended in GIO, which it soon will
      697572cc
  5. 03 Feb, 2010 1 commit
  6. 27 Aug, 2009 1 commit
    • Michael Natterer's avatar
      Mostly revert to the state before group layers · 19a168cb
      Michael Natterer authored
      Now that group layers properly implement GimpItem::resize(), ::flip(),
      ::rotate() and ::scale(), we can go back to just transforming the
      toplevel container of layers in the image. Left in and/or added some
      special cases anyway, like when resizing sets of layers along with the
      image is requested.
      19a168cb
  7. 25 Aug, 2009 1 commit
  8. 02 Aug, 2009 1 commit
    • Michael Natterer's avatar
      Iterate over all an image's items recursively · 87d463ae
      Michael Natterer authored
      Use gimp_image_get_layer,channel,vectors_list() instead of
      gimp_image_get_layer,channel,vectors_iter(). As a side-effect,
      simplified some code that was making sure we don't modify the list
      returned by the old functions (the new functions return newly
      allocated lists so we can safely remove items from the image while
      iterating it). Some places will need adjusting once we really have
      item trees.
      87d463ae
  9. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* all files with a GPL header and all COPYING files:
      
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      
      
      svn path=/trunk/; revision=27913
      d9b5207a
  10. 20 Nov, 2008 1 commit
    • Martin Nordholts's avatar
      s/gimp_container_children_type/gimp_container_get_children_type/ · 5aeb5686
      Martin Nordholts authored
      s/gimp_container_policy/gimp_container_get_policy/
      s/gimp_container_num_children/gimp_container_get_n_children/
      
      * app/actions/actions.c
      * app/actions/file-actions.c
      * app/actions/file-commands.c
      * app/actions/tool-options-actions.c
      * app/actions/tools-actions.c
      * app/actions/tools-commands.c
      * app/actions/vectors-actions.c
      * app/core/gimpcontainer-filter.c
      * app/core/gimpcontainer.c
      * app/core/gimpcontainer.h
      * app/core/gimpimage-convert.c
      * app/core/gimpimage-flip.c
      * app/core/gimpimage-merge.c
      * app/core/gimpimage-resize.c
      * app/core/gimpimage-rotate.c
      * app/core/gimpimage-scale.c
      * app/core/gimpimage-undo.c
      * app/core/gimpimage.c
      * app/core/gimpimagefile.c
      * app/core/gimplist.c
      * app/core/gimpundostack.c
      * app/dialogs/palette-import-dialog.c
      * app/dialogs/quit-dialog.c
      * app/display/gimpdisplay.c
      * app/display/gimpdisplayshell-layer-select.c
      * app/display/gimpdisplayshell-title.c
      * app/gui/gui-vtable.c
      * app/menus/tool-options-menu.c
      * app/tools/gimp-tools.c
      * app/widgets/gimpcontrollerlist.c
      * app/widgets/gimpimagepropview.c
      * app/widgets/gimpsettingsbox.c
      * app/widgets/gimpviewablebutton.c
      * app/xcf/xcf-load.c
      * app/xcf/xcf-save.c
      
      svn path=/trunk/; revision=27692
      5aeb5686
  11. 02 Nov, 2008 1 commit
    • Michael Natterer's avatar
      add new functions gimp_image_get_layer_iter(), channel_iter() and · d1ca165b
      Michael Natterer authored
      2008-11-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: add new functions
      	gimp_image_get_layer_iter(), channel_iter() and vectors_iter()
      	which return the GList inside the resp. GimpList.
      
      	* app/actions/channels-actions.c
      	* app/actions/layers-actions.c
      	* app/actions/vectors-actions.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-item-list.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimpimage.h
      	* app/core/gimpprojection-construct.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/file/file-open.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpdrawtool.c
      	* app/vectors/gimpvectors-compat.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimplayertreeview.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/image.pdb: use the new functions instead of
      	peeking both into the image and the list. Remove inclusions of
      	"gimplist.h" or change them into "gimpcontainer.h" if needed.
      
      	* app/pdb/image-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27524
      d1ca165b
  12. 09 Oct, 2008 1 commit
    • Michael Natterer's avatar
      Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a · 5503e6a0
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h
      	had a GEGL dependency (they will have in the next commit, but I
      	wanted to keep the commit separate).
      
      	* app/dialogs/Makefile.am
      	* app/file/Makefile.am
      	* app/gui/Makefile.am
      	* app/menus/Makefile.am
      	* app/paint/Makefile.am
      	* app/plug-in/Makefile.am
      	* app/text/Makefile.am
      	* app/vectors/Makefile.am
      	* app/widgets/Makefile.am
      	* app/xcf/Makefile.am: add GEGL_CFLAGS.
      
      	* app/actions/*.c
      	* app/core/*.c
      	* app/dialogs/*.c
      	* app/display/*.c
      	* app/file/*.c
      	* app/gui/*.c
      	* app/menus/*.c
      	* app/paint/*.c
      	* app/pdb/gimppdb-utils.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/*.c
      	* app/text/*.c
      	* app/tools/*.c
      	* app/vectors/*.c
      	* app/widgets/*.c
      	* app/xcf/*.c: add <gegl.h> or replace <glib-object.h> by <gegl.h>
      	to all files which include a drawable subclass or gimpimage.h
      
      	* tools/pdbgen/app.pl: include <gegl.h> instead of <glib-object.h>
      	in all generated files.
      
      	* app/pdb/*-cmds.c: regenerated.
      
      	* data/images/gimp-splash.png: the goat is still sleeping.
      	By Aurore Derriennic.
      
      
      svn path=/trunk/; revision=27202
      5503e6a0
  13. 25 Dec, 2007 2 commits
    • Michael Natterer's avatar
      app/core/gimpimage-guides.[ch] add accessors for the lists of guides and · 6074f7e2
      Michael Natterer authored
      2007-12-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-guides.[ch]
      	* app/core/gimpimage-sample-points.[ch]: add accessors for the lists
      	of guides and sample points.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-snap.c
      	* app/core/gimpimage.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell.c
      	* app/widgets/gimpsamplepointeditor.c
      	* app/xcf/xcf-save.c: use the new accessors.
      
      
      svn path=/trunk/; revision=24434
      6074f7e2
    • Michael Natterer's avatar
      app/actions/channels-commands.c app/actions/colormap-actions.c · 75061fcc
      Michael Natterer authored
      2007-12-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/channels-commands.c
      	* app/actions/colormap-actions.c
      	* app/actions/colormap-commands.c
      	* app/actions/image-commands.c
      	* app/core/gimp-edit.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpimage-colorhash.c
      	* app/core/gimpimage-colormap.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-quick-mask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-sample-points.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-snap.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpimageundo.c
      	* app/core/gimpitem-preview.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimppalette-import.c
      	* app/core/gimpprojection-construct.c
      	* app/core/gimpprojection.c
      	* app/core/gimpselection.c
      	* app/core/gimpundo.c
      	* app/dialogs/layer-options-dialog.c
      	* app/dialogs/print-size-dialog.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpstatusbar.c
      	* app/file/file-open.c
      	* app/paint/gimppaintoptions.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpperspectiveclonetool.c
      	* app/tools/gimprectangleselecttool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimprotatetool.c
      	* app/vectors/gimpvectors-export.c
      	* app/vectors/gimpvectors-import.c
      	* app/vectors/gimpvectors.c
      	* app/widgets/gimpimagepropview.c
      	* app/widgets/gimpnavigationview.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrendererimage.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/image.pdb: use accessors for many image properties.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24432
      75061fcc
  14. 28 Feb, 2007 1 commit
  15. 30 Jan, 2007 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new files implementing new(), ref() and unref() and · 11b1d24a
      Michael Natterer authored
      2007-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpsamplepoint.[ch]: new files implementing new(),
      	ref() and unref() and the new GIMP_TYPE_SAMPLE_TYPE boxed type.
      
      	* app/core/gimpimage-sample-points.[ch]: removed ref() and unref()
      	functions here.
      
      	* app/core/gimpimage.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo-push.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/tools/gimpcolortool.c
      	* app/widgets/gimpsamplepointeditor.c
      	* app/xcf/xcf-save.c: changed accordingly.
      
      	* app/core/gimpimage-rotate.c (gimp_image_rotate_sample_points):
      	added missing call to gimp_image_undo_push_sample_point().
      
      
      svn path=/trunk/; revision=21812
      11b1d24a
  16. 09 Dec, 2006 1 commit
  17. 07 Jun, 2006 1 commit
    • Michael Natterer's avatar
      added gimp_guide_get_ID(). · 7499fc89
      Michael Natterer authored
      2006-06-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpguide.[ch]: added gimp_guide_get_ID().
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-snap.c
      	* app/core/gimpimage-undo-push.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell.c
      	* app/tools/gimpmovetool.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/guides.pdb: use accessors instead of accessing
      	GimpGuide's struct members directly.
      
      	* app/pdb/guides_cmds.c: regenerated.
      7499fc89
  18. 06 Jun, 2006 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · a49cc445
      William Skaggs authored
      	* app/core/gimpguide.c
      	* app/core/gimpguide.h: new files, implementing GuideGimp as a GimpObject
      
      	* app/core/Makefile.am: add new files as sources
      
      	* app/core/gimpimage-guides.h
      	* app/core/gimpimage-guides.c: use the new object instead of defining
      	GimpGuide here as a struct.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-snap.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell.c
      	* app/pdb/guides_cmds.c
      	* app/tools/gimpmovetool.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/guides.pdb: include "core/gimpguide.h", and use
      	g_object_ref/unref instead of gimp_image_guide_ref/unref.
      a49cc445
  19. 12 Apr, 2006 1 commit
  20. 28 Mar, 2006 1 commit
  21. 04 Mar, 2005 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · ea267753
      William Skaggs authored
      	* app/core/gimpimage-sample-points.c
      	* app/core/gimpimage-sample-points.h: new files
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.c
      	* app/actions/view-commands.h
      	* app/config/gimprc-blurbs.h
      	* app/core/Makefile.am
      	* app/core/core-enums.c
      	* app/core/core-enums.h
      	* app/core/core-types.h
      	* app/core/gimp.c
      	* app/core/gimp.h
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage-undo-push.h
      	* app/core/gimpimage.c
      	* app/core/gimpimage.h
      	* app/display/gimpdisplayoptions.c
      	* app/display/gimpdisplayoptions.h
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-appearance.h
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell-draw.h
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpdisplayshell.h
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: add support for a list of "sample
      	points" in each image, coded and handled very similarly to
      	guides, for use mainly in color correction.  See bug #137776.
      ea267753
  22. 10 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Redid the whole internal progress stuff: don't pass around · 02d2b990
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      
      	Redid the whole internal progress stuff: don't pass around
      	progress_callback and progress_data; instead, provide a
      	pointer to a GimpProgressInterface which can be implemented
      	by a variety of backends.
      
      	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: removed the old progress hack.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
      	dialog as widget implementing GimpProgressInterface.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.[ch]
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
      	implementation to these classes.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: replaced the old progress vtable entries
      	by two new to create and destroy a GimpProgressDialog in case
      	no other progress is available.
      
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
      	all plug-ins.
      
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: handle the case there the
      	plug-in was crated with a progress as well as the case where it
      	wasn't.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/xcf/xcf.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c: changed accordingly.
      
      	* app/core/gimpimagefile.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-open-location-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: pass a GimpProgress to all file
      	related functions. Embed the progress in the file dialog where
      	possible.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-convert.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: replaced callback/data by GimpProgress.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c
      	* app/gui/convert-dialog.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed callers accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      02d2b990
  23. 12 May, 2004 1 commit
    • Michael Natterer's avatar
      app/config/gimpconfig-deserialize.c app/config/gimpscanner.c · de7a9405
      Michael Natterer authored
      2004-05-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpscanner.c
      	* app/core/gimp-edit.c
      	* app/core/gimpchannel-combine.c
      	* app/core/gimpcontainer.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-combine.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpprogress.c
      	* app/gui/info-dialog.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/tool_manager.c
      	* app/widgets/gimpactiongroup.c
      	* app/widgets/gimpdialogfactory.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemfactory.c
      	* app/widgets/gimppropwidgets.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/xcf/xcf-save.c
      	* libgimp/gimpexport.c
      	* libgimpwidgets/gimphelpui.c
      	* libgimpwidgets/gimppixmap.c
      	* libgimpwidgets/gimpunitmenu.c: replaced G_GNUC_FUNCTION,
      	G_GNUC_PRETTY_FUNCTION, G_STRLOC and hardcoded function names in
      	g_warning()s by G_STRFUNC.
      de7a9405
  24. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of the "current_context" which was in fact just a bunch of
      	global variables. Instead, pass the needed context all the way
      	from the GUI and the PDB to the core. This is a prerequisite for
      	macro recording and generally helps separating the various
      	subsystems from each other. Work in progress...
      
      	* app/core/gimp.[ch]: removed member "current_context" and
      	gimp_[get|set]_current_context().
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable-offset.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimpselection.[ch]
      	* app/core/gimptemplate.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/text/gimptext-compat.[ch]
      	* app/text/gimptextlayer-transform.[ch]
      	* app/gui/brush-select.[ch]
      	* app/gui/font-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
      	parameters and use the passed context instead of
      	gimp_get_current_context().
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* app/gui/convert-dialog.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
      	GIMP_CONTEXT(tool_options) or whatever is the right context
      	to the changed core functions.
      
      	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
      	generated PDB invokers.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
      	parameter to the changed core functions.
      
      	* app/pdb/*_cmds.c: regenerated.
      18d9161e
  25. 13 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Moved the calls to floating_sel_relax()/rigor() from various places to two · 2e61d12e
      Michael Natterer authored
      2004-04-13  Michael Natterer  <mitch@gimp.org>
      
      	Moved the calls to floating_sel_relax()/rigor() from various
      	places to two single spots in the core where they are actually
      	needed. Fixes bug #138356 (which was caused by the projection
      	being triggered in the middle of changing the floating selection's
      	size or the size of the drawable it is attached to). This commit
      	effectively removes floating selection fiddling from the core's
      	public API.
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_has_floating_sel): new
      	function which returns TRUE if there is a floating selection
      	attached to the drawable.
      
      	* app/core/gimpdrawable.c (gimp_drawable_translate)
      	(gimp_drawable_set_tiles_full): if the drawable *has* a floating
      	selection, relax/rigor it before/after modifying the drawable.
      
      	* app/core/gimplayer.c (gimp_layer_translate)
      	(gimp_layer_set_tiles): if the layer *is* the floating selection,
      	relax/rigor it before/after modifying it.
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* tools/pdbgen/pdb/layer.pdb: removed calls to
      	floating_sel_rigor()/relax() all over the place. Also removed
      	lots of undo groups which are obsolete now.
      
      	* app/pdb/layer_cmds.c: regenerated.
      2e61d12e
  26. 01 Dec, 2003 1 commit
  27. 03 Sep, 2003 1 commit
    • Michael Natterer's avatar
      removed the _translate() and _stroke() wrappers. · f47b758f
      Michael Natterer authored
      2003-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: removed the _translate()
      	and _stroke() wrappers.
      
      	* app/gui/edit-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/core/gimpselection.c: implement GimpItem::scale(), resize(),
      	flip() and rotate().
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c: no need to call
      	gimp_image_mask_invalidate() and/or gimp_image_mask_changed()
      	manually after scale, resize, flip and rotate, since GimpSelection
      	updates itself correctly.
      f47b758f
  28. 03 Jun, 2003 1 commit
    • Michael Natterer's avatar
      fixed offset calculation for 90 and 270 degree rotations. · 0c3ff3b0
      Michael Natterer authored
      2003-06-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-rotate.c (gimp_image_rotate_item_offset):
      	fixed offset calculation for 90 and 270 degree rotations.
      
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c: increase the progress also when
      	transforming the selection. Makes the progress appear more
      	continuous. Also clened up and simplified the progress code
      	in all files.
      
      	* app/core/gimpimage-resize.[ch]: added a progress like in the
      	files above.
      
      	* app/gui/image-commands.c (image_resize_callback): changed
      	accordingly.
      
      	(image_scale_implement): clened up and simplified a lot.
      
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* app/pdb/image_cmds.c: regenerated.
      0c3ff3b0
  29. 20 May, 2003 1 commit
    • Sven Neumann's avatar
      no need to include gimp-intl.h. · 4e335f7f
      Sven Neumann authored
      2003-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-flip.c: no need to include gimp-intl.h.
      
      	* app/core/gimpimage-rotate.c: change the image size if needed;
      	implemented rotation of guides.
      
      	* app/vectors/gimpvectors.c: implemented rotation of vectors.
      4e335f7f
  30. 18 May, 2003 1 commit
    • Michael Natterer's avatar
      Implemented "Flip Image". Fixes bug #23179: · 1358fafb
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	Implemented "Flip Image". Fixes bug #23179:
      
      	* app/core/core-enums.[ch]: added GIMP_UNDO_GROUP_IMAGE_FLIP.
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-flip.[ch]: new files implementing
      	gimp_image_flip().
      
      	* app/gui/image-menu.c
      	* app/gui/image-commands.[ch]: added it to the "Image" menu.
      
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-flip-horizontal-16.png
      	* themes/Default/images/stock-flip-vertical-16.png
      	* libgimpwidgets/gimpstock.[ch]: added icons for the new
      	menu items.
      
      	Bugs found while hacking the stuff above:
      
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste):
      	only call gimp_layer_add_alpha() if the pasted tiles have alpha.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_channel_mod): fixed to
      	do the right thing if the channel is the selection mask.
      1358fafb
  31. 09 May, 2003 2 commits
    • Michael Natterer's avatar
      app/core/gimpimage-crop.c (gimp_image_crop) app/core/gimpimage-resize.c · 3a8ef85b
      Michael Natterer authored
      2003-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-crop.c (gimp_image_crop)
      	* app/core/gimpimage-resize.c (gimp_image_resize)
      	* app/core/gimpimage-scale.c (gimp_image_scale):
      	don't #include "gimpchannel.h". Moved code around so they all do
      	their stuff in the same order (improves readability when comparing
      	the functions). Use GimpItem variables instead of GimpChannel or
      	GimpLayer ones. Lots of cleanup.
      3a8ef85b
    • Michael Natterer's avatar
      added default implementations for scale() and resize() which just set the · 882a8eca
      Michael Natterer authored
      2003-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.c: added default implementations for scale()
      	and resize() which just set the resulting width/height and offset
      	values.
      
      	* app/core/gimpdrawable.c: chain up in scale() and resize().
      
      	* app/vectors/gimpvectors.[ch]: buncha vectors changes/features:
      
      	- Removed unused "linked" and "locked" members.
      	- Removed "changed" signal.
      	- Added "freeze" and "thaw" signals and functions to emit them.
      	- Added "freeze_count" member so we emit only one freeze/thaw pair
      	  even when doing nested changes.
      	- Added GimpItem::translate() implementation.
      	- Actually scale and resize the vectors in scale() and resize().
      	- Added undo for scale() and resize().
      	- Added freeze()/thaw() pairs around all modifying functions.
      	- Changed gimp_vectors_copy_strokes() to work as needed.
      
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c: resize and scale all vectors.
      	Fixes bug #36491.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_vectors_mod): added
      	freeze()/thaw() around the vectors-modifying code. Also restore
      	width, height and offsets.
      
      	* app/tools/gimpvectortool.c: connect to "freeze" and "thaw"
      	and pause()/resume() vectors drawing accordingly.
      882a8eca
  32. 08 May, 2003 1 commit
    • Michael Natterer's avatar
      removed the remaining layer scale API. · ab0ac847
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.[ch]: removed the remaining layer scale API.
      
      	* app/core/gimpitem.[ch]: added the same functions here.
      
      	* app/core/gimpimage-scale.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      ab0ac847
  33. 07 May, 2003 1 commit
    • Michael Natterer's avatar
      Started to abstract item transformation so we can easily transform · 2a17435e
      Michael Natterer authored
      2003-05-07  Michael Natterer  <mitch@gimp.org>
      
      	Started to abstract item transformation so we can easily
      	transform multiple linked items later:
      
      	* app/core/gimpitem.[ch]: added new virtual function
      	GimpItem::scale() with the same signature as the former
      	gimp_layer_scale_lowlevel().
      
      	* app/core/gimpdrawable.c: implement scale() and do the
      	common parts of layer/channel scaling here.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]: implement scale() for the
      	channel/layer specific parts of scaling.
      
      	* app/core/gimplayer.[ch]: renamed gimp_layer_scale() to
      	gimp_layer_scale_by_origin().
      
      	* app/vectors/gimpvectors.c: added empty scale() implementation.
      
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo-push.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      
      	Unrelated:
      
      	* app/core/gimpimage-undo-push.c: fixed item rename undo to
      	take the size of the saved name into account. Removed old
      	path_undo stuff.
      2a17435e
  34. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  35. 14 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Moved the undo step implementations to the core and pass around lots of · 7a6a8d9d
      Michael Natterer authored
      2003-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Moved the undo step implementations to the core and pass around
      	lots of "const gchar *undo_desc". Fixes bug #104367.
      
      	* app/Makefile.am
      	* app/undo.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-undo-push.[ch]: ...and added here.
      
      	* app/paint/Makefile.am
      	* app/tools/Makefile.am
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/tools/gimptransformtool-undo.[ch]: new files for the
      	paint and transform undos.
      
      	* app/core/gimppaintinfo.[ch]: added a blurb.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: pass the blurb when registering the core.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-mask-select.[ch]
      	* app/core/gimpimage-mask.[ch]
      	* app/core/gimpimagemap.[ch]
      	* app/core/gimplayer-floating-sel.[ch]: added "undo_desc" parameters
      	to all undo pushing helper functions.
      
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly: pass
      	"undo_desc" strings, changed includes or simply removed inclusion
      	of "undo.h". Some random cleanups.
      
      	* tools/pdbgen/pdb/guides.pdb: cleaned up a lot. Fixed
      	gimp_image_find_next_guide() to not return guides with
      	position < 0 (and made it shorter and readable).
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      7a6a8d9d
  36. 13 Feb, 2003 1 commit
    • Michael Natterer's avatar
      changed FOO_UNDO enum values to GIMP_UNDO_FOO. · b600fd86
      Michael Natterer authored
      2003-02-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: changed FOO_UNDO enum values to
      	GIMP_UNDO_FOO.
      
      	* app/undo.[ch]: removed the undo group wrappers.
      
      	* app/undo_history.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpimage.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimppaintcore.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly. Pass meaningful
      	undo names to gimp_image_undo_group_start().
      
      	* app/pdb/layer_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      b600fd86
  37. 07 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Added object properties for almost all tool_options values and registered · eeec3ced
      Michael Natterer authored
      2003-02-07  Michael Natterer  <mitch@gimp.org>
      
      	Added object properties for almost all tool_options values
      	and registered lots of enums with the type system:
      
      	Part I (enum and type cleanup):
      
      	* app/core/core-enums.[ch]
      	* app/core/core-types.h: removed InternalOrientaionType and
      	register GimpOrientationType. Register GimpChannelOps.
      	Removed GimpToolOptionsGUIFunc.
      
      	* app/xcf/xcf-private.h: added XcfOrientationType with the
      	same values as the old InternalOrientationType
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: translate between GimpOrientationType and
      	XcfOrientationType.
      
      	* app/core/gimpdrawable-transform-utils.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.h
      	* app/display/gimpdisplayshell.c
      	* tools/pdbgen/stddefs.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/transform_tools_cmds.c
      	* libgimp/gimpenums.h
      	* libgimpproxy/gimpproxytypes.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimptool/gimptoolenums.[ch]: added GimpTransformGridType.
      
      	* libgimptool/gimptooltypes.h: removed GimpToolOptionsResetFunc,
      	added GimpToolOptionsGUIFunc.
      
      	Part II (tool options changes):
      
      	* app/config/gimpconfig-utils.c (gimp_config_reset_properties):
      	don't reset object properties because they have NULL as default
      	value.
      
      	* app/widgets/gimppropwidgets.[ch]: added
      	gimp_prop_[enum|boolean]_radio_frame_new(),
      	gimp_prop_paint_mode_menu_new() and gimp_prop_scale_entry_new(),
      	which are all needed by the new tool options GUI code.
      
      	* app/tools/tool_options.[ch]: removed the "reset_func" since
      	the virtual reset() method is used now.
      
      	* app/paint/gimpairbrushoptions.[ch]
      	* app/paint/gimpcloneoptions.[ch]
      	* app/paint/gimpconvolveoptions.[ch]
      	* app/paint/gimpdodgeburnoptions.[ch]
      	* app/paint/gimperaseroptions.[ch]
      	* app/paint/gimppaintoptions.[ch]
      	* app/paint/gimpsmudgeoptions.[ch]: added properties all over the
      	place and removed the widget and default_value members from
      	the structs. Renamed some values (e.g. s/type/clone_type/).
      	Don't #include <gtk/gtk.h>.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: changed accordingly. Don't #include <gtk/gtk.h>.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.c
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimptextoptions.c
      	* app/tools/paint_options.[ch]
      	* app/tools/selection_options.[ch]
      	* app/tools/transform_options.[ch]: ditto: added properties and
      	removed widget and default_value stuff. Removed most reset functions.
      	Use gimp_prop widgets all over the place, renamed some values
      	as above.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectoroptions.c: changed accordingly. Ported
      	the paint_options GUI constructors to gimp_prop widgets.
      
      	* app/widgets/gimpselectioneditor.c
      	* app/gui/tool-options-dialog.c: changed accordingly.
      eeec3ced
  38. 20 Aug, 2002 1 commit
    • Michael Natterer's avatar
      Make sure the selection (gimpimage-mask.c) functionality is really built · 33bba657
      Michael Natterer authored
      2002-08-20  Michael Natterer  <mitch@gimp.org>
      
      	Make sure the selection (gimpimage-mask.c) functionality is really
      	built *on top* of the GimpChannel functionality:
      
      	* app/undo.[ch]: renamed undo_push_image_mask() to
      	undo_push_mask() and generalized it's API to take a GimpChannel
      	param so undos can be pushed for channels which are not the
      	image's selection. Simplified the API and added code which copies
      	the region of interest instead of leaving this to callers.
      
      	* app/undo_types.h: s/IMAGE_MASK_UNDO/MASK_UNDO/
      
      	* app/undo_history.c: changed accordingly.
      
      	* app/core/gimpchannel.[ch]: don't #include "gimpimage-mask.h".
      	Changed gimp_channel_push_undo() to really push a channel undo,
      	not a selection undo. Added "gboolean push_undo" params to all
      	functions which are called from gimpimage-mask.c. Various cleanups
      	and optimizations. Added /*< proxy-foo >*/ stuff to the header so
      	we export just the struct itself to libgimpproxy. Added accessors
      	gimp_channel_[get|set]_show_masked().
      
      	* app/core/gimpimage-mask.[ch]: renamed gimp_image_mask_undo() to
      	gimp_image_mask_push_undo(). Call it before calling GimpChannel
      	functions which modify the mask, also call all GimpChannel
      	functions with push_undo = FALSE. Emit gimp_image_mask_changed()
      	after each operation instead of calling it in
      	gimp_image_mask_invalidate(). Removed gimp_image_mask_none()
      	because it is the same as gimp_image_mask_clear().
      	General cleanup.
      
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-qmask.c: changed accordingly.
      
      	* app/core/gimpedit.c: call gimp_image_mask_clear(), not
      	gimp_channel_clear (gimp_image_get_mask()).
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c: call gimp_image_mask_changed()
      
      	* app/gui/channels-commands.c
      	* app/gui/select-commands.c
      	* app/tools/gimptexttool.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/selection.pdb: follow GimpChannel and
      	gimp_image_mask* API changes.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/selection_cmds.c
      	* libgimpproxy/gimpchannel.h: regenerated.
      
      	Unrelated:
      
      	* app/core/gimpimage.c: call gimp_drawable_push_undo() instead of
      	undo_push_image() directly.
      33bba657