1. 08 Jan, 2008 2 commits
    • Sven Neumann's avatar
      removed "add_alpha" parameter from gimp_item_duplicate() and · 4aa7e67c
      Sven Neumann authored
      2008-01-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpitem.[ch]: removed "add_alpha" parameter from
      	gimp_item_duplicate() and gimp_item_convert(). This is a relict
      	from the time when only the bottom layer was allowed to have no
      	alpha channel.
      
      	* app/actions/channels-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-quick-mask.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimpselection.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/text/gimptextlayer.c
      	* app/vectors/gimpvectors.c
      	* app/vectors/gimpvectorsmodundo.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      svn path=/trunk/; revision=24570
      4aa7e67c
    • Sven Neumann's avatar
      moved code to a utility function, in preparation for a possible fix for · ef5cda6a
      Sven Neumann authored
      2008-01-08  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-open.c (file_open_layers): moved code to a utility
      	function, in preparation for a possible fix for bug #507116.
      
      svn path=/trunk/; revision=24569
      ef5cda6a
  2. 07 Jan, 2008 9 commits
    • Michael Natterer's avatar
      add properties, some cleanup. · 27319afd
      Michael Natterer authored
      2008-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimpoperationlevels.[ch]: add properties, some cleanup.
      
      	* app/tools/gimplevelstool.c: use gegl_node_set() instead of
      	accessing the operation directly.
      
      
      svn path=/trunk/; revision=24566
      27319afd
    • Michael Natterer's avatar
      app/gegl/Makefile.am app/gegl/gegl-types.h new operator. · 1c804c8d
      Michael Natterer authored
      2008-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpoperationlevels.[ch]: new operator.
      
      	* app/gegl/gimp-gegl.c: register it.
      
      	* app/tools/gimplevelstool.c: use it,
      
      
      svn path=/trunk/; revision=24565
      1c804c8d
    • Michael Natterer's avatar
      add some comments about how this code is different from base/colorize.c · 5da250fc
      Michael Natterer authored
      2008-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimpoperationcolorize.c (process): add some comments
      	about how this code is different from base/colorize.c
      
      
      svn path=/trunk/; revision=24564
      5da250fc
    • Michael Natterer's avatar
      include gegl/gegl-types.h instead of base/base-types.h. · f0ec8dcb
      Michael Natterer authored
      2008-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-types.h: include gegl/gegl-types.h instead of
      	base/base-types.h.
      
      	* app/gegl/gegl/gegl-types.h: add ugly #ifdefs so we can include
      	gegl.h and this file at the same time.
      
      
      svn path=/trunk/; revision=24563
      f0ec8dcb
    • Michael Natterer's avatar
      reordered and renamed parameters to make more sense. · 147f3417
      Michael Natterer authored
      2008-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.c (gimp_layer_transform_color): reordered
      	and renamed parameters to make more sense.
      
      
      svn path=/trunk/; revision=24562
      147f3417
    • Michael Natterer's avatar
      remove GTK_CFLAGS. · bf02ecb9
      Michael Natterer authored
      2008-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am (INCLUDES): remove GTK_CFLAGS.
      
      
      svn path=/trunk/; revision=24561
      bf02ecb9
    • Øyvind Kolås's avatar
      make the mapping between slider values and gegl-op properties more closely · 43a3c372
      Øyvind Kolås authored
      * app/tools/gimpbrightnesscontrasttool.c: make the mapping between
      slider values and gegl-op properties more closely resemble gimp for
      the brightness property.
      
      svn path=/trunk/; revision=24560
      43a3c372
    • Michael Natterer's avatar
      updated from GEGL. · d916692c
      Michael Natterer authored
      2008-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gegl/gegl-operation.h: updated from GEGL.
      
      	* app/gegl/gimpoperationtilesource.c: use the passed buffer in
      	process() and add prepare() implementation which sets the format.
      
      
      svn path=/trunk/; revision=24559
      d916692c
    • Øyvind Kolås's avatar
      modified to match newer API in GEGL. · 9a889411
      Øyvind Kolås authored
      * app/gegl/gimpoperationtilesink.c:
      * app/gegl/gimpoperationtilesource.c: modified to match newer API in
      GEGL.
      * app/gegl/gegl/gegl-operation-sink.h:
      * app/gegl/gegl/gegl-operation-source.h: updated from GEGL.
      
      svn path=/trunk/; revision=24555
      9a889411
  3. 06 Jan, 2008 4 commits
    • Michael Natterer's avatar
      app/gegl/gegl/buffer/gegl-buffer-types.h · 7acc5de9
      Michael Natterer authored
      2008-01-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gegl/buffer/gegl-buffer-types.h
      	* app/gegl/gegl/gegl-operation-filter.h
      	* app/gegl/gegl/gegl-operation-point-filter.h
      	* app/gegl/gegl/gegl-operation-sink.h
      	* app/gegl/gegl/gegl-operation-source.h
      	* app/gegl/gegl/gegl-operation.h: updated from GEGL.
      
      
      svn path=/trunk/; revision=24554
      7acc5de9
    • Michael Natterer's avatar
      don't call a NULL GimpImageMapToolClass::get_operation(). · 4324d681
      Michael Natterer authored
      2008-01-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_create_map):
      	don't call a NULL GimpImageMapToolClass::get_operation().
      
      
      svn path=/trunk/; revision=24553
      4324d681
    • Michael Natterer's avatar
      toggle the image map mode only if an image map currently exists. Fixes · 50335ca9
      Michael Natterer authored
      2008-01-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_gegl_notify):
      	toggle the image map mode only if an image map currently exists.
      	Fixes crash when toggling "Use GEGL" while the tool is not active.
      
      
      svn path=/trunk/; revision=24552
      50335ca9
    • Michael Natterer's avatar
      app/gegl/gimpoperationtilesource.c formatting. · 3463d3f6
      Michael Natterer authored
      2008-01-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimpoperationtilesource.c
      	* app/gegl/gimpoperationtilesink.c: formatting.
      
      
      svn path=/trunk/; revision=24547
      3463d3f6
  4. 05 Jan, 2008 2 commits
    • Manish Singh's avatar
      hardcode a declaration of gegl_node_add_child() in here for now. · fb573473
      Manish Singh authored
      2008-01-05  Manish Singh  <yosh@gimp.org>
      
              * app/core/gimpimagemap.c: hardcode a declaration of
              gegl_node_add_child() in here for now.
      
      svn path=/trunk/; revision=24539
      fb573473
    • Øyvind Kolås's avatar
      synchronoised with GEGL headers. · e748a072
      Øyvind Kolås authored
      * app/gegl/gegl/gegl-operation-sink.h:
      * app/gegl/gegl/gegl-operation-source.h:
      * app/gegl/gegl/gegl-operation.h:
      * app/gegl/gegl/gegl-types.h:
      * app/gegl/gegl/graph/:
      * app/gegl/gegl/graph/gegl-node-context.h: synchronoised with GEGL
      headers.
      * app/gegl/gimpoperationtilesink.c:
      * app/gegl/gimpoperationtilesource.c: updated to new API, where a
      GeglNodeContext is used in process methods instead of gpointer
      context_id.
      
      svn path=/trunk/; revision=24538
      e748a072
  5. 04 Jan, 2008 11 commits
    • Øyvind Kolås's avatar
      synchronised with GEGL headers. · 1f4acb98
      Øyvind Kolås authored
      * app/gegl/gegl/gegl-operation-sink.h:
      * app/gegl/gegl/gegl-operation-source.h:
      * app/gegl/gegl/gegl-operation.h: synchronised with GEGL headers.
      * app/gegl/gimpoperationtilesink.c:
      * app/gegl/gimpoperationtilesource.c: added const GeglRectangle
      *result to arguments of _process().
      
      svn path=/trunk/; revision=24537
      1f4acb98
    • Øyvind Kolås's avatar
      synchronised with GEGL headers. · 20e49c0d
      Øyvind Kolås authored
      * app/gegl/gegl/gegl-operation-sink.h:
      * app/gegl/gegl/gegl-operation-source.h:
      * app/gegl/gegl/gegl-operation.h: synchronised with GEGL headers.
      * app/gegl/gimpoperationtilesink.c:
      * app/gegl/gimpoperationtilesource.c: added const GeglRectangle
      *result to arguments of _process().
      
      svn path=/trunk/; revision=24536
      20e49c0d
    • Sven Neumann's avatar
      changed the default marching ants speed to 200. · 3881c132
      Sven Neumann authored
      2008-01-04  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpdisplayconfig.c: changed the default marching 
      ants
      	speed to 200.
      
      
      svn path=/trunk/; revision=24534
      3881c132
    • Hans Breuer's avatar
      **/makefile.msc app/gimpcore.def : updated so it compiles and links · 9a1d5f34
      Hans Breuer authored
      2008-01-04  Hans Breuer  <hans@breuer.org>
      
      	**/makefile.msc app/gimpcore.def : updated so it compiles and links
      	(almost, see bug #507298)
      
      svn path=/trunk/; revision=24533
      9a1d5f34
    • Sven Neumann's avatar
      Merged from gimp-2-4 branch: · 08582c36
      Sven Neumann authored
      2008-01-04  Sven Neumann  <sven@gimp.org>
      
      	Merged from gimp-2-4 branch:
      
      	* app/display/gimpdisplayshell-selection.c:
      	draw marching ants with G_PRIORITY_DEFAULT_IDLE; fixes bug 
      #479875.
      
      
      svn path=/trunk/; revision=24532
      08582c36
    • Michael Natterer's avatar
      optionally use gegl where we already have operations (breaking the · 45b2a5e0
      Michael Natterer authored
      2008-01-04  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/color.pdb: optionally use gegl where we already
      	have operations (breaking the indentation to keep the diff small
      	and readable).
      
      	* app/pdb/Makefile.am: add GEGL_CFLAGS.
      
      	* app/pdb/color_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24531
      45b2a5e0
    • Michael Natterer's avatar
      add "use-gegl" property but don't serialize it. · dd97e605
      Michael Natterer authored
      2008-01-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpcoreconfig.[ch]: add "use-gegl" property but
      	don't serialize it.
      
      	* app/widgets/gimptoolbox.c: add super ugly "Use GEGL" toggle to
      	the toolbox so we don't need to have prefs open all the time when
      	experimenting with gegl.
      
      	* app/tools/gimpimagemaptool.[ch]: remove "Use GEGL" toggle from
      	the tool dialogs and connect to the config property instead.
      
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-invert.c: made them runtime-switchable by
      	looking at the config property.
      
      
      svn path=/trunk/; revision=24530
      dd97e605
    • Michael Natterer's avatar
      app/gegl/Makefile.am app/gegl/gegl-types.h · d1719638
      Michael Natterer authored
      2008-01-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpoperationcolorize.[ch]
      	* app/gegl/gimpoperationposterize.[ch]: new operators which still
      	use a lot of gimp stuff they shouldn't use, but at least the
      	infrastructure for improving them is there now.
      
      	* app/gegl/gimp-gegl.c: register them.
      
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpposterizetool.c: use them.
      
      
      svn path=/trunk/; revision=24528
      d1719638
    • Michael Natterer's avatar
      switch tile sources and sinks to assume linear data. · 15a50be8
      Michael Natterer authored
      2008-01-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimagemap.c (gimp_image_map_apply): switch tile
      	sources and sinks to assume linear data.
      
      
      svn path=/trunk/; revision=24526
      15a50be8
    • Michael Natterer's avatar
      enable disabling gegl again, which i broke with my last commit. · 61a14f1f
      Michael Natterer authored
      2008-01-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_create_map):
      	enable disabling gegl again, which i broke with my last commit.
      
      
      svn path=/trunk/; revision=24525
      61a14f1f
    • Sven Neumann's avatar
      also update trans_info[REAL_ANGLE]. Fixes bug #507167. · f1678dc4
      Sven Neumann authored
      2008-01-04  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimprotatetool.c (rotate_angle_changed): also update
      	trans_info[REAL_ANGLE]. Fixes bug #507167.
      
      
      svn path=/trunk/; revision=24521
      f1678dc4
  6. 03 Jan, 2008 6 commits
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.udavis.edu> · 2ba3e595
      William Skaggs authored
      	committing patch by Simon Budig to give an indication
      	when working on a layer mask, updated to fix staleness
      	and respond to "edit-changed".  Might fix bug #132204.
      	
      	* app/core/core-enums.[ch]: add GIMP_SELECTION_LAYER_ON.
      
      	* app/core/gimplayermask.c: add handler for "edit-changed".
      
      	* app/core/gimpcanvas.[ch]:  add new style
      	GIMP_CANVAS_STYLE_LAYER_MASK_ACTIVE.
      
      	* app/display/gimpdisplayshell-selection.c: use new style
      	when layer mask is active.
      
      svn path=/trunk/; revision=24520
      2ba3e595
    • Michael Natterer's avatar
      keep the central processing node around here... · 48358e34
      Michael Natterer authored
      2008-01-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.[ch]: keep the central processing
      	node around here...
      
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpthresholdtool.[ch]: ...instead of here.
      
      
      svn path=/trunk/; revision=24517
      48358e34
    • Michael Natterer's avatar
      quite some cleanup (use GeglRectangle more globally and don't leave stuff · 8e638b0b
      Michael Natterer authored
      2008-01-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimagemap.c: quite some cleanup (use GeglRectangle
      	more globally and don't leave stuff around if we abort for
      	whatever reason).
      
      
      svn path=/trunk/; revision=24516
      8e638b0b
    • Michael Natterer's avatar
      app/gegl/Makefile.am app/gegl/gegl-types.h gimpish threshold operator · bd938d40
      Michael Natterer authored
      2008-01-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpoperationthreshold.[ch]: gimpish threshold operator
      	which has "low" and "high" properties.
      
      	* app/gegl/gimp-gegl.c: register it.
      
      	* app/gegl/gimpoperationdesaturate.[ch]: fix copyright.
      
      	* app/tools/gimpthresholdtool.[ch]: use the new operator.
      
      
      svn path=/trunk/; revision=24515
      bd938d40
    • Michael Natterer's avatar
      Some more gegl code to have some playground for experimenting. · 697cc82a
      Michael Natterer authored
      2008-01-03  Michael Natterer  <mitch@gimp.org>
      
      	Some more gegl code to have some playground for experimenting.
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpoperationdesaturate.[ch]: ported desaturate.
      
      	* app/gegl/gimp-gegl.c: register it.
      
      	* app/gegl/gimpoperationtilesink.h: fix name of parent class member.
      
      	* app/core/gimpdrawable-desaturate.c: use the new operator, but
      	keep the old code around (prepared for runtime switching).
      
      	* app/core/gimpdrawable-invert.c: prepare for runtime switching
      	here too.
      
      
      svn path=/trunk/; revision=24514
      697cc82a
    • Michael Natterer's avatar
      app/gegl/gegl/gegl-operation-sink.h updated copies from gegl. · 7e25f48a
      Michael Natterer authored
      2008-01-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gegl/gegl-operation-sink.h
      	* app/gegl/gegl/gegl-operation-source.h: updated copies from gegl.
      
      	* app/gegl/gegl/gegl-operation-filter.h
      	* app/gegl/gegl/gegl-operation-point-filter.h: new files from gegl.
      
      
      svn path=/trunk/; revision=24513
      7e25f48a
  7. 02 Jan, 2008 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new files containing gimp_drawable_apply_operation() · 88b021c0
      Michael Natterer authored
      2008-01-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-operation.[ch]: new files containing
      	gimp_drawable_apply_operation() which applies a gegl operation
      	to a drawable's selected pixels using shadow tiles. Will soon
      	be used in more places than just invert.
      
      	* app/core/gimpdrawable-invert.c: use it here, makes
      	gimp_drawable_invert() a 3-liner.
      
      
      svn path=/trunk/; revision=24506
      88b021c0
  8. 31 Dec, 2007 1 commit
  9. 30 Dec, 2007 4 commits
    • Sven Neumann's avatar
      added new function gimp_bpp_to_babl_format_linear(). · cd270aac
      Sven Neumann authored
      2007-12-30  Sven Neumann  <sven@gimp.org>
      
      	* app/gegl/gimp-gegl-utils.[ch]: added new function
      	gimp_bpp_to_babl_format_linear().
      
      	* app/gegl/gimpoperationtilesink.[ch]
      	* app/gegl/gimpoperationtilesource.[ch]: added boolean property 
      to
      	toggle between linear and gamma-corrected data.
      
      	* app/core/gimpdrawable-invert.c: assume linear data to be 
      closer
      	to the original definition of the invert operation in GIMP.
      	Enable the GEGL code path per default.
      
      
      svn path=/trunk/; revision=24491
      cd270aac
    • Sven Neumann's avatar
      moved processing in the GEGL code path back to the main loop. · cfe312bc
      Sven Neumann authored
      2007-12-30  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-invert.c (gimp_drawable_invert): moved
      	processing in the GEGL code path back to the main loop.
      
      
      svn path=/trunk/; revision=24490
      cfe312bc
    • Michael Natterer's avatar
      app/tools/gimpcolorbalancetool.c app/tools/gimpcolorizetool.c · 5780913e
      Michael Natterer authored
      2007-12-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: #include <gegl.h>. Fixes the build.
      
      
      svn path=/trunk/; revision=24489
      5780913e
    • Michael Natterer's avatar
      First actual image processing with GEGL! Wheeeee :-) · d6ab4d19
      Michael Natterer authored
      2007-12-30  Michael Natterer  <mitch@gimp.org>
      
      	First actual image processing with GEGL! Wheeeee :-)
      
      	* app/core/gimpimagemap.[ch]: added code to use gegl instead of the
      	old apply_func and apply_data.
      
      	(gimp_image_map_new): add GeglNode parameter that, if passed,
      	switches the whole thing to using a gegl graph with this node
      	as central processing node.
      
      	* app/tools/gimpimagemaptool.[ch]: add virtual function
      	get_operation() which, if implemented, returns a GeglNode to pass
      	to gimp_image_map_new(). Added a "Use GEGL" toggle so we can
      	switch between legacy and gegl code for the migration period.
      
      	* app/tools/gimpbrightnesscontrasttool.[ch]: implement
      	get_operation() and return a brightness-contrast node.
      
      	(gimp_briughtness_contrast_tool_map): set the node's properties
      	from the GUI.
      
      
      svn path=/trunk/; revision=24488
      d6ab4d19