1. 02 Nov, 2008 6 commits
    • Michael Natterer's avatar
      add new functions gimp_get_image_iter(), display_iter() and · a748e3f5
      Michael Natterer authored
      2008-11-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.[ch]: add new functions gimp_get_image_iter(),
      	display_iter() and tool_info_iter().
      
      	* app/tools/gimp-tools.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpvectortool.c
      	* app/dialogs/quit-dialog.c
      	* app/gui/gui.c
      	* app/menus/windows-menu.c
      	* app/actions/images-commands.c
      	* app/actions/tools-actions.c
      	* app/actions/windows-actions.c
      	* app/actions/tool-options-commands.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplay-foreach.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/image.pdb: use them here.
      
      	* app/pdb/image-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27526
      a748e3f5
    • Michael Natterer's avatar
      remove mis-mentioned file. · 189ae4c7
      Michael Natterer authored
      
      svn path=/trunk/; revision=27525
      189ae4c7
    • 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
    • Michael Natterer's avatar
      add "update" signal with the same signature as GimpImage::update(). · c14c84ba
      Michael Natterer authored
      2008-11-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawablestack.[ch]: add "update" signal with the
      	same signature as GimpImage::update(). Install handlers for the
      	drawables' "update" and "visibility-changed" signals and emit
      	"update" accordingly, item offsets taken into account. Also emit
      	"update" when drawables are added, removed and reordered.
      
      	* app/core/gimpimage.[ch]: remove handlers and tons of code that
      	makes sure the image emits "update" on any of the above handled
      	events and simply connect the layer and channel stacks' "update"
      	signal to gimp_image_update().
      
      
      svn path=/trunk/; revision=27523
      c14c84ba
    • Michael Natterer's avatar
      remove the mask_node and simply set both opacity and the layer mask's · 50ac74be
      Michael Natterer authored
      2008-11-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.[ch]: remove the mask_node and simply set
      	both opacity and the layer mask's source node on the opacity_node.
      	Needs latest SVN GEGL.
      
      
      svn path=/trunk/; revision=27522
      50ac74be
    • Martin Nordholts's avatar
      Move the base GeglNode here in preparation for moving the GimpLayer · 24fac1de
      Martin Nordholts authored
      * app/core/gimpitem.[ch]: Move the base GeglNode here in
      preparation for moving the GimpLayer gegl:shift op to here as
      well. After all, the offsets are properties of GimpItem and not
      GimpLayer.
      
      * app/core/gimpdrawable.[ch]: Delegate appropriate stuff to the
      GimpItem base class, like part of the visibility toggling and the
      creation and destruction of the GimpItem node.
      
      * app/core/gimplayer.c
      * app/core/gimpchannel.c
      * app/core/gimpdrawablestack.c: Changed accordingly, use the new
      function names.
      
      * app/core/gimpitempropundo.c
      * app/vectors/gimpvectors-warp.c
      * app/vectors/gimpvectorsmodundo.c: Include gegl.h instead of
      glib-object.h
      
      svn path=/trunk/; revision=27521
      24fac1de
  2. 01 Nov, 2008 11 commits
    • Michael Natterer's avatar
      Fix ChangeLog entry. · b66bad37
      Michael Natterer authored
      
      svn path=/trunk/; revision=27520
      b66bad37
    • Michael Natterer's avatar
      set the MOVE cursor when we are in MOVING mode. · 5fdbd3f5
      Michael Natterer authored
      2008-11-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimprectangletool.c
      	(gimp_rectangle_tool_cursor_update): set the MOVE cursor when we
      	are in MOVING mode.
      
      	* app/tools/gimptexttool.[ch]: remove members x1,x2,y1,y2 and use
      	the rectangle tool's bounding box for creating the text layer (x2
      	and y2) were unused anyway. Add boolean member "moving". Implement
      	oper_update() and set the tool to moving mode when ALT is pressed.
      	Changed button_press(), button_release() and motion() accordingly.
      	Some more cleanup and removal of comented out code.
      
      
      svn path=/trunk/; revision=27519
      5fdbd3f5
    • Sven Neumann's avatar
      include pangoft2 in PANGOCAIRO_CFLAGS and PANGOCAIRO_LIBS. We are still · 5c614fec
      Sven Neumann authored
      2008-11-01  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: include pangoft2 in PANGOCAIRO_CFLAGS and
      	PANGOCAIRO_LIBS. We are still using API that is in PangoFT2.
      
      
      svn path=/trunk/; revision=27518
      5c614fec
    • Michael Natterer's avatar
      app/tools/gimptool.[ch] made all GimpCoords* in the tool API const. · f7287be7
      Michael Natterer authored
      2008-11-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.[ch]
      	* app/tools/tool_manager.[ch]: made all GimpCoords* in the tool
      	API const.
      
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbrushtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpeditselectiontool.[ch]
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpperspectiveclonetool.c
      	* app/tools/gimprectangleselecttool.c
      	* app/tools/gimprectangletool.[ch]
      	* app/tools/gimpregionselecttool.c
      	* app/tools/gimpselectiontool.[ch]
      	* app/tools/gimpsourcetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c: changed accordingly and added const
      	to all GimpCoords* in utility functions too.
      
      	* app/tools/gimptexttool.c: don't modify the passed coords. In
      	fact, simply removed the code that did because it had no effect.
      
      
      svn path=/trunk/; revision=27517
      f7287be7
    • Wouter Bolsterlee's avatar
      Updated Dutch translations by Filip Vervloesem. · 9604c6f1
      Wouter Bolsterlee authored
      2008-11-01  Wouter Bolsterlee  <wbolster@svn.gnome.org>
      
      	* Updated Dutch translations by Filip Vervloesem.
      
      svn path=/trunk/; revision=27515
      9604c6f1
    • Martin Nordholts's avatar
      Replaced the XXX for Soft light with a FIXME. · ca618e3f
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c
      (gimp_operation_point_layer_mode_process): Replaced the XXX for
      Soft light with a FIXME.
      
      svn path=/trunk/; revision=27514
      ca618e3f
    • Martin Nordholts's avatar
      Added 'Since: GIMP 2.8'. · 3791a757
      Martin Nordholts authored
      * libgimpcolor/gimphsl.c (gimp_hsl_set): Added 'Since: GIMP 2.8'.
      
      svn path=/trunk/; revision=27513
      3791a757
    • Martin Nordholts's avatar
      Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we · a9e18758
      Martin Nordholts authored
      * app/gegl/gimpoperation*.c: Prefix the GIMP GEGL operations with
      "gimp:" instead of "gimp-" so we follow the GEGL prefix style and
      better serialize to XML.
      
      * app/tools/gimp*tool.c
      
      * app/core/gimpdrawable-*.c
      * app/core/gimpdrawable.c
      * app/core/gimpimagemap.c
      * app/core/gimpprojection.c: Changed accordingly.
      
      svn path=/trunk/; revision=27512
      a9e18758
    • Martin Nordholts's avatar
      Introduced helper macros fooC to properly un-multiply pre-multiplied data · 657946b2
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Introduced helper macros
      fooC to properly un-multiply pre-multiplied data without causing
      NaNs. This fixes some compositing issues involving complete
      transparency.
      
      svn path=/trunk/; revision=27511
      657946b2
    • Martin Nordholts's avatar
      Renamed fooC aliases to fooCa since they represent pre-multiplied color · 89115694
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Renamed fooC aliases to
      fooCa since they represent pre-multiplied color data.
      
      svn path=/trunk/; revision=27510
      89115694
    • Martin Nordholts's avatar
      Get rid of GRand in process() and use a lut instead. A little benchmark · 0166d505
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Get rid of GRand in
      process() and use a lut instead. A little benchmark showed a
      performance improvement of 78%. Also added defines for the the
      size of the area of which Dissolve repeats it dissolve pattern.
      
      svn path=/trunk/; revision=27509
      0166d505
  3. 31 Oct, 2008 15 commits
  4. 30 Oct, 2008 7 commits
    • Martin Nordholts's avatar
      Formating and simplification. · fc7e65e7
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c
      (gimp_operation_point_layer_mode_process): Formating and
      simplification.
      
      svn path=/trunk/; revision=27486
      fc7e65e7
    • Martin Nordholts's avatar
      The GEGL API actually allows us to handle the Dissolve layer mode as a · 12ea533f
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c
      (gimp_operation_point_layer_mode_process): The GEGL API actually
      allows us to handle the Dissolve layer mode as a point op. The
      GEGL implementation of Dissolve uses a faster implementation for
      deterministic behavior than the legacy Dissolve implementation.
      The end result should be identical (although not on the
      pixel-level).
      
      Completely works the same:
       o Dissolve
      
      svn path=/trunk/; revision=27485
      12ea533f
    • Michael Natterer's avatar
      bail out instead of crashing if the tool has no display. · 106b09f5
      Michael Natterer authored
      2008-10-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_key_press): bail out
      	instead of crashing if the tool has no display.
      
      	(gimp_text_tool_draw)
      	(gimp_text_tool_draw_preedit)
      	(gimp_text_tool_draw_selection)
      	(gimp_text_tool_xy_to_offset): need to adjust all drawing and
      	event coordinates by a possible negative offset between logical
      	rectangle and ink rectangle (if the ink rectangle is larger than
      	the logical one).
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_canvas_tool_events): continue normally if
      	tool_manager_key_press_active() returns FALSE.
      
      
      svn path=/trunk/; revision=27484
      106b09f5
    • Sven Neumann's avatar
      app/text/gimp-fonts.c removed unused includes. · dfd721ef
      Sven Neumann authored
      2008-10-30  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimp-fonts.c
      	* app/text/gimpfont-utils.c: removed unused includes.
      
      
      svn path=/trunk/; revision=27483
      dfd721ef
    • Michael Natterer's avatar
      remove lots of unused variables, apparently my builds were without proper · 7ee008bc
      Michael Natterer authored
      2008-10-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c: remove lots of unused variables,
      	apparently my builds were without proper warnings for some time.
      	Some formatting cleanup and code reordering.
      
      	* app/actions/text-tool-actions.c
      	* menus/text-tool-menu.xml: rename "text-tool-input-methods"
      	to "text-tool-input-methods-menu".
      
      
      svn path=/trunk/; revision=27482
      7ee008bc
    • Sven Neumann's avatar
      fixed order of includes. · c214f412
      Sven Neumann authored
      2008-10-30  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayout.c: fixed order of includes.
      
      	* app/text/gimptext-compat.c: ported to PangoCairo like the rest
      	of the text rendering code.
      
      
      svn path=/trunk/; revision=27481
      c214f412
    • Sven Neumann's avatar
      removed an obsolete and misleading comment. · d3cc6a2c
      Sven Neumann authored
      2008-10-30  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayout-render.c: removed an obsolete and
      	misleading comment.
      
      
      svn path=/trunk/; revision=27480
      d3cc6a2c
  5. 29 Oct, 2008 1 commit