Commit graph

17815 commits

Author SHA1 Message Date
Martin Nordholts 2716d25dd5 Rename brush stuff with 'scale' to 'transform'.
Applied patch from Alexia Death that prepares brushes for
arbitrary transforms by renaming stuff with 'scale' to
'transform'. Takes us one step closer to fixing bug #520078.

* app/core/gimpbrush.[ch]
* app/core/gimpbrushgenerated.c
* app/paint/gimpbrushcore.[ch]
* app/paint/gimpsmudge.c

* app/core/gimpbrush-transform.[ch]: New names of
* app/core/gimpbrush-scale.[ch]

* app/core/Makefile.am: Update.

svn path=/trunk/; revision=27975
2009-02-01 11:08:22 +00:00
Martin Nordholts 431cb58e85 Add const qualifier to gimp_layer_get_floating_sel_drawable().
svn path=/trunk/; revision=27974
2009-02-01 10:22:22 +00:00
Sven Neumann b25b979fc9 removed gimp_image_get_type_string() again.
2009-01-29  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage.[ch]: removed gimp_image_get_type_string()
	again.
	
	* app/display/gimpdisplayshell-title.c
	(gimp_display_shell_format_title): use the GimpImageBaseType 
enum
	instead.

	* app/tools/gimptool.c (gimp_tool_oper_update): if the image is
	empty and the tool can't handle that, display a message in the
	statusbar telling the user about this.


svn path=/trunk/; revision=27970
2009-01-29 21:32:30 +00:00
Sven Neumann d9bd97d02b fixed incorrect optimization that caused glitches in the rounded corners
2009-01-29  Sven Neumann  <sven@gimp.org>

	* app/core/gimpchannel-combine.c 
(gimp_channel_combine_ellipse_rect):
	fixed incorrect optimization that caused glitches in the rounded
	corners on the left side of rectangular selections.


svn path=/trunk/; revision=27968
2009-01-29 10:02:47 +00:00
Sven Neumann 107f5fc587 don't set an error if the procedure was cancelled.
2009-01-28  Sven Neumann  <sven@gimp.org>

	* app/pdb/gimpprocedure.c (gimp_procedure_execute): don't set an
	error if the procedure was cancelled.


svn path=/trunk/; revision=27967
2009-01-28 22:12:34 +00:00
Michael Natterer 521555c439 add new accessor gimp_layer_get_floating_sel_drawable() which returns the
2009-01-26  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.[ch]: add new accessor
	gimp_layer_get_floating_sel_drawable() which returns the drawable
	the floating layer is attached to.

	* app/core/gimpdrawable.c
	* app/core/gimpfloatingselundo.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage-quick-mask.c
	* app/core/gimpimage.c
	* app/core/gimplayer.c
	* app/core/gimplayer-floating-sel.c
	* app/xcf/xcf-save.c
	* tools/pdbgen/pdb/image.pdb: use it instead of accessing
	layer->fs.drawable directly.

	* app/pdb/image-cmds.c: regenerated.


svn path=/trunk/; revision=27962
2009-01-26 22:47:16 +00:00
Michael Natterer 785eef1af9 The GEGL projection does floating selections now:
2009-01-26  Michael Natterer  <mitch@gimp.org>

	The GEGL projection does floating selections now:

	* app/core/gimpdrawable.[ch] (struct GimpDrawable): add a couple
	of GeglNodes which are used to create a sub-graph for this
	drawable's floating selection.

	(gimp_drawable_detach_floating_sel)
	(gimp_drawable_attach_floating_sel): new functions to call
	whenever a floating selection gets attached or detached.

	Change the role of the drawable's "source_node": it's no longer a
	direct tile source but an arbitrary graph. Add new internal
	function gimp_drawable_sync_source_node() which creates a
	sub-graph for the floating selection within the source node, and
	uses the new "tile_source_node" directly otherwise. Connect to
	"notify" of the floating selection and reconfigure its sub-graph
	when its properties change. This is also one more refactoring in
	the direction of layer trees.

	* app/core/gimpfloatingselundo.c
	* app/core/gimpimage.c
	* app/core/gimplayer-floating-sel.c: call the new attach/detach
	API whenever a floating selection is attached or detached from a
	drawable. This will need more refactoring i guess...


svn path=/trunk/; revision=27961
2009-01-26 22:05:07 +00:00
Michael Natterer abe3230755 don't show the floating selection layer in the image graph, it will be
2009-01-26  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_visibility_changed):
	don't show the floating selection layer in the image graph, it
	will be shown by the drawable it is attached to. This is a temp
	special case hack, but better fits here than into the newly
	created and clean GimpDrawableStack. The floating selection will
	see the end of its days as layer soon enough anyway.


svn path=/trunk/; revision=27960
2009-01-26 21:20:03 +00:00
Michael Natterer ef3fbab8bc chain up if a parent impl exists to be safe against future gtk versions
2009-01-26  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpbutton.c (gimp_button_clicked): chain up if a
	parent impl exists to be safe against future gtk versions doing
	something in GtkButton::clicked() (as happened in GTK+ trunk).


svn path=/trunk/; revision=27958
2009-01-26 20:23:01 +00:00
Sven Neumann bb0ca406ef check the return value of fgets().
2009-01-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve-bend.c (p_load_pointfile): check the
	return value of fgets().


svn path=/trunk/; revision=27957
2009-01-26 09:05:48 +00:00
Michael Natterer 0af5d238ae move variables to local scope.
2009-01-26  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpregionselecttool.c
	(gimp_region_select_tool_button_release): move variables to local
	scope.


svn path=/trunk/; revision=27951
2009-01-25 23:32:21 +00:00
Martin Nordholts 876a96e44c New helper function that creates a new GimpProcedure that can be used to
* app/pdb/gimpprocedure.[ch] (gimp_procedure_create_override): New
helper function that creates a new GimpProcedure that can be used
to override an existing procedure.

svn path=/trunk/; revision=27950
2009-01-25 20:06:09 +00:00
Martin Nordholts 3b79e36d30 New method to get a string representation of the image type.
* app/core/gimpimage.[ch] (gimp_image_get_type_string): New method
to get a string representation of the image type.

* app/display/gimpdisplayshell-title.c
(gimp_display_shell_format_title): Ask the GimpImage for an image
type string instead of making assumptions about its
implementation.

svn path=/trunk/; revision=27947
2009-01-25 19:21:52 +00:00
Martin Nordholts d5b91835fd Bail out if we fail to create a dest buffer.
* app/base/temp-buf.c (temp_buf_copy): Bail out if we fail to
create a dest buffer.

svn path=/trunk/; revision=27946
2009-01-25 19:07:51 +00:00
Michael Natterer 6584aba5c2 app/core/Makefile.am new files implementing gimp_param_spec_duplicate()
2009-01-25  Michael Natterer  <mitch@gimp.org>

	* app/core/Makefile.am
	* app/core/gimpparamspecs-duplicate.[ch]: new files implementing
	gimp_param_spec_duplicate() which is supposed to duplicate any
	gimp or gegl GParamSpec (but doesn't do this yet).

	* app/tools/gimpgegltool.c: remove the code form here.


svn path=/trunk/; revision=27945
2009-01-25 18:01:47 +00:00
Michael Natterer e8a7882585 gegl_color_get_rgba() takes pointers to doubles now, not floats.
2009-01-25  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpgegltool.c (gimp_param_spec_duplicate):
	gegl_color_get_rgba() takes pointers to doubles now, not floats.


svn path=/trunk/; revision=27944
2009-01-25 17:45:05 +00:00
Michael Natterer b907703040 Bug 568890 – don't rely on GtkAction implementation details
2009-01-24  Michael Natterer  <mitch@gimp.org>

	Bug 568890 – don't rely on GtkAction implementation details

	* app/widgets/gimpuimanager.c (gimp_ui_manager_menu_item_select):
	use gtk_widget_get_action() instead of g_object_get_data(),
	which relies on the name of the data key.


svn path=/trunk/; revision=27939
2009-01-24 17:50:31 +00:00
Kevin Cozens f200e3055c Applied patch from Andreas Turtschan to fix more RGB colour values. Fixes
2009-01-23  Kevin Cozens  <kcozens@cvs.gimp.org>

	* libgimpcolor/gimprgb-parse.c: Applied patch from Andreas Turtschan
	to fix more RGB colour values. Fixes bug #568909.

svn path=/trunk/; revision=27937
2009-01-23 21:49:25 +00:00
Kevin Cozens 00313687f2 Applied patch from Andreas Turtschan to fix colour values for slategray
2009-01-23  Kevin Cozens  <kcozens@cvs.gimp.org>

	* libgimpcolor/gimprgb-parse.c: Applied patch from Andreas Turtschan
	to fix colour values for slategray and slategray. Fixes bug #568839.

svn path=/trunk/; revision=27932
2009-01-23 16:08:24 +00:00
Tor Lillqvist fb554e98cd Bug 559408 - Brushes dragged to the image window look strange
2009-01-22  Tor Lillqvist  <tml@iki.fi>

	Bug 559408 - Brushes dragged to the image window look strange 

	* app/widgets/gimppixbuf.c (gimp_pixbuf_format_compare): Drop
	Windows-specific code to prefer BMP. The BMP format written by
	gdk-pixbuf doesn't support alpha. PNG is better. Note that the
	same bug report also takes up a different problem.


svn path=/trunk/; revision=27928
2009-01-22 00:47:18 +00:00
Sven Neumann e9e48274c5 Bug 568617 – "Plase" misspelled
2009-01-21  Sven Neumann  <sven@gimp.org>

	Bug 568617 – "Plase" misspelled

	* app/widgets/gimpuimanager.c: fixed typo.


svn path=/trunk/; revision=27926
2009-01-21 21:52:15 +00:00
Martin Nordholts 4a72283f76 Adjust to babl API adjustment by doing
s/babl_format_from_name/babl_format/

* app/gegl/gimp-gegl-utils.c
* app/gegl/gimpoperationpointlayermode.c
* app/gegl/gimpoperationtilesource.c

svn path=/trunk/; revision=27923
2009-01-20 20:11:23 +00:00
Michael Natterer 4ea1437646 plug-ins/common/*.c plug-ins/color-rotate/color-rotate.c
2009-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c
	* plug-ins/color-rotate/color-rotate.c
	* plug-ins/file-bmp/bmp.c
	* plug-ins/file-faxg3/faxg3.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-fli/fli-gimp.c
	* plug-ins/file-ico/ico.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-psd/psd-save.c
	* plug-ins/file-psd/psd.c
	* plug-ins/file-sgi/sgi.c
	* plug-ins/file-uri/uri.c
	* plug-ins/file-xjt/xjt.c
	* plug-ins/flame/flame.c
	* plug-ins/fractal-explorer/fractal-explorer.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gimpressionist/gimp.c
	* plug-ins/gradient-flare/gradient-flare.c
	* plug-ins/help-browser/help-browser.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/lighting/lighting-main.c
	* plug-ins/map-object/map-object-main.c
	* plug-ins/maze/maze.c
	* plug-ins/metadata/metadata.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/print.c
	* plug-ins/pygimp/gimpfu.py
	* plug-ins/script-fu/script-fu-script.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/selection-to-path/selection-to-path.c
	* plug-ins/twain/twain.c
	* plug-ins/win-snap/winsnap.c: document the "run-mode" parameter
	as we document enums for core procedures.


svn path=/trunk/; revision=27922
2009-01-19 20:11:36 +00:00
Sven Neumann bd5ffab689 Bug 568095 – Patch to improve unsharp mask performance
2009-01-18  Sven Neumann  <sven@gimp.org>

	Bug 568095 – Patch to improve unsharp mask performance

	* plug-ins/common/unsharp-mask.c (box_blur_line): applied 
another
	patch from Winston Chang with further performance improvements.


svn path=/trunk/; revision=27919
2009-01-18 11:15:43 +00:00
Sven Neumann c0df488439 depend on babl >= 0.0.23 and GEGL >= 0.0.22.
2009-01-18  Sven Neumann  <sven@gimp.org>

	* configure.in: depend on babl >= 0.0.23 and GEGL >= 0.0.22.


svn path=/trunk/; revision=27918
2009-01-18 10:48:57 +00:00
Sven Neumann f59218d3dd added -DBABL_DISABLE_DEPRECATED.
2009-01-18  Sven Neumann  <sven@gimp.org>

	* configure.in (CPPFLAGS): added -DBABL_DISABLE_DEPRECATED.

	* plug-ins/common/unsharp-mask.c: formatting.


svn path=/trunk/; revision=27917
2009-01-18 10:40:03 +00:00
Martin Nordholts 4d55dd33ef Bug 563337 – Rectangle Select Tool does not allow 1:1 fixed ratio
* libgimpwidgets/gimpnumberpairentry.c: When testing if the value
changed on focus-out we shall test against the current values, not
the default values.

svn path=/trunk/; revision=27914
2009-01-18 07:54:59 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
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
2009-01-17 22:28:01 +00:00
Sven Neumann 51bfd07f18 Bug 568095 – Patch to improve unsharp mask performance
2009-01-17  Sven Neumann  <sven@gimp.org>

	Bug 568095 – Patch to improve unsharp mask performance

	* plug-ins/common/unsharp-mask.c (unsharp_region): applied patch
	from Winston Chang that improves performance for larger radii by
	approximating the gaussian blur with a three-pass box blur.


svn path=/trunk/; revision=27912
2009-01-17 22:17:42 +00:00
Martin Nordholts 7905a7c0a5 Adapt to new babl API, s/babl_format/babl_format_from_name/
* app/gegl/gimp-gegl-utils.c
* app/gegl/gimpoperationpointlayermode.c
* app/gegl/gimpoperationtilesource.c

svn path=/trunk/; revision=27911
2009-01-17 21:20:05 +00:00
Sven Neumann b279420793 Bug 568021 – Unused code in unsharp-mask.c
2009-01-17  Sven Neumann  <sven@gimp.org>

	Bug 568021 – Unused code in unsharp-mask.c

	* plug-ins/common/unsharp-mask.c: applied patch from Winston 
Chang
	that removes unused code.


svn path=/trunk/; revision=27910
2009-01-17 16:05:13 +00:00
Sven Neumann d2654f071c Bug 568016 – Black pullout parameter of plug-in-newsprint has no effect
2009-01-17  Sven Neumann  <sven@gimp.org>

	Bug 568016 – Black pullout parameter of plug-in-newsprint has
	no effect

	* plug-ins/common/newsprint.c: fixed the documentation of the
	colorspace parameter.


svn path=/trunk/; revision=27908
2009-01-17 13:57:16 +00:00
Sven Neumann 236a94b009 INSTALL autogen.sh require intltool >= 0.40.1. Looks like that was the
2009-01-13  Sven Neumann  <sven@gimp.org>

	* INSTALL
	* autogen.sh
	* configure.in: require intltool >= 0.40.1. Looks like that was
	the first version with support for the NC_ keyword.


svn path=/trunk/; revision=27902
2009-01-13 21:09:06 +00:00
Kevin Cozens 7a6ae0855e Corrected spelling error spotted by David Gowers.
2009-01-13  Kevin Cozens  <kcozens@cvs.gimp.org>

	* app/tools/gimpforegroundselecttool.c: Corrected spelling error
	spotted by David Gowers.

svn path=/trunk/; revision=27900
2009-01-13 16:12:17 +00:00
Martin Nordholts 0ce7c8aa81 Allow marching ant speeds as slow as one step per 10 seconds since for
* app/config/gimpdisplayconfig.c: Allow marching ant speeds as
slow as one step per 10 seconds since for some remote sessions the
minimum of 1 step per second is too fast.

svn path=/trunk/; revision=27899
2009-01-10 13:57:54 +00:00
Sven Neumann f171d10506 Bug 471344 – Circular brush strokes are not smooth and have corners
2009-01-10  Sven Neumann  <sven@gimp.org>

	Bug 471344 – Circular brush strokes are not smooth and have 
corners

	Bug 127785 – stroking with size linked to pressure sensitivity
	should scale the spacing

	* app/core/gimpcoords-interpolate.[ch]
	* app/display/gimpdisplayshell.[ch]
	* app/display/gimpdisplayshell-callbacks.[ch]
	* app/display/gimpdisplayshell-coords.[ch]: applied patch from
	Alexia Death that introduces a Catmul-Rom splines based event
	interpolation and also adapts the brush spacing to brush size.


svn path=/trunk/; revision=27898
2009-01-10 00:48:30 +00:00
Sven Neumann eeae281bc0 Bug 566498 – Noise distribution error in RGB Noise and HSV Noise
2009-01-06  Sven Neumann  <sven@gimp.org>

	Bug 566498 – Noise distribution error in RGB Noise and HSV Noise

	* plug-ins/common/noise-hsv.c
	* plug-ins/common/noise-rgb.c: applied patch from Marco Rossini.


svn path=/trunk/; revision=27896
2009-01-06 22:42:47 +00:00
Michael Natterer f81dedf355 connect to entry->container's signals with g_signal_connect_object() so
2009-01-04  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcombotagentry.c
	(gimp_combo_tag_entry_constructor): connect to entry->container's
	signals with g_signal_connect_object() so the entry can be
	destroyed without warning/crashing.


svn path=/trunk/; revision=27895
2009-01-04 19:45:07 +00:00
Martin Nordholts 632ab5ed5c Bug 562818 – First image opened in GIMP offset
* app/display/gimpdisplayshell.c (gimp_display_shell_shrink_wrap):
Only rely on disp_width/height for border calculation if they are
larger than 1. If not, special-case the calculation so we don't
get a severly mispositioned image.

svn path=/trunk/; revision=27892
2009-01-04 14:22:31 +00:00
Martin Nordholts 59c9c6d8e8 Rename border_x to border_width and border_y to border_height.
* app/display/gimpdisplayshell.c (gimp_display_shell_shrink_wrap):
Rename border_x to border_width and border_y to border_height.

svn path=/trunk/; revision=27891
2009-01-04 13:36:59 +00:00
Martin Nordholts c2b1a61628 Bug 562213 – Align Tool doesn't work properly if it is the active
tool at startup

* app/tools/gimpaligntool.c: Perform NULL-pointer dodging to avoid
crashing.

svn path=/trunk/; revision=27889
2009-01-04 12:03:57 +00:00
Martin Nordholts 7c96452329 Make instance members private.
* app/widgets/gimpdock.[ch]: Make instance members private.

(gimp_dock_get_context)
(gimp_dock_get_dialog_factory)
(gimp_dock_get_dockbooks)
(gimp_dock_get_main_vbox)
(gimp_dock_get_vbox)
(gimp_dock_get_id): New getters.

* app/actions/actions.c
* app/actions/dockable-actions.c
* app/actions/dockable-commands.c
* app/actions/windows-actions.c
* app/menus/windows-menu.c
* app/widgets/gimpdialogfactory.c
* app/widgets/gimpdock.c
* app/widgets/gimpdock.h
* app/widgets/gimpdockable.c
* app/widgets/gimpdockbook.c
* app/widgets/gimpdockseparator.c
* app/widgets/gimpimagedock.c
* app/widgets/gimpmenudock.c
* app/widgets/gimpsessioninfo-book.c
* app/widgets/gimpsessioninfo-dock.c
* app/widgets/gimpsessioninfo-dockable.c
* app/widgets/gimptoolbox-color-area.c
* app/widgets/gimptoolbox-dnd.c
* app/widgets/gimptoolbox-image-area.c
* app/widgets/gimptoolbox-indicator-area.c
* app/widgets/gimptoolbox.c: Use new getters.

svn path=/trunk/; revision=27881
2009-01-04 10:28:31 +00:00
Martin Nordholts dff24a3d98 Format static function prototypes.
* app/widgets/gimpcontainertreeview.c: Format static function
prototypes.

svn path=/trunk/; revision=27880
2009-01-03 22:27:30 +00:00
Sven Neumann 6ee74726a2 removed unused include.
2009-01-01  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c: removed unused include.


svn path=/trunk/; revision=27873
2009-01-01 17:00:39 +00:00
Sven Neumann f8b964bf2d Bug 565112 – code duplication in app/core/gimpimage-snap.c
2009-01-01  Sven Neumann  <sven@gimp.org>

	Bug 565112 – code duplication in app/core/gimpimage-snap.c

	* app/core/gimpimage-snap.c: based on a patch from Daniel 
Hornung,
	add the utility function gimp_image_snap_distance().


svn path=/trunk/; revision=27869
2009-01-01 14:34:21 +00:00
Sven Neumann b024d2314b Happy New Year!
2009-01-01  Sven Neumann  <sven@gimp.org>

	* app/about.h (GIMP_COPYRIGHT): Happy New Year!


svn path=/trunk/; revision=27868
2009-01-01 14:02:11 +00:00
Sven Neumann 45387a3900 Bug 565223 – Perspective transformation jagged edges / comb effect
2009-01-01  Sven Neumann  <sven@gimp.org>

	Bug 565223 – Perspective transformation jagged edges / comb effect

	* app/core/gimp-transform-region.c: reverted the code change, but
	not the cleanups, from commit r26786.


svn path=/trunk/; revision=27866
2009-01-01 13:56:37 +00:00
Sven Neumann d9d657ca19 added GimpTagEntryMode.
2008-12-31  Sven Neumann  <sven@gimp.org>

	* app/widgets/widgets-enums.[ch]: added GimpTagEntryMode.

	* app/widgets/gimptagentry.[ch]: removed it here. Also did some
	code cleanup, mostly formatting.

	* app/widgets/gimpcombotagentry.[ch]
	* app/widgets/gimptagpopup.[ch]: some code cleanup, mostly
	formatting.


svn path=/trunk/; revision=27861
2008-12-31 00:01:24 +00:00
Sven Neumann cf0aee5adb deleted trailing whitespace.
2008-12-30  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpitemtreeview.h: deleted trailing whitespace.


svn path=/trunk/; revision=27860
2008-12-30 23:25:07 +00:00
Sven Neumann 8ae65ad5a3 plug-ins/print/print.[ch] plug-ins/print/print-draw-page.c
2008-12-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: optionally draw crop-marks.


svn path=/trunk/; revision=27859
2008-12-30 21:36:04 +00:00