Commit graph

9057 commits

Author SHA1 Message Date
Michael Natterer 6bccd14760 Argh, this should have gone with my last checkin... 2003-07-22 14:29:06 +00:00
Michael Natterer 075195d16b added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients
2003-07-22  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpgradient.[ch]: added "gboolean reverse" to
	gimp_gradient_get_color_at() so all gradients can be used
	reversed.

	* app/core/gimpdrawable-blend.[ch] (gimp_drawable_blend)
	* app/core/gimppalette-import.[ch] (gimp_palette_import_from_gradient):
	added "gboolean reverse".

	* app/paint/paint-enums.[ch]: removed enum GimpGradientRepeatMode
	since it is identical to GimpRepeatMode, except for the now
	obsolete ONCE_BACKWARD value.

	* app/paint/gimppaintcore.[ch]: removed
	gimp_paint_core_get_color_from_gradient()...

	* app/paint/gimppaintoptions.[ch]: ...and added
	gimp_paint_options_get_gradient_color(), which is much more
	general. Added a "reverse" property to GimpGradientOptions and
	changed the type of the "repeat" property to GimpRepeatMode.

	* app/paint/gimppaintbrush.c: use
	gimp_paint_options_get_gradient_color().

	* app/tools/gimpblendoptions.[ch]: removed the "repeat" property
	since it is in the parent class now.

	* app/gui/gradient-select.c
	* app/gui/palette-import-dialog.c
	* app/widgets/gimpgradienteditor.c
	* app/tools/gimpblendtool.c
	* tools/pdbgen/pdb/gradients.pdb
	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.

	* app/tools/gimppaintoptions-gui.c: added a "Reverse" toggle right
	of the gradient preview.

	* app/widgets/gimppreviewrenderergradient.[ch]: added "gboolean
	reverse" member and gimp_preview_renderer_gradient_set_reverse()
	API.

	* tools/pdbgen/pdb/paint_tools.pdb: fixed the paintbrush invoker
	to set GimpPaintOption's "use-fade" and "use-gradient" properties
	correctly.

	* app/pdb/gradients_cmds.c
	* app/pdb/misc_tools_cmds.c
	* app/pdb/paint_tools_cmds.c
	* libgimp/gimpenums.h
	* libgimp/gimpmisctools_pdb.[ch]
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated.

	* libgimp/gimpcompat.h
	* plug-ins/script-fu/siod-wrapper.c: removed GimpGradientPaintMode
	here too since it was only exported accidentially (it's not used
	by any external API).

	* plug-ins/script-fu/scripts/3dTruchet.scm
	* plug-ins/script-fu/scripts/alien-glow-arrow.scm
	* plug-ins/script-fu/scripts/alien-glow-bar.scm
	* plug-ins/script-fu/scripts/alien-glow-bullet.scm
	* plug-ins/script-fu/scripts/alien-glow-button.scm
	* plug-ins/script-fu/scripts/alien-glow-logo.scm
	* plug-ins/script-fu/scripts/basic1-logo.scm
	* plug-ins/script-fu/scripts/basic2-logo.scm
	* plug-ins/script-fu/scripts/beveled-button.scm
	* plug-ins/script-fu/scripts/blended-logo.scm
	* plug-ins/script-fu/scripts/burn-in-anim.scm
	* plug-ins/script-fu/scripts/coffee.scm
	* plug-ins/script-fu/scripts/comic-logo.scm
	* plug-ins/script-fu/scripts/coolmetal-logo.scm
	* plug-ins/script-fu/scripts/glossy.scm
	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm
	* plug-ins/script-fu/scripts/gradient-example.scm
	* plug-ins/script-fu/scripts/pupi-button.scm
	* plug-ins/script-fu/scripts/rendermap.scm
	* plug-ins/script-fu/scripts/sphere.scm
	* plug-ins/script-fu/scripts/starscape-logo.scm
	* plug-ins/script-fu/scripts/test-sphere.scm
	* plug-ins/script-fu/scripts/textured-logo.scm
	* plug-ins/script-fu/scripts/title-header.scm
	* plug-ins/script-fu/scripts/weave.scm: pass "reverse" to
	gimp_blend(). Pass FALSE in most cases and added script
	parameters were it makes sense.
2003-07-22 14:24:11 +00:00
Jakub Steiner a1d33d15c4 special Gimpcon splash
2003-07-22  Jakub Steiner <jimmac@ximian.com>

* data/images/gimp_splash.png: special Gimpcon splash
2003-07-22 14:09:24 +00:00
Sven Neumann afc9cce13e check for freetype-config and set FREETYPE_LIBS.
2003-07-22  Sven Neumann  <sven@gimp.org>

	* configure.in: check for freetype-config and set FREETYPE_LIBS.

	* app/Makefile.am: link explicitely against freetype.
2003-07-22 13:44:07 +00:00
Sven Neumann e1bdbd9fa3 gimp_composite_dispatch() doesn't have a return value, made it a void
2003-07-22  Sven Neumann  <sven@gimp.org>

	* app/composite/gimp-composite.[ch]: gimp_composite_dispatch()
	doesn't have a return value, made it a void function.
2003-07-22 09:04:10 +00:00
Miloslav Trmac e8cba85137 Update Czech translation 2003-07-22 01:13:29 +00:00
Helvetix Victorinox b31ae7332a big code cleanup.
* app/composite/make-gimp-composite-dispatch.py: big code cleanup.

* app/composite/Makefile.am: removed references to $(builddir)

* app/composite/test-composite.c: cleanup, preparation for transition to
automatically generated regression testing code.

* app/composite/gimp-composite.c: Clean up of typedef usage

* app/composite/gimp-composite-regression.[ch]: added foundation
for regression testing.
2003-07-21 23:49:48 +00:00
Sven Neumann 7cfdc0d01f use a simpler URL for the camp.
2003-07-21  Sven Neumann  <sven@gimp.org>

	* data/images/gimp_splash.png: use a simpler URL for the camp.
2003-07-21 17:03:45 +00:00
Sven Neumann 7c32d439fb fix for Solaris /bin/sh (bug #118002).
2003-07-21  Sven Neumann  <sven@gimp.org>

	* autogen.sh: fix for Solaris /bin/sh (bug #118002).

	* app/paint-funcs/paint-funcs-generic.h
	* app/paint-funcs/paint-funcs.[ch]: the Forte compiler doesn't
	like the use of global variables in inline functions. Applied a
	patch from Damien Carbery that fixes this (bug #118002).
2003-07-21 16:47:52 +00:00
Sven Neumann 27b106f377 part of the fix for #97777 2003-07-21 01:14:19 +00:00
Sven Neumann 75306ec3af app/core/gimpdrawable-blend.[ch] app/tools/gimpblendoptions.[ch]
2003-07-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-blend.[ch]
	* app/tools/gimpblendoptions.[ch]
	* app/tools/gimpblendtool.c
	* tools/pdbgen/pdb/misc_tools.pdb
	* plug-ins/script-fu/scripts/: applied a slightly modified patch
	from Alastair M. Robinson that adds dithering to the blend tool
	(bug #97777).

	* app/pdb/misc_tools_cmds.c
	* libgimp/gimpmisctools_pdb.[ch]: regenerated.
2003-07-21 01:13:35 +00:00
Sven Neumann 5de4384946 more Makefile fixes 2003-07-21 00:45:28 +00:00
Tor Lillqvist 6eb1b80100 Sigh, one more addition. 2003-07-21 00:20:04 +00:00
Sven Neumann 0657dc4a5c more build fixes, include order 2003-07-21 00:14:37 +00:00
Tor Lillqvist 368d4563ee Updates.
2003-07-20  Tor Lillqvist  <tml@iki.fi>

	* libgimpcolor/gimpcolor.def: Updates.
2003-07-21 00:10:25 +00:00
Sven Neumann 1202abd3f2 added libgimpmath.
2003-07-21  Sven Neumann  <sven@gimp.org>

	* app/config/Makefile.am (gimpconfig_libs): added libgimpmath.
2003-07-21 00:04:22 +00:00
Sven Neumann cd3e719fcd more Makefile fixes 2003-07-20 23:57:07 +00:00
Sven Neumann 53cef3aa9e fixed typo
2003-07-21  Sven Neumann  <sven@gimp.org>

	* app/composite/Makefile.am (libappcomposite_a_sources): fixed typo
2003-07-20 23:42:53 +00:00
Sven Neumann 9d9f95be40 fixed a typo.
2003-07-21  Sven Neumann  <sven@gimp.org>

	* libgimp/Makefile.am (libgimp_1_3_la_SOURCES): fixed a typo.
2003-07-20 23:28:08 +00:00
Tor Lillqvist eeb4afff73 libgimp/gimp.def Updates.
2003-07-20  Tor Lillqvist  <tml@iki.fi>

	* libgimp/gimp.def
	* libgimp/gimpui.def: Updates.
2003-07-20 23:10:53 +00:00
Sven Neumann f5813eb088 removed an unused function.
2003-07-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdevicestatus.c: removed an unused function.
2003-07-20 22:50:34 +00:00
Tor Lillqvist c714237c6d Updates.
2003-07-20  Tor Lillqvist  <tml@iki.fi>

	* libgimp/gimp.def: Updates.
2003-07-20 22:39:01 +00:00
Tor Lillqvist ebea567bdf libgimpcolor/gimpcolor.def Updates.
2003-07-20  Tor Lillqvist  <tml@iki.fi>

	* libgimpcolor/gimpcolor.def
	* libgimpmath/gimpmath.def: Updates.

	* libgimp/gimp.c (gimp_config): [Win32] Use gimp_tile_width() and
	_height() instead of now nonexistent _gimp_tile_width and _height
	variables.
2003-07-20 22:25:55 +00:00
Sven Neumann b0550de143 more work on the framework.
2003-07-20  Sven Neumann  <sven@gimp.org>

	* app/text/gimptext-vectors.c: more work on the framework.
2003-07-20 21:58:27 +00:00
Tor Lillqvist a6d55ba754 New file, from stable branch. (Haven't checked yet what changes might be
2003-07-20  Tor Lillqvist  <tml@iki.fi>

	* gimptool-win32.c.in: New file, from stable branch. (Haven't
	checked yet what changes might be needed to it here in HEAD.)
2003-07-20 21:52:37 +00:00
Sven Neumann ce54744b8a Generalized text rendering and added a framework for creating GimpVectors
2003-07-20  Sven Neumann  <sven@gimp.org>

	Generalized text rendering and added a framework for creating
	GimpVectors objects with text outlines.

	* app/text/Makefile.am
	* app/text/gimptext-bitmap.[ch]: new files with bitmap render
	function.

	* app/text/gimptext-vectors.[ch]: new files for rendering to
	vectors.

	* app/text/gimptextlayout-private.h: removed ...
	* app/text/gimptext-private.h: ... and readded with this name.

	* app/text/gimptextlayout-render.[ch]: reduced to the generic parts
	of text rendering.

	* app/text/gimptextlayer.c
	* app/text/gimptextlayout.c: changed accordingly.
2003-07-20 21:23:01 +00:00
Sven Neumann 56b05f9546 fixed confusion of GimpImageType and GimpImageBaseType enums that broke
2003-07-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd_save.c: fixed confusion of GimpImageType and
	GimpImageBaseType enums that broke the plug-in for non-RGB images.
2003-07-20 20:46:05 +00:00
Sven Neumann 1ea55851c3 changed the gettext domain prefix to gimp20.
2003-07-20  Sven Neumann  <sven@gimp.org>

	* configure.in: changed the gettext domain prefix to gimp20.

	* m4macros/Makefile.am
	* m4macros/gimp-1.4.m4: removed this file ...
	* m4macros/gimp-2.0.m4: ... and readded it with a new name.
	Changed the macro to AM_PATH_GIMP_2_0().

	* configure.in: added --without-aa option as a way to work around
	broken aalib installations.

	* INSTALL: document --without-aa and --without-mng.
2003-07-20 12:40:30 +00:00
Sven Neumann 8e6328c773 regenerated.
2003-07-20  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/tmpl/gimpcolornotebook.sgml: regenerated.
2003-07-20 11:43:11 +00:00
Sven Neumann 8be50cd148 applied patch from Alastair M. Robinson that fixes the name of the default
2003-07-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/rendermap.scm: applied patch from
	Alastair M. Robinson that fixes the name of the default gradient
	(bug #117851).
2003-07-20 10:25:20 +00:00
Michael Natterer 5acf3f0cd3 added style properties "tab_border" and "tab_icon_size" just as they exist
2003-07-19  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolornotebook.c: added style properties
	"tab_border" and "tab_icon_size" just as they exist for
	GimpDockbook. Factored page creation out to the new
	gimp_color_notebook_add_page() utility function.  Added fancy menu
	items for the popup menu and translate them.

	* etc/gtkrc_user
	* themes/Default/gtkrc: use the same tab style for GimpDockbooks
	and GimpColorNotebooks.
2003-07-19 11:30:10 +00:00
Dave Neary cfbde0f301 Fixed a mistake in the code which does a pattern clone. Closes bug
2003-07-19  Dave Neary  <bolsh@gimp.org>

	* app/paint/gimpclone.c: Fixed a mistake in the code which does
	a pattern clone. Closes bug #117433.

	* app/widgets/gimpbrushfactoryview.c: Added a tooltip for the
	Spacing slider.
2003-07-19 10:51:18 +00:00
Danilo Šegan 7b56d5efd7 Updated Serbian translation by Serbian team (Prevod.org).
2003-07-19  Danilo Šegan  <dsegan@gmx.net>

	* sr.po, sr@Latn.po: Updated Serbian translation by Serbian team
	(Prevod.org).
2003-07-19 02:28:51 +00:00
Sven Neumann 30c946afb1 save some space by showing the stock_id instead of the colorselector's
2003-07-19  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolornotebook.c: save some space by showing
	the stock_id instead of the colorselector's name.

	* libgimpwidgets/gimpcolorselect.c
	* modules/colorsel_cmyk.c
	* modules/colorsel_triangle.c
	* modules/colorsel_water.c: removed now unused mnemonics.

	* app/widgets/gimpcoloreditor.c: no need to strip mnemonics from
	the name here any longer.
2003-07-19 01:43:51 +00:00
Miloslav Trmac 6df61084be Update Czech translation 2003-07-18 23:03:24 +00:00
Sven Neumann 3131923268 show CMYK color values.
2003-07-18  Sven Neumann  <sven@gimp.org>

	* app/gui/info-window.c: show CMYK color values.

	* app/tools/gimpcolorpickertool.c: reduced code duplication.
2003-07-18 22:00:36 +00:00
Michael Natterer 73af860ff4 made generated output compile again and cleaned it up a bit.
2003-07-18  Michael Natterer  <mitch@gimp.org>

	* app/composite/make-gimp-composite-dispatch.py: made generated
	output compile again and cleaned it up a bit.

	* app/composite/gimp-composite-dispatch.c: regenerated.

	* app/paint-funcs/paint-funcs.c (combine_sub_region): don't use
	tabs please.
2003-07-18 10:29:56 +00:00
Helvetix Victorinox 9e3bd94760 app/composite/gimp-composite.[ch],
* app/composite/gimp-composite.[ch],
* app/composite/make-gimp-composite-dispatch.py
stubbed out the 32bit-per-channel pixel formats.

* app/composite/gimp-composite-sse.[ch],
* app/composite/Makefile.am
Broke-out and added the SSE versions of the MMX code.

* app/composite/gimp-composite.[ch],
* app/paint-funcs/paint-funcs.c,
* app/composite/make-gimp-composite-dispatch.py
Use of the new gimp_composite code is now turned on via the
environment variable GIMP_COMPOSITE with a non-zero value.  For
example:
% GIMP_COMPOSITE=1 gimp-1.3
2003-07-18 07:36:55 +00:00
Michael Natterer bc77f1e3ff app/config/gimprc-blurbs.h added separate properties for the fullscreen
2003-07-18  Michael Natterer  <mitch@gimp.org>

	* app/config/gimprc-blurbs.h
	* app/config/gimpdisplayconfig.[ch]: added separate properties for
	the fullscreen appearance of the display (menubar, rulers,
	scrollbars, statusbar and padding). Default to everything
	invisible and black padding.

	* app/display/gimpdisplayshell.[ch]: renamed struct
	GimpDisplayShellVisibility to GimpDisplayShellAppearance and added
	the canvas padding stuff.

	* app/display/gimpdisplayshell-appearance.[ch]: made
	gimp_display_shell_set_padding() fullscreen-aware. Added
	gimp_display_shell_get_padding().

	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-handlers.c
	* app/gui/image-menu.c: changed addordingly.

	* app/gui/preferences-dialog.c: added the new options and moved
	the display appearance stuff to its own page. Minor cleanups.
2003-07-17 22:30:13 +00:00
Sven Neumann 7c4d375aa9 app/vectors/Makefile.am added a simple GimpAnchor API.
2003-07-17  Sven Neumann  <sven@gimp.org>

	* app/vectors/Makefile.am
	* app/vectors/gimpanchor.[ch]: added a simple GimpAnchor API.

	* app/vectors/gimpbezierstroke.c
	* app/vectors/gimpstroke.c: use the new functions.
2003-07-17 18:06:32 +00:00
Jakub Steiner 517cd3651e added mnemonics for plugins
2003-07-17  Jakub Steiner <jimmac@ximian.com>

* plug-ins/common/*.c: added mnemonics for plugins
2003-07-17 15:47:18 +00:00
Michael Natterer 486aed8e0d added "gboolean allow_percent" to gimp_param_spec_unit() and to the
2003-07-17  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-params.[ch]: added "gboolean allow_percent"
	to gimp_param_spec_unit() and to the GIMP_CONFIG_INSTALL_PROP_UNIT()
	macro. Changed value validation accordingly.

	* app/config/gimpconfig-types.c (string_to_unit): parse "percent"
	correctly.

	* app/widgets/gimppropwidgets.c (gimp_prop_unit_menu_new): show
	the "Percent" menu entry if the param_spec allows percent.

	* app/config/gimpcoreconfig.c
	* app/core/gimpgrid.c
	* app/core/gimptemplate.c
	* app/text/gimptext.c: pass FALSE to disallow percent.

	* app/paint/gimppaintoptions.c
	* app/tools/gimpselectionoptions.c: pass TRUE. Brings back the
	percent feature for fade_length, gradient_length and fixed_size
	rect/ellipse select.

	* app/tools/gimpbucketfilloptions.c
	* app/tools/gimpmagnifyoptions.c
	* app/tools/gimpselectionoptions.c
	* app/tools/gimptransformoptions.c: don't call the the reset()
	functions from the GUI constructors (and reset the options just
	deserialized from disk). Instead, added set_defaults() functions
	which do everything the old reset() functions did (except
	upchaining) and call set_defaults() from reset() and from the GUI
	constructors.
2003-07-17 15:22:21 +00:00
Michael Natterer 03bc1fd429 disconnect the GimpDeviceInfo::changed() signal handlers when the dialog
2003-07-17  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdevicestatus.c (gimp_device_status_init):
	disconnect the GimpDeviceInfo::changed() signal handlers when
	the dialog goes away. Fixes bug #117609.
2003-07-17 11:30:41 +00:00
Sven Neumann f6d87e7f1a updated 2003-07-16 16:24:14 +00:00
Michael Natterer db2b23f1aa invert the matrix for direction == GIMP_TRANSFORM_BACKWARD. Fixes
2003-07-16  Michael Natterer  <mitch@gimp.org>

	* app/vectors/gimpvectors.c (gimp_vectors_transform): invert the
	matrix for direction == GIMP_TRANSFORM_BACKWARD. Fixes corrective
	transformation of paths.
2003-07-16 16:21:28 +00:00
Michael Natterer 30e041cd79 add a small EPSILON to the brush coordinates before rounding them (fixes
2003-07-16  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppainttool.c (gimp_paint_tool_draw): add a small
	EPSILON to the brush coordinates before rounding them (fixes
	off-by-one floating point rounding fnord for "hard edge" painting
	where e.g. (5.0 - (3.0 / 2.0)) was rounded to 3.0 instead of 4.0).

	* app/tools/gimpdrawtool.c (gimp_draw_tool_draw_boundary): use
	RINT() instead of floor() to round the transformed boundary to
	GdkSegments.
2003-07-16 16:19:16 +00:00
Michael Natterer 30934d2395 implemented transforming of paths. Cleaned up initialize() and
2003-07-16  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptransformtool.[ch]: implemented transforming of
	paths. Cleaned up initialize() and button_press() to activate the
	tool correctly. Use the transform tool's CREATING state *only*
	before the first mouse click (when there is no grid displayed).
	Preview the active path while transforming. Cache the transform
	direction in the GimpTransformTool struct so we can switch it
	while previewing the path. Lots of path transform related changes
	and cleanup.
2003-07-16 14:08:24 +00:00
Sven Neumann 10eee1e7bc don't draw the grid when the bounding box becomes concave.
2003-07-16  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.c (gimp_transform_tool_draw): don't
	draw the grid when the bounding box becomes concave.
2003-07-16 13:53:08 +00:00
Jakub Steiner b61a70c53d add PAL and NTSC templates
2003-07-15  Jakub Steiner <jimmac@ximian.com>

* etc/templaterc: add PAL and NTSC templates
2003-07-16 12:14:45 +00:00
Michael Natterer 8224476afb added utility function gimp_paint_options_get_fade() which calculates an
2003-07-16  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimppaintoptions.[ch]: added utility function
	gimp_paint_options_get_fade() which calculates an opacity
	value from paint_core->pixel_dist.

	* app/paint/gimppaintbrush.c: removed the same code here and use
	gimp_paint_options_get_fade().

	* app/paint/gimpclone.c
	* app/paint/gimpconvolve.c
	* app/paint/gimpdodgeburn.c
	* app/paint/gimperaser.c
	* app/paint/gimpsmudge.c: enabled fade for all paint tools, along
	with a general opacity cleanup:

	Use the opacity from gimp_context_get_opacity() *only* for the
	image_opacity. In particular, *never* use it as initial value for
	calculating the brush_opacity. Instead, start calculating the
	brush_opacity from gimp_paint_options_get_fade() and return early
	if it returns 0.0, if not, multiply tool specific opacity sources
	like the current pressure.

	(This changes the effect of the paint tools for particular opacity
	values, but makes the impact of opacity on the final rendering
	linear and more intuitive)

	* app/tools/gimppaintoptions-gui.c: enabled the "Fade" frame for
	the tools above.

	* app/paint/gimppaintcore.c: purely cosmetic cleanup.
2003-07-16 11:25:37 +00:00