Commit Graph

147 Commits

Author SHA1 Message Date
Michael Natterer fe19ad9706 Bug 683694 - Spelling errors
Reworded all places that used to say "allows to".
2012-11-11 15:50:25 +01:00
Michael Natterer 486e76bdab libgimp*: use GIMP_API_VERSION in Makefile.am instead of hardcoding 2.0 2012-05-04 15:38:45 +02:00
Michael Muré b694141eb7 fix compilation of a test 2012-05-03 20:36:28 +09:00
Michael Natterer b3e785e5e5 libgimpcolor: return the right format from gimp_cairo_surface_get_format() 2012-05-03 04:19:41 +02:00
Michael Natterer 00b3a9c745 libgimpcolor: add Cairo <-> GEGL utility functions from app/ 2012-05-03 04:07:16 +02:00
Michael Natterer d766ec6ae9 libgimpcolor: rename gimpcairocolor.[ch] to gimpcairo.[ch] 2012-05-03 03:56:10 +02:00
Michael Natterer 3ad73b3658 libgimpcolor: add GdkPixbuf <-> GeglBuffer utility functions
and update tons of includes in libgimp and app.
2012-05-03 03:37:20 +02:00
Michael Natterer 0d481702c7 libgimp*: add GIMP_DEPRECATED macros using G_DEPRECATED
and start using them instead of GIMP_DISABLE_DEPRECATED where possible.
2012-05-03 00:54:21 +02:00
Martin Nordholts 563d3c10d6 Make 'make check' compile 2012-05-02 21:53:38 +02:00
Michael Natterer 3e119c5af7 libgimpcolor: add gimp_rgb[a]_set,get_pixel()
which converts from/to any pixel format using Babl. Added tons of
includes and CFLAGS now that libgimpcolor publically uses Babl.
2012-05-02 17:50:43 +02:00
Michael Natterer 056e09a6cb Remove the makefile.msc build system, it is unmaintained since 2008 2011-12-16 15:53:56 +01:00
Mukund Sivaraman 5b7cd667f2 libgimpcolor: Add an assert at start of gimp_render_sub_pixel()
This is to replace the old checks which were removed in
commit ff6727ae66.
2011-10-13 10:22:39 +05:30
Mukund Sivaraman ff6727ae66 libgimpcolor: Remove function pointer checks as they're checked by caller
Keeping the checks raises red flags in static analysis as render_func
can then be NULL.
2011-10-12 20:47:23 +05:30
Mukund Sivaraman 4a686eba0f libgimpcolor: Delete unnecessary h initializer
The -Wall warning is taken care of by
commit 890b9abf94.
2011-10-04 14:40:24 +05:30
Mukund Sivaraman 890b9abf94 libgimpcolor: Remove conditions which are always true 2011-10-01 13:15:18 +05:30
Michael Natterer 2b1807054f libgimp*: update .def files after cairo functions moved between libs 2011-05-01 11:24:26 +02:00
Mukund Sivaraman c579ec9754 libgimpcolor: Include cairo.h in test program 2011-04-29 15:00:28 +05:30
Michael Natterer cc47b2a600 libgimpwidgets/color: move the cairo color utility functions to libgimpcolor
Add CAIRO_CFLAGS to a lot of Makefiles to make this possible, and
because they pull in cairo via the libgimp headers.
2011-04-28 15:50:39 +02:00
Michael Natterer 844df2b4df libgimp*: add guards that #error out if individual files are included
This only helps to maintain proper includes in app/ and shouldn't
affect plug-ins at all, because these are supposed to only include the
main headers from libgimp/ since the beginning of time.

The gimpfootypes.h files do not have these guards, so we can continue
to maintain app/'s include policy that is very likely to error out if
wrong things are included.
2011-04-28 14:30:41 +02:00
Martin Nordholts 0dc4b5de72 Fix a bunch of warnings 2010-08-31 22:46:36 +02:00
Michael Natterer 7b335188b6 libgimpcolor: fix most gtk-doc warnings 2010-06-29 20:08:39 +02:00
Michael Natterer 1649241483 libgimpcolor: move docs from template files to inline comments
Only added section headers for now, there was nothing else in the
template files.
2010-06-29 19:46:37 +02:00
Martin Nordholts 4d7a6b10d1 Added .gitignore files generated with git svn create-ignore.
svn path=/trunk/; revision=27972
2009-01-31 11:37:44 +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
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 bc5079d296 updated link to the color keywords in the SVG spec.
2008-12-10  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb-parse.c: updated link to the color 
keywords
	in the SVG spec.


svn path=/trunk/; revision=27772
2008-12-10 12:16:46 +00:00
Martin Nordholts 3791a757f1 Added 'Since: GIMP 2.8'.
* libgimpcolor/gimphsl.c (gimp_hsl_set): Added 'Since: GIMP 2.8'.

svn path=/trunk/; revision=27513
2008-11-01 12:21:03 +00:00
Sven Neumann f0938de1bf libgimp/gimp.def libgimpbase/gimpbase.def updated with new symbols.
2008-10-29  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.def
	* libgimpbase/gimpbase.def
	* libgimpcolor/gimpcolor.def: updated with new symbols.


svn path=/trunk/; revision=27470
2008-10-29 22:31:25 +00:00
Martin Nordholts 5aa338c668 Implemented the layer modes Hue, Saturation, Color and Value.
* 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
2008-10-29 21:25:35 +00:00
Sven Neumann e2bac9e496 improved procedure blurb and help.
2008-05-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gbr.c: improved procedure blurb and help.

	* libgimpcolor/gimpcolorspace.c: inline gimp_hsl_value() and
	gimp_hsl_value_int().

svn path=/trunk/; revision=25576
2008-05-06 15:49:41 +00:00
Sven Neumann b28931a384 removed unused import.
2007-12-07  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/test-color-parser.c: removed unused import.


svn path=/trunk/; revision=24289
2007-12-07 18:58:07 +00:00
Sven Neumann 15d25114ca return with a warning if called with NULL render_func or put_pixel_func.
2007-10-29  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimpadaptivesupersample.c
	(gimp_adaptive_supersample_area): return with a warning if 
called
	with NULL render_func or put_pixel_func.


svn path=/trunk/; revision=23985
2007-10-29 20:03:25 +00:00
Sven Neumann 48741d2ceb avoid the ambiguity of returning different values for the same color and
2007-09-28  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimpcolorspace.c (gimp_hsv_to_rgb_int): avoid the
	ambiguity of returning different values for the same color and
	limit the Hue output range to [0..359].

svn path=/trunk/; revision=23681
2007-09-28 10:46:35 +00:00
Hans Breuer 024ef60a49 updated msvc build
2007-08-05  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated msvc build


svn path=/trunk/; revision=23118
2007-08-05 15:16:02 +00:00
Sven Neumann da2a79fe42 corrected documentation.
2007-08-01  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb-parse.c: corrected documentation.

svn path=/trunk/; revision=23095
2007-08-01 12:03:13 +00:00
Sven Neumann de7d46d6e2 plugged tiny memory leak.
2007-07-17  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginprocedure.c
	(gimp_plug_in_procedure_set_file_proc): plugged tiny memory 
leak.

	* libgimpcolor/gimprgb.c (gimp_rgb_min) (gimp_rgb_max): 
formatting.


svn path=/trunk/; revision=22940
2007-07-17 07:22:20 +00:00
Sven Neumann 09578ea070 removed extra check for gthread and fold it into the GLIB and GTK checks.
2007-06-25  Sven Neumann  <sven@gimp.org>

	* configure.in: removed extra check for gthread and fold it into
	the GLIB and GTK checks.

	* */Makefile.am: changed accordingly.

	* app/main.c (main): always call g_thread_init().

svn path=/trunk/; revision=22832
2007-06-25 12:41:59 +00:00
Sven Neumann 6c73387066 libgimpcolor/Makefile.am libgimpcolor/gimpcolor.h
2007-06-01  Sven Neumann  <sven@gimp.org>

        * libgimpcolor/Makefile.am
        * libgimpcolor/gimpcolor.h
        * libgimpcolor/gimpcolortypes.h
        * libgimpcolor/gimpcolormanaged.[ch]: added an interface that 
will
        be used to implement the missing bits of color management.

        * libgimpcolor/gimpcolor.def: updated.


svn path=/trunk/; revision=22691
2007-06-01 11:19:37 +00:00
Michael Natterer f8240964af fully initialize all bytes of "int1" and "int2" so we don't produce wrong
2007-05-26  Michael Natterer  <mitch@gimp.org>

	* libgimpcolor/gimprgb.c (gimp_param_rgb_values_cmp): fully
	initialize all bytes of "int1" and "int2" so we don't produce
	wrong color compare results (and shut up valgrind).
	Fixes bug #353696.


svn path=/trunk/; revision=22627
2007-05-26 15:41:53 +00:00
Sven Neumann 930d6149da removed all .cvsignore files from SVN
svn path=/trunk/; revision=21612
2006-12-30 14:31:03 +00:00
Sven Neumann 64e893e62f there's no need to make GTypeInfo and GInterfaceInfo structs static.
2006-10-18  Sven Neumann  <sven@gimp.org>

        * [lots of files]: there's no need to make GTypeInfo and
        GInterfaceInfo structs static.
2006-10-18 13:17:50 +00:00
Hans Breuer ad6829dde0 include "gimpcontext.h" for gimp_context_set_gradient()
2006-09-03  Hans Breuer  <hans@breuer.org>

	* app/core/gimp-gradients.c : include "gimpcontext.h" for
	gimp_context_set_gradient()

	* **/makefile.msc app/gimpcore.def : updated
2006-09-03 12:39:24 +00:00
Michael Schumacher 4163f6df57 libgimpcolor/gimpcolor.def added some missing entries
2006-08-16  Michael Schumacher  <schumaml@cvs.gnome.org>

	* libgimpcolor/gimpcolor.def
	* libgimpwidgets/gimpwidgets.def: added some missing entries
2006-08-16 23:59:00 +00:00
Sven Neumann 5d45aed020 minor update for the API reference 2006-08-09 15:44:40 +00:00
Manish Singh c4c0e2cd1f libgimpcolor/gimpcmyk.[ch] libgimpcolor/gimphsl.[ch] create boxed types
2006-07-19  Manish Singh  <yosh@gimp.org>

        * libgimpcolor/gimpcmyk.[ch]
        * libgimpcolor/gimphsl.[ch]
        * libgimpcolor/gimphsv.[ch]: create boxed types for GimpCMYK,
        GimpHSL, and GimpHSV.

        * libgimpcolor/gimpcolor.h
        * libgimpcolor/Makefile.am: include new gimphsl.[ch] files.
2006-07-19 21:23:10 +00:00
Sven Neumann c5a3ee366a stop distributing Wilber.svg.
2006-06-21  Sven Neumann  <sven@gimp.org>

	* docs/Makefile.am (EXTRA_DIST): stop distributing Wilber.svg.

	* libgimpcolor/gimpcolorspace.h: formatting.
2006-06-21 15:26:45 +00:00
Sven Neumann b163dd9579 added a const qualifier.
2006-06-06  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimpcolorspace.[ch] (gimp_rgb_to_hsv4): added a
	const qualifier.
2006-06-06 08:35:55 +00:00
Sven Neumann 0b9a9e4e88 hide the GimpParamSpecRGB struct again. Added getter for the has_alpha
2006-04-27  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb.[ch]: hide the GimpParamSpecRGB struct
	again.  Added getter for the has_alpha field.

	* libgimpcolor/gimpcolor.def: updated.

	* app/config/gimpconfig-dump.c
	* libgimpconfig/gimpconfig-serialize.c: use
	gimp_param_spec_rgb_has_alpha() instead of accessing the
	GimpParamSpecRGB struct directly.
2006-04-27 16:01:16 +00:00
Sven Neumann e779cf0b0f added "has_alpha" to GimpParamSpecRGB. Made the GimpParamSpecRGB struct
2006-04-27  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb.[ch]: added "has_alpha" to GimpParamSpecRGB.
	Made the GimpParamSpecRGB struct public. When validating a color,
	only look at the alpha channel if has_alpha is set.

	* libgimpconfig/gimpconfig-params.h: added "has_alpha" to
	GIMP_CONFIG_INSTALL_PROP_RGB macro definition.

	* libgimpconfig/gimpconfig-serialize.c: serialize color values as
	"(rgb r g b)" if the param-spec indicates that the alpha channel
	is meaningless.

	* app/config/gimpconfig-dump.c: take "has_alpha" into account when
	documenting color properties.

	* app/core/gimpcontext.c
	* app/core/gimpgrid.c
	* app/display/gimpdisplayoptions.c
	* app/text/gimptext.c
	* app/widgets/gimpaction.c
	* app/widgets/gimpcolorbar.c
	* libgimpwidgets/gimpcolorarea.c
	* libgimpwidgets/gimpcolorbutton.c: specify whether color properties
	have an alpha channel.

	* tools/pdbgen/app.pl: handle "has_alpha" for color paramaters.

	* tools/pdbgen/pdb/channel.pdb
	* tools/pdbgen/pdb/context.pdb
	* tools/pdbgen/pdb/grid.pdb
	* tools/pdbgen/pdb/image.pdb: set the "has_alpha" flag where
	appropriate.

	* app/pdb/gimp-pdb-compat.c (gimp_pdb_compat_param_spec): set
	"has_alpha" to TRUE for GIMP_PDB_COLOR.

	* app/pdb/channel_cmds.c
	* app/pdb/context_cmds.c
	* app/pdb/gradient_cmds.c
	* app/pdb/grid_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/palette_cmds.c
	* app/pdb/palettes_cmds.c
	* app/pdb/selection_tools_cmds.c: regenerated.

	* app/config/gimpdisplayconfig.c (gimp_display_config_class_init):
	removed unused code.
2006-04-27 15:19:59 +00:00