1. 28 Jan, 2008 5 commits
  2. 27 Jan, 2008 8 commits
    • Michael Natterer's avatar
      app/gegl/gimpcolorbalanceconfig.[ch] app/gegl/gimpcolorizeconfig.[ch] · f200f9ca
      Michael Natterer authored
      2008-01-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimpcolorbalanceconfig.[ch]
      	* app/gegl/gimpcolorizeconfig.[ch]
      	* app/gegl/gimpcurvesconfig.[ch]
      	* app/gegl/gimphuesaturationconfig.[ch]
      	* app/gegl/gimplevelsconfig.[ch]
      	* app/gegl/gimpposterizeconfig.[ch]
      	* app/gegl/gimpthresholdconfig.[ch]: implement the GimpConfig
      	interface and remove public reset() functions except special ones
      	which reset only parts of the objects. Add lots of property
      	notifications.
      
      	* 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: use gimp_config_reset(), misc.
      	related changes and cleanups.
      
      
      svn path=/trunk/; revision=24724
      f200f9ca
    • Sven Neumann's avatar
      formatting · 4d1ccd63
      Sven Neumann authored
      svn path=/trunk/; revision=24723
      4d1ccd63
    • Kevin Cozens's avatar
      Dynamically allocate space to hold comments, links, strings, and · 7b67daac
      Kevin Cozens authored
      2008-01-27  Kevin Cozens  <kcozens@cvs.gnome.org>
      
      	* plug-ins/imagemap/imap_cern.l:
      	* plug-ins/imagemap/imap_cern.y: 
      	* plug-ins/imagemap/imap_csim.l:
      	* plug-ins/imagemap/imap_csim.y:
      	* plug-ins/imagemap/imap_ncsa.l:
      	* plug-ins/imagemap/imap_ncsa.y: Dynamically allocate space to hold
      	comments, links, strings, and co-ordinate lists. Fixes bug #511072.
      
      	* plug-ins/imagemap/imap_cern_lex.c:
      	* plug-ins/imagemap/imap_cern_parse.c:
      	* plug-ins/imagemap/imap_cern_parse.h:
      	* plug-ins/imagemap/imap_csim_lex.c:
      	* plug-ins/imagemap/imap_csim_parse.c:
      	* plug-ins/imagemap/imap_csim_parse.h:
      	* plug-ins/imagemap/imap_ncsa_lex.c:
      	* plug-ins/imagemap/imap_ncsa_parse.c:
      	* plug-ins/imagemap/imap_ncsa_parse.h: Regenerated.
      
      svn path=/trunk/; revision=24722
      7b67daac
    • Sven Neumann's avatar
      transfer the pixels to the core on a tile-by-tile basis. · d1e1e0a1
      Sven Neumann authored
      2008-01-27  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/gimpressionist/gimp.c (gimpressionist_main): transfer
      	the pixels to the core on a tile-by-tile basis.
      
      
      svn path=/trunk/; revision=24718
      d1e1e0a1
    • Sven Neumann's avatar
      changed code that retrieves the source drawable to iterate over the data · 08c95527
      Sven Neumann authored
      2008-01-27  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/gimpressionist/gimp.c (grabarea): changed code that
      	retrieves the source drawable to iterate over the data 
      tile-by-tile.
      
      
      svn path=/trunk/; revision=24717
      08c95527
    • Manish Singh's avatar
      no need to use a temporary in tuple translation, and clamp the result. · feff2c6b
      Manish Singh authored
      2008-01-26  Manish Singh  <yosh@gimp.org>
      
              * plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): no
              need to use a temporary in tuple translation, and clamp the result.
      
              * plug-ins/pygimp/gimpmodule.c (pygimp_set_background,
              pygimp_set_foreground): restore support for passing in 3 args for
              color components, for backward compatibility.
      
      svn path=/trunk/; revision=24716
      feff2c6b
    • Joao S. O. Bueno's avatar
      fix subsequent error (calculated parameters where not used) · 2ca4dcf8
      Joao S. O. Bueno authored
      2008-01-26 Joao S. O. Bueno <gwidion@mpc.com.br>
      
              * plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix
              subsequent error (calculated parameters where not used)
      
      svn path=/trunk/; revision=24715
      2ca4dcf8
    • Manish Singh's avatar
      fix error reporting. · dc847999
      Manish Singh authored
      2008-01-26  Manish Singh  <yosh@gimp.org>
      
              * plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix
              error reporting.
      
      svn path=/trunk/; revision=24714
      dc847999
  3. 25 Jan, 2008 8 commits
    • Michael Natterer's avatar
      app/gegl/Makefile.am app/gegl/gegl-types.h new parent class for all image · a85213cd
      Michael Natterer authored
      2008-01-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpoperationpointfilter.[ch]: new parent class for all
      	image map operations. Features a "config" member and "public"
      	get_property() and set_property() functions to be used by
      	subclasses.
      
      	* app/gegl/gimpoperationcolorbalance.[ch]
      	* app/gegl/gimpoperationcolorize.[ch]
      	* app/gegl/gimpoperationcurves.[ch]
      	* app/gegl/gimpoperationhuesaturation.[ch]
      	* app/gegl/gimpoperationlevels.[ch]
      	* app/gegl/gimpoperationposterize.[ch]
      	* app/gegl/gimpoperationthreshold.[ch]: derive from
      	GimpOperationPointFilter, remove "config" members, remove
      	finalize(), get_property() and set_property() implementations and
      	use the ones provided by the parent class.
      
      
      svn path=/trunk/; revision=24713
      a85213cd
    • Michael Natterer's avatar
      app/gegl/Makefile.am app/gegl/gegl-types.h new config object. · e79955d9
      Michael Natterer authored
      2008-01-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpposterizeconfig.[ch]: new config object.
      
      	* app/gegl/gimpoperationposterize.[ch]
      	* app/tools/gimpposterizetool.[ch]: use it.
      
      
      svn path=/trunk/; revision=24711
      e79955d9
    • Michael Natterer's avatar
      app/tools/gimpbrightnesscontrasttool.c app/tools/gimpcolorbalancetool.c · 3fd067de
      Michael Natterer authored
      2008-01-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: remove includes which are no
      	longer needed.
      
      
      svn path=/trunk/; revision=24709
      3fd067de
    • Michael Natterer's avatar
      app/gegl/gimpcurvesconfig.[ch] add load_cruft() and save_cruft() functions · f848ac07
      Michael Natterer authored
      2008-01-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimpcurvesconfig.[ch]
      	* app/gegl/gimplevelsconfig.[ch]: add load_cruft() and
      	save_cruft() functions which load/save the old (current) curves
      	and levels file formats.
      
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c: use them here and remove a lot of
      	includes.
      
      
      svn path=/trunk/; revision=24708
      f848ac07
    • Michael Natterer's avatar
      removed the GimpHueRange member from the tool struct and use the one from · 7ddd71d0
      Michael Natterer authored
      2008-01-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimphuesaturationtool.[ch]: removed the GimpHueRange
      	member from the tool struct and use the one from the config object
      	instead. Also did a global s/partition/range/.
      
      
      svn path=/trunk/; revision=24707
      7ddd71d0
    • Michael Natterer's avatar
      app/gegl/Makefile.am app/gegl/gegl-types.h new config object. · efeeb585
      Michael Natterer authored
      2008-01-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpthresholdconfig.[ch]: new config object.
      
      	* app/gegl/gimpoperationthreshold.[ch]: use it.
      
      	* app/tools/gimpthresholdtool.[ch]: ditto.
      
      
      svn path=/trunk/; revision=24706
      efeeb585
    • Michael Natterer's avatar
      app/tools/gimpcurvestool.[ch] remove the "channel" member from the tool · 52fbc5cd
      Michael Natterer authored
      2008-01-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimplevelstool.[ch]: remove the "channel" member from
      	the tool struct and use the channel from the options object
      	instead.
      
      
      svn path=/trunk/; revision=24705
      52fbc5cd
    • Sven Neumann's avatar
      avoid crashing when the widget allocation is small (bug #511926). · 4624bc84
      Sven Neumann authored
      2008-01-25  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcolormapeditor.c (gimp_colormap_editor_draw):
      	avoid crashing when the widget allocation is small (bug 
      #511926).
      
      
      svn path=/trunk/; revision=24704
      4624bc84
  4. 24 Jan, 2008 5 commits
    • Sven Neumann's avatar
      updated copyright. · 60089b64
      Sven Neumann authored
      2008-01-24  Sven Neumann  <sven@gimp.org>
      
      	* app/about.h (GIMP_COPYRIGHT): updated copyright.
      
      svn path=/trunk/; revision=24703
      60089b64
    • Sven Neumann's avatar
      removed unused image. · d1b811ce
      Sven Neumann authored
      2008-01-24  Sven Neumann  <sven@gimp.org>
      
      	* themes/Default/images/stock-wilber-48.png: removed unused image.
      
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-wilber-22.png: moved here from
      	libgimpwidgets.
      
      	* libgimpwidgets/gimpstock.c: register Wilber icon in button size.
      
      	* data/images/wilber.png: moved 256x256 icon here from
      	libgimpwidgets.
      
      svn path=/trunk/; revision=24702
      d1b811ce
    • Michael Natterer's avatar
      app/gegl/Makefile.am app/gegl/gegl-types.h new config object. · b25559c3
      Michael Natterer authored
      2008-01-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpcolorbalanceconfig.[ch]: new config object.
      
      	* app/gegl/gimpoperationcolorbalance.[ch]: use it.
      
      	* app/tools/gimpcolorbalancetool.[ch]: port to
      	GimpColorBalanceConfig and use the old ColorBalance cruft only in
      	map(). The effect of the GEGL operator is now even more different
      	from the cruft code because I removed a hack that was applying an
      	additional factor when mapping between the ColorBalance values and
      	the new properties, but that was only a workaround to make it look
      	more similar anyway. Will have to fix this properly.
      
      	* app/base/color-balance.[ch]: remove API that is now obsolete.
      
      
      svn path=/trunk/; revision=24701
      b25559c3
    • Sven Neumann's avatar
      app/core/gimpimage.c fixed handling of the image undo counter for the case · a9b946e3
      Sven Neumann authored
      2008-01-24  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage.c
      	* app/core/gimpimage-undo.c: fixed handling of the image undo
      	counter for the case where the user has undone the image to a
      	state before the last save and then pushes a new undo. Fixes
      	bug #509822.
      
      
      svn path=/trunk/; revision=24699
      a9b946e3
    • Michael Natterer's avatar
      added reset() and to_cruft() functions. · fdc4eded
      Michael Natterer authored
      2008-01-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimpcolorizeconfig.[ch]: added reset() and to_cruft()
      	functions.
      
      	* app/tools/gimpcolorizetool.c: use them.
      
      
      svn path=/trunk/; revision=24698
      fdc4eded
  5. 23 Jan, 2008 12 commits
    • Martin Nordholts's avatar
      Reset the automatic undo/redo mechanism so that commiting pending · d089ea9c
      Martin Nordholts authored
      2008-01-23  Martin Nordholts  <martinn@svn.gnome.org>
      
      	* app/tools/gimprectangleselecttool.c
      	(gimp_rect_select_tool_execute): Reset the automatic undo/redo
      	mechanism so that commiting pending rectangles with Return
      	works (bug #511599).
      
      svn path=/trunk/; revision=24696
      d089ea9c
    • Sven Neumann's avatar
      show the selection, even if the window is flagged as invisible, but don't · 087268e6
      Sven Neumann authored
      2008-01-23  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-selection.c: show the selection,
      	even if the window is flagged as invisible, but don't start the
      	animation. Addresses bug #505758.
      
      
      svn path=/trunk/; revision=24694
      087268e6
    • Michael Natterer's avatar
      call hue_saturation_calculate_transfers() here... · df24e668
      Michael Natterer authored
      2008-01-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimphuesaturationconfig.[ch]
      	(gimp_hue_saturation_config_to_cruft): call
      	hue_saturation_calculate_transfers() here...
      
      	* app/tools/gimphuesaturationtool.c (gimp_hue_saturation_tool_map):
      	...instead of here.
      
      
      svn path=/trunk/; revision=24693
      df24e668
    • Michael Natterer's avatar
      to_levels_cruft() -> to_cruft(). · 17e0ee41
      Michael Natterer authored
      2008-01-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimplevelsconfig.[ch]: to_levels_cruft() -> to_cruft().
      
      	* app/core/gimpdrawable-levels.c
      	* app/tools/gimplevelstool.c: changed accordingly.
      
      
      svn path=/trunk/; revision=24692
      17e0ee41
    • Michael Natterer's avatar
      change signature of widget callbacks to take a GimpHueSaturationTool · 61b2d2c4
      Michael Natterer authored
      2008-01-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimphuesaturationtool.c: change signature of widget
      	callbacks to take a GimpHueSaturationTool pointer instead of
      	"gpointer data".
      
      	* app/tools/gimpposterizetool.c: remove redundant GTK_ADJUSTMENT()
      	casts.
      
      
      svn path=/trunk/; revision=24691
      61b2d2c4
    • Sven Neumann's avatar
      app/sanity.c minor cleanup. · c9928b57
      Sven Neumann authored
      2008-01-23  Sven Neumann  <sven@gimp.org>
      
      	* app/sanity.c 
      	* app/gui/gui.c (gui_sanity_check): minor cleanup.
      
      
      svn path=/trunk/; revision=24690
      c9928b57
    • Sven Neumann's avatar
      removed obsolete version check here. · 73172dce
      Sven Neumann authored
      2008-01-23  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/about-dialog.c (about_dialog_create): removed
      	obsolete version check here.
      
      svn path=/trunk/; revision=24688
      73172dce
    • Sven Neumann's avatar
      gracefully handle a NULL link. (mru_destruct): plugged a memory leak. · 6e4e2503
      Sven Neumann authored
      2008-01-23  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/imagemap/imap_mru.c (mru_remove_link): gracefully
      	handle a NULL link.
      	(mru_destruct): plugged a memory leak.
      
      	* plug-ins/imagemap/imap_about.c: use "program-name" instead
      	of "name".
      
      
      svn path=/trunk/; revision=24686
      6e4e2503
    • Michael Natterer's avatar
      don't #include <gegl.h> · ca5ffa5b
      Michael Natterer authored
      2008-01-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.h: don't #include <gegl.h>
      
      	* app/actions/tools-commands.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/tools/gimp-tools.c: include it here. Whenever the build
      	breaks because of some GEGL change in GIMP, please inlcude
      	<gegl.h> instead of <glib-object.h> or before <gtk/gtk.h> in the
      	affected .c files.
      
      
      svn path=/trunk/; revision=24685
      ca5ffa5b
    • Sven Neumann's avatar
      fixed typo · 4a9d3504
      Sven Neumann authored
      svn path=/trunk/; revision=24684
      4a9d3504
    • Michael Natterer's avatar
      app/gegl/Makefile.am app/gegl/gegl-types.h app/gegl/gimpcurvesconfig.[ch] · 89900621
      Michael Natterer authored
      2008-01-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpcurvesconfig.[ch]
      	* app/gegl/gimpoperationcurves.[ch]: add curves operation and its
      	config object. Hack around badly to be able to use GimpCurve from
      	app/core.
      
      	* app/gegl/gimp-gegl.c: register the curves operation.
      
      	* app/tools/gimpcurvestool.[ch]: added get_operation() implemenetation
      	and use the new config object instead of keeping around 5 curves.
      
      
      svn path=/trunk/; revision=24683
      89900621
    • Michael Natterer's avatar
      new utility function which maps a single value. · 5d07620d
      Michael Natterer authored
      2008-01-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimpoperationlevels.[ch]
      	(gimp_operation_levels_map_input): new utility function which maps
      	a single value.
      
      	* app/tools/gimplevelstool.[ch] (levels_update_adjustments): use the
      	new function to create the input arrays for gimp_color_bar_set_buffer().
      
      	Removed the Levels struct from the GimpLevelsTool struct and only
      	use it in map() when needed.
      
      	* app/base/levels.[ch]: remove obsolete API and struct members.
      
      
      svn path=/trunk/; revision=24682
      5d07620d
  6. 22 Jan, 2008 2 commits
    • Sven Neumann's avatar
      decreased the priority of the projection idle renderer to 150, halfway · ffab5cc9
      Sven Neumann authored
      2008-01-22  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpprojection.c (gimp_projection_idle_render_init):
      	decreased the priority of the projection idle renderer to 150,
      	halfway between G_PRIORITY_HIGH_IDLE and 
      G_PRIORITY_DEFAULT_IDLE.
      	Fixes bug #511214.
      
      
      svn path=/trunk/; revision=24680
      ffab5cc9
    • Sven Neumann's avatar
      smooth the mask instead of dilating. · 80191e35
      Sven Neumann authored
      2008-01-22  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpbrushcore.c (gimp_brush_core_create_bound_segs):
      	smooth the mask instead of dilating.
      
      
      svn path=/trunk/; revision=24678
      80191e35