1. 05 Aug, 2018 1 commit
    • Michael Natterer's avatar
      Issue #1954 - GIMP-2.99 color changes when converting between... · 8226265b
      Michael Natterer authored
      ...linear and perceptual precision
      
      Under certain circumstances (e.g. the image has no color profile),
      GimpLayer's implementation of GimpDrawable::convert_type() didn't have
      enough information to do the right color space conversion.
      
      Intead of messing with stuff like "set profile in between doing a and b",
      simply add a "src_profile" parameter to GimpDrawable::convert_type() so
      the complete color space conversion information is available without
      relying on obscure states that could change in the future.
      
      Make sure all callers pass the right src_profile, particularly in
      gimp_image_convert_precision(), which also needed fixing.
      8226265b
  2. 11 Jul, 2018 1 commit
  3. 11 Feb, 2018 1 commit
  4. 15 Jul, 2017 1 commit
  5. 07 Nov, 2016 1 commit
  6. 03 Oct, 2016 1 commit
  7. 30 Apr, 2016 1 commit
    • Michael Natterer's avatar
      app: change GimpDrawable::convert_type() to take a target profile · ef4ab94a
      Michael Natterer authored
      instead of just a boolean "convert_profile". This takes the logic to
      figure the right target profile out of gimp_layer_convert_type(), it
      can't possibly know everything about how to convert anyway, and having
      the logic in the callers conveniently splits it up and distributes its
      parts to the places they belong.
      
      This commit should cause no behavor change and is just preparation for
      fixing bug 765176.
      ef4ab94a
  8. 21 Oct, 2015 1 commit
  9. 16 Aug, 2015 1 commit
    • Michael Natterer's avatar
      app: add "gboolean convert_profile" to GimpDrawable::convert_type() · 76782e62
      Michael Natterer authored
      also add "GType old_type" to GimpItem::convert() so implementations
      can do things depending on the type of the original item.
      
      In gimp_layer_convert(), if the original item is also a layer, and
      color management is not off (with a FIXME because this is the wrong
      check), pass convert_profile = TRUE to gimp_drawable_convert_type().
      
      There is no color profile conversion anywhere behind this, this is
      just an API change commit.
      76782e62
  10. 12 Aug, 2014 1 commit
  11. 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
  12. 12 Nov, 2012 1 commit
  13. 10 Nov, 2012 1 commit
  14. 12 Jan, 2011 1 commit
  15. 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
  16. 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
  17. 16 Nov, 2007 1 commit
    • Michael Natterer's avatar
      app/base/temp-buf.c app/base/tile-manager.c accept NULL in all · 036085fd
      Michael Natterer authored
      2007-11-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/temp-buf.c
      	* app/base/tile-manager.c
      	* app/core/gimpobject.c: accept NULL in all get_memsize() functions.
      
      	* app/core/gimp-utils.[ch]: ditto. Added gimp_string_get_memsize().
      
      	* app/core/gimp.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpcontainer.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdata.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpdrawablemodundo.c
      	* app/core/gimpdrawableundo.c
      	* app/core/gimpimage.c
      	* app/core/gimpitempropundo.c
      	* app/core/gimplayer.c
      	* app/core/gimpmaskundo.c
      	* app/core/gimppalette.c
      	* app/core/gimpparasitelist.c
      	* app/core/gimppattern.c
      	* app/core/gimppreviewcache.c
      	* app/core/gimpundo.c
      	* app/core/gimpundostack.c
      	* app/core/gimpviewable.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/gimpplugindef.c
      	* app/plug-in/gimppluginmanager.c
      	* app/plug-in/gimppluginprocedure.c
      	* app/text/gimptext.c
      	* app/text/gimptextlayer.c
      	* app/text/gimptextundo.c
      	* app/vectors/gimpvectorsmodundo.c: simplify
      	GimpObject::get_memsize() implementations accordingly.
      
      	* app/core/gimpimageundo.c: ditto. Always keep around colormaps in
      	chunks of GIMP_IMAGE_COLORMAP_SIZE to be coonsistent with the
      	other colormap handling code.
      
      
      svn path=/trunk/; revision=24174
      036085fd
  18. 23 May, 2007 1 commit
    • Sven Neumann's avatar
      app/dialogs/tips-parser.c app/display/gimpdisplayshell-autoscroll.c · c7bffbce
      Sven Neumann authored
      2007-05-23  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/tips-parser.c
      	* app/display/gimpdisplayshell-autoscroll.c
      	* app/menus/plug-in-menus.c
      	* app/plug-in/gimpenvirontable.c
      	* app/plug-in/gimpinterpreterdb.c
      	* app/plug-in/gimpplugindebug.c
      	* app/plug-in/gimppluginshm.c
      	* app/text/gimptextundo.c: allocate structs using GSlice
      
      	* app/widgets/gimpselectiondata.c 
      (gimp_selection_data_set_color):
      	stack allocate tempory data.
      
      
      svn path=/trunk/; revision=22588
      c7bffbce
  19. 30 Jan, 2007 1 commit
    • Michael Natterer's avatar
      add support for GIMP_UNDO_TEXT_LAYER_MODIFIED. · 13a3975b
      Michael Natterer authored
      2007-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/text/gimptextundo.[ch]: add support for
      	GIMP_UNDO_TEXT_LAYER_MODIFIED.
      
      	* app/core/gimpimage-undo-push.c: use it here.
      
      
      svn path=/trunk/; revision=21816
      13a3975b
  20. 09 Dec, 2006 1 commit
  21. 15 May, 2006 1 commit
  22. 18 Jan, 2006 1 commit
    • Michael Natterer's avatar
      define GIMP_PARAM_STATIC_STRINGS which is G_PARAM_STATIC_NAME|NICK|BLURB. · e1ceed51
      Michael Natterer authored
      2006-01-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/config-types.c: define GIMP_PARAM_STATIC_STRINGS
      	which is G_PARAM_STATIC_NAME|NICK|BLURB. Also define
      	GIMP_PARAM_READABLE, _WRITABLE and _READWRITE which include
      	GIMP_PARAM_STATIC_STRINGS.
      
      	* app/*/*.c: use them for all object properties so their
      	strings are not copied.
      e1ceed51
  23. 10 Dec, 2005 1 commit
  24. 07 Apr, 2005 1 commit
    • Sven Neumann's avatar
      changed GimpConfig utility functions to take GObject variables instead of · 333593da
      Sven Neumann authored
      2005-04-07  Sven Neumann  <sven@gimp.org>
      
      	* libgimpconfig/gimpconfig-utils.[ch]: changed GimpConfig utility
      	functions to take GObject variables instead of GimpConfig. There's
      	nothing GimpConfig specific about these utilities.
      
      	* app/actions/templates-commands.c
      	* app/actions/tool-options-commands.c
      	* app/base/base.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimprc.c
      	* app/core/gimpimage-grid.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpstrokedesc.c
      	* app/dialogs/grid-dialog.c
      	* app/dialogs/image-new-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell.c
      	* app/text/gimptextlayer.c
      	* app/text/gimptextundo.c
      	* app/tools/gimptextoptions.c
      	* libgimpconfig/gimpconfig-iface.c: changed accordingly.
      333593da
  25. 25 Jan, 2005 1 commit
  26. 13 Jul, 2004 1 commit
    • Sven Neumann's avatar
      added new function gimp_g_value_get_memsize() that attempts to calculate · f274dce2
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp-utils.[ch]: added new function
      	gimp_g_value_get_memsize() that attempts to calculate the memory
      	requirements for a GValue.
      
      	* app/text/gimptextundo.c (gimp_text_undo_get_memsize): use the
      	new function to obtain a better estimate for the size of the text
      	undo.
      f274dce2
  27. 12 Jul, 2004 2 commits
    • Michael Natterer's avatar
      removed member "guint time"... · a81e9645
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/text/gimptextundo.[ch]: removed member "guint time"...
      
      	* app/core/gimpundo.[ch]: ...and added it here.
      
      	* app/tools/gimptexttool.c (gimp_text_tool_apply): changed
      	accordingly. Reordered undo compression code to look like other
      	pieces of code which do undo compression.
      a81e9645
    • Michael Natterer's avatar
      app/core/gimpundo.[ch] app/core/gimpitemundo.[ch] removed all _new() · da74f126
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpundo.[ch]
      	* app/core/gimpitemundo.[ch]
      	* app/text/gimptextundo.[ch]: removed all _new() functions and
      	added properties and GObject::constructor() implementations
      	instead.
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): added
      	"GType undo_gtype" parameter and allow to pass name-value pairs as
      	"...". Une the new GParameter utility functions to construct the
      	appropriate undo step with g_object_newv().
      
      	(gimp_image_undo_push_item): removed.
      
      	(gimp_image_undo_push_undo): removed. Merged its code back into
      	gimp_image_undo_push(), where it originally came from.
      
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpundostack.c
      	* app/paint/gimppaintcore-undo.c
      	* app/tools/gimptransformtool-undo.c
      	* app/widgets/gimpundoeditor.c: changed accordingly.
      da74f126
  28. 21 Mar, 2004 1 commit
    • Sven Neumann's avatar
      added gimp_undo_type_to_name() a similar function used to live in · 2326e1b9
      Sven Neumann authored
      2004-03-21  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpundo.[ch]: added gimp_undo_type_to_name() a similar
      	function used to live in gimpimage-undo.[ch].
      
      	* app/core/gimpitemundo.c (gimp_item_undo_new): allow NULL as name
      	and generate it from the undo_type then.
      
      	* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_undu(),
      	new function that allows to push an undo on the image.
      
      	* app/text/Makefile.am
      	* app/text/text-types.h
      	* app/text/gimptextundo.[ch]: added GimpTextUndo, derived from
      	GimpItemUndo.
      
      	* app/core/gimpimage-undo-push.c (gimp_image_undo_push_text_layer):
      	use the new code and simply push a text undo here.
      
      	* app/tools/gimptexttool.c: compress text undos by peeking at the
      	undo stack. Fixes bug #137766.
      2326e1b9