1. 01 Nov, 2008 4 commits
  2. 31 Oct, 2008 9 commits
    • Martin Nordholts's avatar
      Implemented Erase, Anti Erase, Color Erase and Replace. These are not · 5d7bf3ca
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c
      (gimp_operation_point_layer_mode_process): Implemented Erase, Anti
      Erase, Color Erase and Replace. These are not normal layer modes
      and handle alpha in their own way. In addition to this, the
      behavior of Replace doesn't map very well to GEGL which uses
      infinite sized "layers".
      
      Completely works the same:
       o Erase
       o Anti Erase
       o Color Erase
      
      Works different but similar:
       o Replace
      
      * app/paint-funcs/paint-funcs.[ch]: Expose
      paint_funcs_color_erase_helper() so it can be used in the
      GimpOperationPointLayerMode implementation. Once the migration is
      complete this function can be moved entirely to the op and be
      tailored to work on premultiplied data.
      
      svn path=/trunk/; revision=27502
      5d7bf3ca
    • Sven Neumann's avatar
      Bug 558660 – help behavior for locales without manual translation · 2fe030bd
      Sven Neumann authored
      2008-10-31  Sven Neumann  <sven@gimp.org>
      
      	Bug 558660 – help behavior for locales without manual 
      translation
      	
      	* app/widgets/gimphelp.c (gimp_help_user_manual_is_installed):
      	as a fallback check for the english user manual.
      
      
      svn path=/trunk/; revision=27500
      2fe030bd
    • Michael Natterer's avatar
      bail out when the passed display is != tool->display. Makes the keyboard · 54002347
      Michael Natterer authored
      2008-10-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_key_press): bail out
      	when the passed display is != tool->display. Makes the keyboard
      	work in other displays while the text tools is active.
      
      
      svn path=/trunk/; revision=27498
      54002347
    • Michael Natterer's avatar
      add gimp_draw_tool_draw_text_cursor() which draws a properly transformed · f971d31f
      Michael Natterer authored
      2008-10-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpdrawtool.[ch]: add gimp_draw_tool_draw_text_cursor()
      	which draws a properly transformed cursor that always has the same
      	line width.
      
      	* app/tools/gimptexttool.c (gimp_text_tool_draw): use it instead
      	of drawing a cursor here that is broken at anything but 1:1 zoom.
      
      
      svn path=/trunk/; revision=27497
      f971d31f
    • Michael Natterer's avatar
      app/actions/text-tool-actions.c add missing includes and remove unused · 9e7edcbe
      Michael Natterer authored
      2008-10-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/text-tool-actions.c
      	* app/actions/text-tool-commands.c: add missing includes and
      	remove unused variable.
      
      
      svn path=/trunk/; revision=27496
      9e7edcbe
    • Sven Neumann's avatar
      removed checks for PangoFT2. · 3c15e5ed
      Sven Neumann authored
      2008-10-31  Sven Neumann  <sven@gimp.org>
      
      	* INSTALL: 
      	* configure.in: removed checks for PangoFT2.
      
      	* app/config/Makefile.am
      	* app/text/Makefile.am
      	* app/Makefile.am: removed use of PANGOFT2_CFLAGS and 
      PANGOFT2_LIBS.
      
      
      svn path=/trunk/; revision=27490
      3c15e5ed
    • Sven Neumann's avatar
      app/text/gimpfont.c render font previews using PangoCairo. · 437c046d
      Sven Neumann authored
      2008-10-31  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimpfont.c
      	* app/text/gimpfontlist.c: render font previews using 
      PangoCairo.
      
      
      svn path=/trunk/; revision=27489
      437c046d
    • Sven Neumann's avatar
      bumped minimum required version of Cairo to 1.6.4. · 94dd20da
      Sven Neumann authored
      2008-10-31  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: bumped minimum required version of Cairo to 
      1.6.4.
      
      	* app/core/gimpscanconvert.c: use 
      cairo_format_stride_for_width().
      
      
      svn path=/trunk/; revision=27488
      94dd20da
    • Martin Nordholts's avatar
      Formating, simplification and fixed operator precedence for the seed (not · b5733dd3
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c
      (gimp_operation_point_layer_mode_process): Formating,
      simplification and fixed operator precedence for the seed (not
      that it matters much).
      
      svn path=/trunk/; revision=27487
      b5733dd3
  3. 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
  4. 29 Oct, 2008 7 commits
    • Martin Nordholts's avatar
      Bug 558215 – unit and zoom entries in Statusbar not visible · 31e64dac
      Martin Nordholts authored
      * app/display/gimpdisplayshell-callbacks.c
      (gimp_display_shell_canvas_size_allocate): Don't try to be clever,
      call gimp_display_shell_scaled() whenever the canvas size changes
      so a newly created display shell gets updated properly.
      
      svn path=/trunk/; revision=27469
      31e64dac
    • Sven Neumann's avatar
      Bug 558451 – Cannot build GIMP using Sun CC on Solaris 2.8 · b1ff252c
      Sven Neumann authored
      2008-10-29  Sven Neumann  <sven@gimp.org>
      
      	Bug 558451 – Cannot build GIMP using Sun CC on Solaris 2.8
      
      	* app/pdb/gimp-pdb-compat.c
      	* app/gegl/gimpoperationtilesink.c
      	* app/gegl/gimpoperationtilesource.c
      	* app/tools/gimpgegltool.c: applied patches from Eric Lamarque
      	fixing the build using Sun CC on Solaris.
      
      
      svn path=/trunk/; revision=27467
      b1ff252c
    • Martin Nordholts's avatar
      Implemented the layer modes Hue, Saturation, Color and Value. · 5aa338c6
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c
      (gimp_operation_point_layer_mode_process): Implemented the layer
      modes Hue, Saturation, Color and Value.
      
      Works the same for 100% opaque layers:
       o Hue
       o Saturation
       o Color
       o Value
      
      * libgimpcolor/gimphsl.[ch]: Added gimp_hsl_set().
      
      svn path=/trunk/; revision=27466
      5aa338c6
    • Michael Natterer's avatar
      change member "gboolean stroking" into "gint stroking_count". Add push/pop · 82ca2233
      Michael Natterer authored
      2008-10-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpselection.[ch]: change member "gboolean stroking"
      	into "gint stroking_count". Add push/pop API to increase/decrease
      	the counter. Pretend the selection is empty if the counter is > 0.
      	Enables correctly rendering vector layers even if there is a
      	selection.
      
      
      svn path=/trunk/; revision=27464
      82ca2233
    • Sven Neumann's avatar
      Bug 557950 – Scaling in Gimp 2.6 is much slower than in Gimp 2.4 · 064f2afd
      Sven Neumann authored
      2008-10-29  Sven Neumann  <sven@gimp.org>
      
      	Bug 557950 – Scaling in Gimp 2.6 is much slower than in Gimp 2.4
      
      	* app/paint-funcs/scale-region.c: don't do multi-pass scaling 
      when
      	we are scaling up.
      
      
      svn path=/trunk/; revision=27462
      064f2afd
    • Sven Neumann's avatar
      Bug 558420 – projection incorrect with alpha-less layers · 75562157
      Sven Neumann authored
      2008-10-29  Sven Neumann  <sven@gimp.org>
      
      	Bug 558420 – projection incorrect with alpha-less layers
      
      	* app/core/gimpprojection-construct.c 
      (gimp_projection_initialize):
      	need to initialize the projection if the covering layer is not
      	opaque.
      
      
      svn path=/trunk/; revision=27460
      75562157
    • Michael Natterer's avatar
      move the "Antialias" toggle from here... · e616b568
      Michael Natterer authored
      2008-10-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpstrokeeditor.c: move the "Antialias" toggle from
      	here...
      
      	* app/widgets/gimpfilleditor.c: ...to here because it makes sense
      	for both filling and stroking.
      
      
      svn path=/trunk/; revision=27458
      e616b568
  5. 28 Oct, 2008 4 commits
    • Michael Natterer's avatar
      turn nested if()s into a switch(release_type). · 5530ef63
      Michael Natterer authored
      2008-10-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpmagnifytool.c (gimp_magnify_tool_button_release):
      	turn nested if()s into a switch(release_type).
      
      
      svn path=/trunk/; revision=27455
      5530ef63
    • Martin Nordholts's avatar
      Bug 556603 – Zoom region always zooms in center of image · cf660f3e
      Martin Nordholts authored
      * app/tools/gimpmagnifytool.c (gimp_magnify_tool_button_release):
      When zooming with a click, use gimp_display_shell_scale() instead
      of local zoom logic.
      
      svn path=/trunk/; revision=27452
      cf660f3e
    • Michael Natterer's avatar
      added "gboolean below" to gimp_enum_radio_frame_add() and · 88db2994
      Michael Natterer authored
      2008-10-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpwidgets-utils.[ch]: added "gboolean below" to
      	gimp_enum_radio_frame_add() and gimp_enum_radio_box_add() and
      	place the widget right of the radio button unless "below" is TRUE.
      
      	* app/dialogs/convert-dialog.c
      	* app/dialogs/layer-add-mask-dialog.c
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpperspectiveclonetool.c
      	* app/widgets/gimpfilleditor.c: pass TRUE so everything stays as-is.
      
      
      svn path=/trunk/; revision=27450
      88db2994
    • Martin Nordholts's avatar
      Put the existing blend formulas in expanded switch cases again. We need to · 9631635f
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c
      (gimp_operation_point_layer_mode_process): Put the existing blend
      formulas in expanded switch cases again. We need to keep the more
      complicated layer modes like Hue, Value and Saturation in expanded
      switch cases anyway.
      
      svn path=/trunk/; revision=27449
      9631635f
  6. 27 Oct, 2008 9 commits
    • Michael Natterer's avatar
      some minor cleanups. · 73410cef
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c: some minor cleanups.
      
      	(gimp_text_tool_draw): draw a cursor of two pixels width which is
      	between glyphs so it is visible both at the left and the right
      	border or the rectangle. Also make it look a little more
      	cursor-like.
      
      
      svn path=/trunk/; revision=27446
      73410cef
    • Michael Natterer's avatar
      app/actions/text-tool-actions.c app/actions/text-tool-commands.[ch] rename · bf97eab4
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/text-tool-actions.c
      	* app/actions/text-tool-commands.[ch]
      	* menus/text-tool-menu.xml: rename action "path-from-text" to
      	"text-to-path".
      
      
      svn path=/trunk/; revision=27445
      bf97eab4
    • Michael Natterer's avatar
      menus/text-tool-menu.xml app/actions/text-tool-actions.c add "Text along · c0cb7c14
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* menus/text-tool-menu.xml
      	* app/actions/text-tool-actions.c
      	* app/actions/text-tool-commands.[ch]: add "Text along Path" to the
      	text tool context menu.
      
      	* app/tools/gimptextoptions.[ch]: remove the text along path
      	button here.
      
      	* app/tools/gimptexttool.c: changed accordingly.
      
      	* app/tools/gimptexttool.[ch]: move public functions together,
      	move all virtual function implementations together and put them in
      	order, made the text along path function public, factor out
      	gimp_text_tool_xy_to_offset() instead of duplicaing this code
      	three times, remove gimp_rectangle_tool_frame_item() because it
      	doesn't belong here.
      
      	* app/tools/gimprectangletool.[ch]: add
      	gimp_rectangle_tool_frame_item() here. Enselic, please process ;)
      
      
      svn path=/trunk/; revision=27444
      c0cb7c14
    • Sven Neumann's avatar
      changed menu labels. · ae42ff5f
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/text-tool-actions.c: changed menu labels.
      
      
      svn path=/trunk/; revision=27443
      ae42ff5f
    • Sven Neumann's avatar
      hide the file dialog instead of destroying it. · 855bc3af
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/text-editor-commands.c 
      (text_editor_load_response):
      	hide the file dialog instead of destroying it.
      
      
      svn path=/trunk/; revision=27442
      855bc3af
    • Sven Neumann's avatar
      removed unused includes. · 4ce3a625
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptexttool.c: removed unused includes.
      
      	* app/actions/text-tool-commands.c 
      (text_tool_load_cmd_callback):
      	fixed file dialog for opening text files.
      
      
      svn path=/trunk/; revision=27441
      4ce3a625
    • Michael Natterer's avatar
      take the layout line's x coordinate into account so the stuff works for · b258af7a
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_key_press): take the
      	layout line's x coordinate into account so the stuff works for
      	right-aligned or centered text.
      
      
      svn path=/trunk/; revision=27440
      b258af7a
    • Michael Natterer's avatar
      argh, need to speak in byte offsets not character offsets. Do so and avoid · 50f043c3
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_key_press): argh, need
      	to speak in byte offsets not character offsets. Do so and avoid
      	getting the buffer's text on each keystroke just to do the
      	char/byte conversion. Will use the same method for all the other
      	places which do similar things.
      
      	(gimp_text_tool_connect): minor cleanup.
      
      
      svn path=/trunk/; revision=27439
      50f043c3
    • Sven Neumann's avatar
      iterate over the tiles instead of rendering row-by-row. · edf9690e
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayer.c (gimp_text_layer_render_layout):
      	iterate over the tiles instead of rendering row-by-row.
      
      
      svn path=/trunk/; revision=27438
      edf9690e