Commit cade89ab authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

removed #define GIMP_CONTROLLER_PARAM_SERIALIZE.

2004-07-06  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.h: removed #define
	GIMP_CONTROLLER_PARAM_SERIALIZE.

	* libgimpmodule/gimpmoduletypes.h: added
	GIMP_MODULE_PARAM_SERIALIZE instead.

	* modules/controller_linux_input.c
	* modules/controller_midi.c: changed accordingly.

	* modules/cdisplay_colorblind.c
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* modules/cdisplay_proof.c: made the new properties serializable.
parent ddd4e1c7
2004-07-06 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcontroller.h: removed #define
GIMP_CONTROLLER_PARAM_SERIALIZE.
* libgimpmodule/gimpmoduletypes.h: added
GIMP_MODULE_PARAM_SERIALIZE instead.
* modules/controller_linux_input.c
* modules/controller_midi.c: changed accordingly.
* modules/cdisplay_colorblind.c
* modules/cdisplay_gamma.c
* modules/cdisplay_highcontrast.c
* modules/cdisplay_proof.c: made the new properties serializable.
2004-07-05 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/Makefile.am (enum_headers): don't scan
......
......@@ -25,6 +25,9 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_MODULE_PARAM_SERIALIZE (1 << (0 + G_PARAM_USER_SHIFT))
typedef struct _GimpModule GimpModule;
typedef struct _GimpModuleInfo GimpModuleInfo;
typedef struct _GimpModuleDB GimpModuleDB;
......
......@@ -28,9 +28,6 @@ G_BEGIN_DECLS
/* For information look at the html documentation */
#define GIMP_CONTROLLER_PARAM_SERIALIZE (1 << (0 + G_PARAM_USER_SHIFT))
typedef enum
{
GIMP_CONTROLLER_EVENT_TRIGGER,
......
......@@ -236,7 +236,8 @@ cdisplay_colorblind_class_init (CdisplayColorblindClass *klass)
CDISPLAY_TYPE_COLORBLIND_DEFICIENCY,
DEFAULT_DEFICIENCY,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
G_PARAM_CONSTRUCT |
GIMP_MODULE_PARAM_SERIALIZE));
display_class->name = _("Color Deficient Vision");
display_class->help_id = "gimp-colordisplay-colorblind";
......
......@@ -172,7 +172,8 @@ cdisplay_gamma_class_init (CdisplayGammaClass *klass)
0.01, 10.0,
DEFAULT_GAMMA,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
G_PARAM_CONSTRUCT |
GIMP_MODULE_PARAM_SERIALIZE));
display_class->name = _("Gamma");
display_class->help_id = "gimp-colordisplay-gamma";
......
......@@ -172,7 +172,8 @@ cdisplay_contrast_class_init (CdisplayContrastClass *klass)
0.01, 10.0,
DEFAULT_CONTRAST,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
G_PARAM_CONSTRUCT |
GIMP_MODULE_PARAM_SERIALIZE));
display_class->name = _("Contrast");
display_class->help_id = "gimp-colordisplay-contrast";
......
......@@ -218,17 +218,22 @@ cdisplay_proof_class_init (CdisplayProofClass *klass)
CDISPLAY_TYPE_PROOF_INTENT,
INTENT_PERCEPTUAL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
G_PARAM_CONSTRUCT |
GIMP_MODULE_PARAM_SERIALIZE));
g_object_class_install_property (object_class, PROP_BPC,
g_param_spec_boolean ("black-point-compensation", NULL, NULL,
FALSE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
G_PARAM_CONSTRUCT |
GIMP_MODULE_PARAM_SERIALIZE));
g_object_class_install_property (object_class, PROP_PROFILE,
g_param_spec_string ("profile", NULL, NULL,
FALSE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
G_PARAM_CONSTRUCT |
GIMP_MODULE_PARAM_SERIALIZE));
display_class->name = _("Color Proof");
display_class->help_id = "gimp-colordisplay-proof";
......
......@@ -219,7 +219,7 @@ linux_input_class_init (ControllerLinuxInputClass *klass)
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
GIMP_CONTROLLER_PARAM_SERIALIZE));
GIMP_MODULE_PARAM_SERIALIZE));
controller_class->name = _("Linux Input Events");
......
......@@ -200,7 +200,7 @@ midi_class_init (ControllerMidiClass *klass)
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
GIMP_CONTROLLER_PARAM_SERIALIZE));
GIMP_MODULE_PARAM_SERIALIZE));
g_object_class_install_property (object_class, PROP_CHANNEL,
g_param_spec_int ("channel",
_("Channel:"),
......@@ -208,7 +208,7 @@ midi_class_init (ControllerMidiClass *klass)
-1, 15, -1,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
GIMP_CONTROLLER_PARAM_SERIALIZE));
GIMP_MODULE_PARAM_SERIALIZE));
controller_class->name = _("Midi Events");
......@@ -220,18 +220,18 @@ midi_class_init (ControllerMidiClass *klass)
static void
midi_init (ControllerMidi *midi)
{
midi->device = NULL;
midi->midi_channel = -1;
midi->io = NULL;
midi->io_id = 0;
midi->swallow = TRUE; /* get rid of data bytes at start of stream */
midi->command = 0x0;
midi->channel = 0x0;
midi->key = -1;
midi->velocity = -1;
midi->msb = -1;
midi->lsb = -1;
midi->device = NULL;
midi->midi_channel = -1;
midi->io = NULL;
midi->io_id = 0;
midi->swallow = TRUE; /* get rid of data bytes at start of stream */
midi->command = 0x0;
midi->channel = 0x0;
midi->key = -1;
midi->velocity = -1;
midi->msb = -1;
midi->lsb = -1;
}
static void
......@@ -579,7 +579,7 @@ midi_read_event (GIOChannel *io,
if (midi->command == 0x9)
{
D (g_print ("MIDI (ch %02d): note on (%02x vel %02x)\n",
D (g_print ("MIDI (ch %02d): note on (%02x vel %02x)\n",
midi->channel,
midi->key, midi->velocity));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment