Commit Graph

300 Commits

Author SHA1 Message Date
Michael Natterer 11969bd484 remove event boxes that were only there for the old tooltips.
2007-11-10  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppropwidgets.c: remove event boxes that were
	only there for the old tooltips.

	* modules/cdisplay_lcms.c: ditto. Also remove some code that was
	only needed because of the event box hack.


svn path=/trunk/; revision=24110
2007-11-10 14:47:45 +00:00
Michael Natterer b515881bdd applied patch from Sven Neumann and Marianne Gagnon which adds support for
2007-10-30  Michael Natterer  <mitch@gimp.org>

	* modules/cdisplay_lcms.c: applied patch from Sven Neumann and
	Marianne Gagnon which adds support for getting the system monitor
	profile on OS/X. Fixes bug #488170.


svn path=/trunk/; revision=23990
2007-10-30 15:14:41 +00:00
Sven Neumann 7a76eaee6d improved display of profiles.
2007-10-22  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c: improved display of profiles.

svn path=/trunk/; revision=23901
2007-10-22 09:21:21 +00:00
Sven Neumann 871d6653c3 introduced a utility function to retrieve the screen and monitor.
2007-10-18  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c (cdisplay_lcms_get_display_profile):
	introduced a utility function to retrieve the screen and 
monitor.


svn path=/trunk/; revision=23878
2007-10-18 17:10:36 +00:00
Sven Neumann 50871ba1c5 ellipsize the profile label. If possible, use the profile description as
2007-10-18  Sven Neumann  <sven@gimp.org>

	* modules/colorsel_cmyk_lcms.c: ellipsize the profile label. If
	possible, use the profile description as we do in other places.



svn path=/trunk/; revision=23877
2007-10-18 16:10:49 +00:00
Sven Neumann d4ccaa2241 corrected a mistake caused by a misinterpretation of the spec.
2007-10-05  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c (cdisplay_lcms_get_display_profile):
	corrected a mistake caused by a misinterpretation of the spec.


svn path=/trunk/; revision=23742
2007-10-05 21:17:07 +00:00
Sven Neumann 56b1d35610 removed leftover debugging output
svn path=/trunk/; revision=23740
2007-10-05 20:55:32 +00:00
Sven Neumann 4c4655e6b7 support the new revision of the ICC Profiles In X specification which
2007-10-05  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c (cdisplay_lcms_get_display_profile):
	support the new revision of the ICC Profiles In X specification
	which handles Xinerama setups.


svn path=/trunk/; revision=23738
2007-10-05 19:50:38 +00:00
Sven Neumann b4ff0d3bad always use the configured CMYK profile, regardless of the color management
2007-10-05  Sven Neumann  <sven@gimp.org>

	* modules/colorsel_cmyk_lcms.c: always use the configured CMYK
	profile, regardless of the color management mode.

svn path=/trunk/; revision=23731
2007-10-05 08:38:30 +00:00
Sven Neumann 169c7dbc46 added settings for marking out-of-gamut colors in the Print Simulation
2007-10-05  Sven Neumann  <sven@gimp.org>

        * libgimpconfig/gimpcolorconfig.[ch]: added settings for marking
        out-of-gamut colors in the Print Simulation (bug #476824).

        * app/dialogs/preferences-dialog.c: added a check-button for the
        out-of-gamut warning and tweaked the layout of the Color Management
        page to make the relationship of the settings more obvious.

        * modules/cdisplay_lcms.c: mark out-of-gamut colors.


svn path=/trunk/; revision=23729
2007-10-05 08:21:27 +00:00
Sven Neumann b4f812491f modules/cdisplay_lcms.c modules/cdisplay_proof.c
2007-10-04  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/colorsel_cmyk_lcms.c
	* plug-ins/common/lcms.c 
	* plug-ins/jpeg/jpeg-load.c: use cmsFLAGS_BLACKPOINTCOMPENSATION
	instead of the equivalent cmsFLAGS_WHITEBLACKCOMPENSATION.

svn path=/trunk/; revision=23724
2007-10-04 14:21:55 +00:00
Sven Neumann e599d3901a use the display rendering intent as set in the user's color management
2007-10-04  Sven Neumann  <sven@gimp.org>

	* modules/colorsel_cmyk_lcms.c: use the
	display rendering intent as set in the user's color management
	preferences. Use black point compensation if the rendering intent
	is relative colorimetric.


svn path=/trunk/; revision=23723
2007-10-04 07:41:57 +00:00
Sven Neumann df5ee5ea2e use black point compensation if the rendering intent is relative
2007-10-03  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c: use black point compensation if the
	rendering intent is relative colorimetric.


svn path=/trunk/; revision=23720
2007-10-03 13:50:14 +00:00
Sven Neumann f7887a99bc use a GimpColorProfileComboBox for profile selection.
2007-09-17  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_proof.c: use a GimpColorProfileComboBox for
	profile selection.

svn path=/trunk/; revision=23571
2007-09-17 13:37:47 +00:00
Hans Breuer aface5c12a updated msvc build include <io.h> for get_osfhandle() prototype
2007-08-26  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc : updated msvc build
	* app/main.c : include <io.h> for get_osfhandle()
	* plug-ins/jpeg/jpeg-settings.h : prototype
	jpeg_swap_original_settings


svn path=/trunk/; revision=23377
2007-08-26 18:59:34 +00:00
Sven Neumann c8e333acf5 or rather, only define it if windows.h has been included before
svn path=/trunk/; revision=23244
2007-08-13 20:36:36 +00:00
Sven Neumann cc171ddf19 always define LCMS_WIN_TYPES_ALREADY_DEFINED
svn path=/trunk/; revision=23243
2007-08-13 20:35:33 +00:00
Sven Neumann 70cba2b977 include glib.h before checking for G_OS_WIN32. Also #define STRICT for
2007-08-13  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c: include glib.h before checking for
	G_OS_WIN32. Also #define STRICT for strict type checks.


svn path=/trunk/; revision=23242
2007-08-13 20:22:57 +00:00
Sven Neumann 6d0997ba14 link with gdi32 on PLATFORM_WIN32.
2007-08-13  Sven Neumann  <sven@gimp.org>

	* modules/Makefile.am (libcdisplay_lcms_la_LIBADD): link with
	gdi32 on PLATFORM_WIN32.

	* modules/cdisplay_lcms.c: changed include order to fix the 
build
	on MingW (see bug #78265).


svn path=/trunk/; revision=23229
2007-08-13 06:49:25 +00:00
Sven Neumann 4572e1d3a5 applied patch from Yoshinori Yamakawa that adds code to get the monitor
2007-08-12  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c (cdisplay_lcms_get_display_profile):
	applied patch from Yoshinori Yamakawa that adds code to get the
	monitor profile from Win32.

	* app/dialogs/preferences-dialog.c: enabled the toggle for
	"display-profile-from-gdk" on all systems.


svn path=/trunk/; revision=23222
2007-08-11 23:31:51 +00:00
Sven Neumann 4ab3e92782 modules/cdisplay_lcms.c corrected memory handling. cmsOpenProfileFromMem()
2007-08-08  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c
	* plug-ins/common/lcms.c: corrected memory handling.
	cmsOpenProfileFromMem() actually copies the data.

	* libgimpwidgets/gimpcolordisplay.c
	* libgimpwidgets/gimpcolordisplaystack.c: disconnect in dispose().

svn path=/trunk/; revision=23148
2007-08-08 12:27:11 +00:00
Tor Lillqvist a4c7b092c2 Add libgimpcolor to cdisplay_libadd.
2007-08-07  Tor Lillqvist  <tml@novell.com>

	* modules/Makefile.am: Add libgimpcolor to cdisplay_libadd.


svn path=/trunk/; revision=23137
2007-08-07 14:42:08 +00:00
Sven Neumann 35425c7028 app/plug-in/Makefile.am new files defining the GimpPlugIn error domain.
2007-08-07  Sven Neumann  <sven@gimp.org>

	* app/plug-in/Makefile.am
	* app/plug-in/plug-in-error.[ch]: new files defining the
	GimpPlugIn error domain.

	* app/plug-in/plug-in-icc-profile.c (plug_in_icc_profile_apply_rgb):
	set an error code.

	* app/file/file-open.c (file_open_profile_apply_rgb): only do the
	profile conversion if color management is enabled. If the plug-in
	is missing, show a warning and disable color management.
	Fixes bug #434205.

	* modules/cdisplay_lcms.c (cdisplay_lcms_get_rgb_profile): check
	if we actually got a profile before checking its color space.

	* libgimpwidgets/gimpwidgetstypes.h: removed leftover typedef
	for GimpResolutionEntry.


svn path=/trunk/; revision=23130
2007-08-07 09:26:28 +00:00
Sven Neumann a737408eeb added GimpColorConfig and GimpColorManaged as construct-only properties.
2007-08-06  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolordisplay.[ch]: added GimpColorConfig 
and
	GimpColorManaged as construct-only properties.
	Deprecated gimp_color_display_new().

	* libgimpwidgets/gimpwidgets.def: updated for new symbols.

	* app/widgets/gimpcolordisplayeditor.c: use g_object_new() 
instead
	of gimp_color_display_new().

	* modules/cdisplay_lcms.c: use the image's embedded color 
profile
	for the display filter. Assume sRGB if no monitor profile is
	configured.

	* app/display/gimpdisplayshell.c: 
	* app/display/gimpdisplayshell-filter.[ch]: pass the display as
	color-managed object to the display filter.


svn path=/trunk/; revision=23127
2007-08-06 22:10:09 +00:00
Simon Budig 196dda778e make gimp-edit-paste-as-new not fail at an empty clipboard, but return -1
2007-05-05  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/edit.pdb: make gimp-edit-paste-as-new not fail
	at an empty clipboard, but return -1 as image id.

	* app/pdb/edit_cmds.c
	* libgimp/gimpedit_pdb.c: regenerated.

	* plug-ins/script-fu/scripts/paste-as-brush.scm
	* plug-ins/script-fu/scripts/paste-as-pattern.scm: Changed
	accordingly, fixes bug #357059.

	* modules/controller_linux_input.c: changed some axis names to
	make more sense.


svn path=/trunk/; revision=22429
2007-05-06 04:42:51 +00:00
Tor Lillqvist b4605065fb Define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS if necessary.
2007-02-22  Tor Lillqvist  <tml@novell.com>

	* modules/gimpinputdevicestore.c: Define
	GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS if necessary.


svn path=/trunk/; revision=21971
2007-02-21 23:16:27 +00:00
Tor Lillqvist 268fbd51a5 It's pointless to build libcontroller_midi.la on Windows, even if it
2007-02-21  Tor Lillqvist  <tml@novell.com>

	* modules/Makefile.am: It's pointless to build
	libcontroller_midi.la on Windows, even if it happens to compile
	and build. There are no MIDI "device files" on Windows. A totally
	specific MIDI API would have to be used.


svn path=/trunk/; revision=21968
2007-02-20 23:08:12 +00:00
Tor Lillqvist 052be623f8 Mention a patch needed to dinput.h.
svn path=/trunk/; revision=21965
2007-02-20 20:02:40 +00:00
Tor Lillqvist 2534e1258e Untabify.
svn path=/trunk/; revision=21964
2007-02-20 19:52:32 +00:00
Tor Lillqvist cbae73172c New file. Low level GimpController support for DirectInput controllers on
2007-02-20  Tor Lillqvist  <tml@novell.com>

	* modules/controller_dx_dinput.c: New file. Low level
	GimpController support for DirectInput controllers on Win32.

	* modules/gimpinputdevicestore.c: Add implementation for
	DirectInput devices.

	* modules/Makefile.am: Add libcontroller_dx_dinput.la with above
	source files.


svn path=/trunk/; revision=21962
2007-02-20 19:49:06 +00:00
Manish Singh bcd35aa008 gimp_input_device_store_type should be set to G_TYPE_NONE in the
2007-02-19  Manish Singh  <yosh@gimp.org>

        * modules/gimpinputdevicestore.c: gimp_input_device_store_type
        should be set to G_TYPE_NONE in the !HAVE_LIBHAL case.

        * modules/controller_linux_input.c: we can't use
        GIMP_TYPE_INPUT_DEVICE_STORE in the !HAVE_LIBHAL case.

svn path=/trunk/; revision=21954
2007-02-19 20:09:49 +00:00
Michael Natterer 9c1d2f0167 define gimp_input_device_store_type also for the !HAVE_LIBHAL case.
2007-02-19  Michael Natterer  <mitch@gimp.org>

	* modules/gimpinputdevicestore.c: define gimp_input_device_store_type
	also for the !HAVE_LIBHAL case.


svn path=/trunk/; revision=21953
2007-02-19 19:19:06 +00:00
Raphael Quinet 1505999f5a fix function prototype for when libhal is not available.
2007-02-13  Raphael Quinet  <raphael@gimp.org>

	* modules/gimpinputdevicestore.c (gimp_input_device_store_new):
	fix function prototype for when libhal is not available.

svn path=/trunk/; revision=21914
2007-02-13 17:23:58 +00:00
Sven Neumann 4db2ed0b82 modules/gimpinputdevicestore.[ch] improved error handling.
2007-02-13  Sven Neumann  <sven@gimp.org>

	* modules/gimpinputdevicestore.[ch]
	* modules/controller_linux_input.c: improved error handling.


svn path=/trunk/; revision=21911
2007-02-13 11:55:16 +00:00
Sven Neumann 345fe7b5bc keep devices sorted alphabetically.
2007-02-13  Sven Neumann  <sven@gimp.org>

	* modules/gimpinputdevicestore.c: keep devices sorted alphabetically.


svn path=/trunk/; revision=21910
2007-02-13 09:45:28 +00:00
Michael Natterer d6706ea9d2 made dynamically loadable using GTypeModule.
2007-02-13  Michael Natterer  <mitch@gimp.org>

	* modules/gimpinputdevicestore.[ch]: made dynamically loadable
	using GTypeModule.

	* modules/controller_linux_input.c (gimp_module_register):
	register the new dynamic type.


svn path=/trunk/; revision=21909
2007-02-13 08:24:39 +00:00
Sven Neumann 76a1869f01 corrected string (bug #407214).
2007-02-13  Sven Neumann  <sven@gimp.org>

	* modules/controller_linux_input.c (key_events): corrected 
string
	(bug #407214).


svn path=/trunk/; revision=21908
2007-02-13 08:10:46 +00:00
Sven Neumann 7ae5df3879 added signals "device-added" and "device-removed".
2007-02-13  Sven Neumann  <sven@gimp.org>

	* modules/gimpinputdevicestore.[ch]: added signals 
"device-added"
	and "device-removed".

	* modules/controller_linux_input.c: allow to hot-plug the
	configured input device.


svn path=/trunk/; revision=21906
2007-02-13 08:06:22 +00:00
Sven Neumann c1f3b2af61 fixed some issues with the new widget.
2007-02-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpstringcombobox.c: fixed some issues with the
	new widget.

	* modules/controller_linux_input.c: define a property for the
	device store and use the device file as provided by the store.

	* modules/gimpinputdevicestore.c: removed debug output.


svn path=/trunk/; revision=21902
2007-02-12 16:36:27 +00:00
Sven Neumann ace0321f83 libgimpwidgets/gimpstringcombobox.c (gimp_string_model_lookup) fixed wrong
2007-02-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpstringcombobox.c (gimp_string_model_lookup)
	* modules/gimpinputdevicestore.c (gimp_input_device_store_lookup):
	fixed wrong use of GValue.


svn path=/trunk/; revision=21901
2007-02-12 16:12:00 +00:00
Sven Neumann 0a203e30c4 libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgetstypes.h
2007-02-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpstringcombobox.[ch]: added GimpStringComboBox.

	* libgimpwidgets/gimppropwidgets.[ch]: added a prop widget
	constructor that uses the new widget.

	* libgimpwidgets/gimpwidgets.def: updated.

	* app/widgets/gimpcontrollereditor.c: use a GimpStringComboBox if
	the module specifies a tree model with string values.

	* modules/gimpinputdevicestore.c: minor cleanup.

	* modules/controller_linux_input.c: keep a pointer to the input
	device store and unref it in the finalizer.


svn path=/trunk/; revision=21900
2007-02-12 15:29:45 +00:00
Sven Neumann 3eeb93fee5 set translation domain for the registered enum type.
2007-02-12  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_colorblind.c: set translation domain for the
	registered enum type.


svn path=/trunk/; revision=21895
2007-02-12 07:25:24 +00:00
Sven Neumann 6b788ad186 lower minimum required version of libhal to 0.5.7.
2007-02-12  Sven Neumann  <sven@gimp.org>

        * configure.in: lower minimum required version of libhal to 
0.5.7.

        * modules/gimpinputdevicestore.c: don't list PC Speaker, even
        though the kernel claims that it would be an input device.


svn path=/trunk/; revision=21894
2007-02-12 07:17:39 +00:00
Sven Neumann a9b92ba22c don't limit the store to "input.mouse", list all input devices.
2007-02-11  Sven Neumann  <sven@gimp.org>

	* modules/gimpinputdevicestore.c: don't limit the store to
	"input.mouse", list all input devices.


svn path=/trunk/; revision=21892
2007-02-11 17:58:59 +00:00
Sven Neumann 899346d1bf check for libhal if Linux Input support is enabled.
2007-02-11  Sven Neumann  <sven@gimp.org>

	* configure.in: check for libhal if Linux Input support is 
enabled.

	* modules/Makefile.am
	* modules/gimpinputdevicestore.[ch]: added class derived from
	GtkListStore that keeps a list of devices with capability
	"input.mouse".

	* modules/controller_linux_input.c: for now, just instantiate a
	GimpInputDeviceStore.


svn path=/trunk/; revision=21891
2007-02-11 16:54:02 +00:00
Sven Neumann 287331b36f modules/controller_linux_input.c changed license to GPL, updated copyright
2007-02-10  Sven Neumann  <sven@gimp.org>

	* modules/controller_linux_input.c
	* modules/controller_midi.c: changed license to GPL, updated
	copyright and module info.


svn path=/trunk/; revision=21889
2007-02-10 15:10:01 +00:00
Michael Natterer 4f871da32b added some code stolen from DirectFB and forgotten on my disk a long time
2007-02-10  Michael Natterer  <mitch@gimp.org>

	* modules/controller_linux_input.c: added some code stolen from
	DirectFB and forgotten on my disk a long time ago which queries
	the input device for available keys and axes (just for debugging
	purposes for now). Also add one more button event and some
	debugging output for incoming events.


svn path=/trunk/; revision=21887
2007-02-09 23:38:39 +00:00
Michael Natterer f27cf7ec8e fix last commit a bit...
2007-02-09  Michael Natterer  <mitch@gimp.org>

	* modules/controller_linux_input.c (linux_input_read_event): fix
	last commit a bit...


svn path=/trunk/; revision=21886
2007-02-09 22:30:11 +00:00
Michael Natterer 9efbdbe5fd emit GIMP_CONTROLLER_EVENT_VALUE, not TRIGGER for movements on relative
2007-02-09  Michael Natterer  <mitch@gimp.org>

	* modules/controller_linux_input.c (linux_input_read_event): emit
	GIMP_CONTROLLER_EVENT_VALUE, not TRIGGER for movements on relative
	axes. Reduces the number of events significantly. Now we can start
	thinking what to do with them...


svn path=/trunk/; revision=21885
2007-02-09 21:58:16 +00:00
Michael Natterer 8ea53c48ca set the name of the alsa client to "GIMP" and the name of the port to
2007-01-21  Michael Natterer  <mitch@gimp.org>

	* modules/controller_midi.c (midi_set_device): set the name
	of the alsa client to "GIMP" and the name of the port to 
	"GIMP MIDI Input Controller". Provides reasonable strings in
	apps which display "client::port" as well as in apps which
	display only "port".


svn path=/trunk/; revision=21747
2007-01-21 16:42:15 +00:00