Commit Graph

275 Commits

Author SHA1 Message Date
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
Simon Budig 7a941059c5 fix the directions of the relative events.
2007-01-10  Simon Budig  <simon@gimp.org>

	* modules/controller_linux_input.c: fix the directions of the
	relative events.

	* plug-ins/common/normalize.c: fix warning about comment starting
	inside a comment. Untabbified.

svn path=/trunk/; revision=21683
2007-01-10 00:42:34 +00:00
Michael Natterer b383ad45a2 add more relative events.
2007-01-07  Michael Natterer  <mitch@gimp.org>

	* modules/controller_linux_input.c (rel_events): add more relative
	events.


svn path=/trunk/; revision=21665
2007-01-07 21:25:51 +00:00
Sven Neumann 675289a36b fixed order of parameters (pointed out by Yoshinori Yamakawa).
2007-01-02  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c: fixed order of parameters (pointed 
out
	by Yoshinori Yamakawa).


svn path=/trunk/; revision=21624
2007-01-02 19:48:26 +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 fb0bd47a22 use g_get_application_name() for the client name; made the name of the
2006-12-10  Sven Neumann  <sven@gimp.org>

	* modules/controller_midi.c (midi_set_device): use
	g_get_application_name() for the client name; made the name of
the
	ALSA port translatable.
2006-12-10 17:09:53 +00:00
Sven Neumann 41237259c9 In all files, changed the standard copyright notice to say "GIMP - The GNU
2006-12-09  Sven Neumann  <sven@gimp.org>

        * In all files, changed the standard copyright notice to say
        "GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
Simon Budig a8f50bfebd put the module prototypes into a proper place.
2006-11-24  Simon Budig  <simon@gimp.org>

	* libgimpmodule/gimpmodule.[ch]: put the module prototypes into a
	proper place.

	* modules/cdisplay_colorblind.c
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/colorsel_cmyk.c
	* modules/colorsel_cmyk_lcms.c
	* modules/colorsel_triangle.c
	* modules/colorsel_water.c
	* modules/controller_linux_input.c
	* modules/controller_midi.c: reverted.
2006-11-24 22:20:00 +00:00
Simon Budig 2db432ad1f modules/cdisplay_colorblind.c modules/cdisplay_gamma.c
2006-11-24  Simon Budig  <simon@gimp.org>

	* modules/cdisplay_colorblind.c
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/colorsel_cmyk.c
	* modules/colorsel_cmyk_lcms.c
	* modules/colorsel_triangle.c
	* modules/colorsel_water.c
	* modules/controller_linux_input.c
	* modules/controller_midi.c: fixed prototype warning, untabbified.
2006-11-24 16:15:50 +00:00
Sven Neumann 099bb0a811 update the configuration dialog when then color configuration is changed.
2006-11-03  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c: update the configuration dialog when
	then color configuration is changed.

	* plug-ins/common/lcms.c: be even more robust.
2006-11-03 22:26:39 +00:00
Michael Natterer 6b48b73300 added hackish flag to prevent it from emitting signals during destruction.
2006-10-29  Michael Natterer  <mitch@gimp.org>

	* modules/colorsel_cmyk_lcms.c: added hackish flag to prevent it
	from emitting signals during destruction.
2006-10-29 19:14:50 +00:00
Sven Neumann 67d3ef2898 use LIBLCMS instead of LCMS_LIBS.
2006-10-23  Sven Neumann  <sven@gimp.org>

	* configure.in: use LIBLCMS instead of LCMS_LIBS.

	* modules/Makefile.am: changed accordingly.
2006-10-23 10:25:04 +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
Sven Neumann 09eb46429d build the color-managed CMYK color selector with the same filename as the
2006-10-11  Sven Neumann  <sven@gimp.org>

	* modules/Makefile.am: build the color-managed CMYK color selector
	with the same filename as the naive implementation; they are
	mutually exclusive.
2006-10-11 08:57:29 +00:00
Michael Natterer c567149f8e libgimpwidgets/gimpcolordisplay.[ch] added "const gchar *stock_id" members
2006-10-01  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolordisplay.[ch]
	* libgimpwidgets/gimpcontroller.[ch]: added "const gchar *stock_id"
	members to the class structs.

	* libgimpwidgets/gimpstock.[ch]
	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-controller-16.png
	* themes/Default/images/stock-controller-24.png
	* themes/Default/images/stock-controller-keyboard-16.png
	* themes/Default/images/stock-controller-keyboard-24.png
	* themes/Default/images/stock-controller-linux-input-16.png
	* themes/Default/images/stock-controller-linux-input-24.png
	* themes/Default/images/stock-controller-midi-16.png
	* themes/Default/images/stock-controller-midi-24.png
	* themes/Default/images/stock-controller-wheel-16.png
	* themes/Default/images/stock-controller-wheel-24.png
	* themes/Default/images/stock-display-filter-colorblind-16.png
	* themes/Default/images/stock-display-filter-colorblind-24.png
	* themes/Default/images/stock-display-filter-contrast-16.png
	* themes/Default/images/stock-display-filter-contrast-24.png
	* themes/Default/images/stock-display-filter-gamma-16.png
	* themes/Default/images/stock-display-filter-gamma-24.png
	* themes/Default/images/stock-display-filter-lcms-16.png
	* themes/Default/images/stock-display-filter-lcms-24.png
	* themes/Default/images/stock-display-filter-proof-16.png
	* themes/Default/images/stock-display-filter-proof-24.png: added
	icons for the various display filters and controllers. Made them
	as ugly as sin to trigger some replacement pain in the relevant
	people ;)

	* modules/cdisplay_colorblind.c
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/controller_linux_input.c
	* modules/controller_midi.c
	* app/widgets/gimpcontrollerkeyboard.c
	* app/widgets/gimpcontrollerwheel.c: set icons.

	* app/widgets/gimpcolordisplayeditor.c
	* app/widgets/gimpcontrollerinfo.c
	* app/widgets/gimpcontrollerlist.c: show them in the display filter
	and controller GUIs.
2006-10-01 17:31:42 +00:00
Sven Neumann ba9efb3433 modules/Makefile.am new CMYK color-selector that uses littleCMS for the
2006-09-26  Sven Neumann  <sven@gimp.org>

	* modules/Makefile.am
	* modules/colorsel_cmyk_lcms.c: new CMYK color-selector that
uses
	littleCMS for the RGB <-> CMYK conversion. This is built instead
	of the standard CMYK color-selector if lcms is available.

	* libgimpwidgets/gimpcolornotebook.c
	* libgimpwidgets/gimpcolorselection.[ch]
	* libgimpwidgets/gimpcolorselector.[ch]
	* libgimpwidgets/gimpwidgets.def: added API to set the color
	management configuration on color selectors.

	* libgimpwidgets/gimpwidgetstypes.h: include
	libgimpconfig/gimpconfigtypes.h.

	* app/dialogs/grid-dialog.c
	* app/dialogs/preferences-dialog.c
	* app/widgets/gimpcolordialog.c
	* app/widgets/gimpcoloreditor.c
	* app/widgets/gimpcolorpanel.c
	* app/widgets/gimpgrideditor.[ch]
	* app/widgets/gimppropwidgets.c
	* app/widgets/gimptoolbox-color-area.c: set the color management
	configuration on (hopefully) all color selectors.

	* modules/cdisplay_lcms.c: use a GimpHintBox widget.
2006-09-26 08:55:41 +00:00
Sven Neumann 71d1c678cd use the GimpColorRenderingIntent enum from libgimpconfig instead of
2006-06-27  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_proof.c: use the GimpColorRenderingIntent
enum
	from libgimpconfig instead of duplicating it.
2006-06-27 20:00:03 +00:00
Sven Neumann 7b1327dd86 I18n improvements based on a patch from Zbigniew Chyla:
2006-06-27  Sven Neumann  <sven@gimp.org>

	I18n improvements based on a patch from Zbigniew Chyla:

	* app/main.c:
	* modules/controller_midi.c
	* plug-ins/script-fu/scripts/guides-new.scm: marked strings for
	translation.

	* app/widgets/gimpdock.c
	* libgimpwidgets/gimppageselector.c
	* plug-ins/common/plugin-browser.c: use ngettext() for plural
forms.
2006-06-27 07:49:14 +00:00
Manish Singh b39f3ce1c3 libgimp/gimpbrushes.c fix some ytpos.
2006-06-25  Manish Singh  <yosh@gimp.org>

        * libgimp/gimpbrushes.c
        * modules/cdisplay_colorblind.c: fix some ytpos.
2006-06-26 01:30:59 +00:00
Manish Singh f548b65329 app/errors.c app/main.c app/file/gimprecentlist.c libgimpbase/gimpsignal.c
2006-06-16  Manish Singh  <yosh@gimp.org>

        * app/errors.c
        * app/main.c
        * app/file/gimprecentlist.c
        * libgimpbase/gimpsignal.c
        * libgimp/gimp.c
        * modules/controller_midi.c
        * plug-ins/common/gqbist.c: use _GNU_SOURCE instead of the other
        _FOO_SOURCE variables to support -ansi -pedantic on glibc systems,
        since anything else breaks compilation of otherwise working code.
        Fixes bug #344203.
2006-06-16 16:21:35 +00:00
Manish Singh c7ba1223c3 app/errors.c app/main.c app/file/gimprecentlist.c libgimp/gimp.c
2006-05-29  Manish Singh  <yosh@gimp.org>

        * app/errors.c
        * app/main.c
        * app/file/gimprecentlist.c
        * libgimp/gimp.c
        * libgimpbase/gimpsignal.c
        * modules/cdisplay_lcms.c
        * modules/cdisplay_proof.c
        * modules/controller_midi.c
        * plug-ins/common/gqbist.c
        * plug-ins/metadata/xmp-schemas.h: miscellaneous fixes for building
        with -ansi -pedantic. Mostly #define _FOO_SOURCE stuff. Thanks to
        Daniel Richard G. for the patch. Fixes bug #342390.
2006-05-30 01:55:42 +00:00
Sven Neumann 8585584374 use "folder" in place of "directory".
2006-05-24  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc-blurbs.h (SWAP_PATH_BLURB, TEMP_PATH_BLURB):
	use "folder" in place of "directory".

	* app/dialogs/preferences-dialog.c: use GtkFileChooserButtons for
	the "swap-path" and "temp-path" preferences and a simple GtkEntry
	for the "web-browser" preference.

	* modules/cdisplay_proof.c: use a GtkFileChooserButton instead of
	a GimpFileEntry widget.
2006-05-24 15:27:49 +00:00
Hans Breuer 429d71e5e2 updated dont include "config/gimpbaseconfig.c", it gives an redefinition
2006-05-13  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated
	* app/core/gimp-util.c : dont include "config/gimpbaseconfig.c", it
	gives an redefinition error with msvc. Instead include
	config/gimpbaseconfig.h and libgimpconfig/gimpconfig-path.h

	* plug-ins/common/psd_save.c : fix c99isms (declarations only at the
	start of a block)
2006-05-13 17:05:15 +00:00
Simon Budig e6c52afb6e Make the hue angle behave mathematically correct. Fixes bug #141922
2006-05-07  Simon Budig  <simon@gimp.org>

	* modules/colorsel_triangle.c: Make the hue angle behave
	mathematically correct. Fixes bug #141922

	* plug-ins/script-fu/scripts/circuit.scm: Fix multi line description.

	* docs/Wilber.svg: Add xmlns attribute to the svg element, so
	firefox renders it when reading it from disk.
2006-05-07 20:47:10 +00:00
Sven Neumann 60e3301802 M ChangeLog M app/paint/gimpconvolve.c M app/paint-funcs/paint-funcs.c M
M ChangeLog
M app/paint/gimpconvolve.c
M app/paint-funcs/paint-funcs.c
M app/paint-funcs/paint-funcs.h
M app/tools/gimpiscissorstool.c
M libgimpbase/gimputils.c
M modules/colorsel_cmyk.c
M regexrepl/regex.c
2006-04-20 07:15:15 +00:00
Sven Neumann 49b1d06896 remove color if Shift is pressed.
2006-03-10  Sven Neumann  <sven@gimp.org>

	* modules/colorsel_water.c: remove color if Shift is pressed.
2006-03-10 13:12:15 +00:00