Commit 6d63d500 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

guarded the whole header with GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION

2004-11-24  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.[ch]: guarded the whole header
	with GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION because it's no
	fixed API yet. Added a "state" property bacause "name" was abused
	as the controller's state. Added "help_domain" to the controller
	class.

	* libgimpwidgets/gimpwidgets.h: don't include gimpcontroller.h

	* modules/controller_linux_input.c
	* modules/controller_midi.c: set the "name" property to the name
	retrieved from the device, or to a default string if no name is
	available. Store the status in the "state" property. Added and
	changed some strings, but it's better to have the controller
	strings untranslated than to have no tooltips at all or misleading
	labels.

	* app/widgets/gimpcontrollerkeyboard.c
	* app/widgets/gimpcontrollerwheel.c: set default strings for both.

	* app/widgets/gimpcontrollereditor.c: added a GUI for the "state"
	property.

	* app/widgets/gimpcontrollerkeyboard.h
	* app/widgets/gimpcontrollerwheel.h
	* app/widgets/gimpcontrollerinfo.c
	* app/widgets/gimpcontrollers.c: #define
	GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION (just as in all files
	above).

	* app/widgets/gimphelp-ids.h: added the IDs of all controller
	modules and also of all other modules. The defines are not
	actually used, but this file is the canonical place to collect all
	the core's help IDs.
parent 7eed9323
2004-11-24 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcontroller.[ch]: guarded the whole header
with GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION because it's no
fixed API yet. Added a "state" property bacause "name" was abused
as the controller's state. Added "help_domain" to the controller
class.
* libgimpwidgets/gimpwidgets.h: don't include gimpcontroller.h
* modules/controller_linux_input.c
* modules/controller_midi.c: set the "name" property to the name
retrieved from the device, or to a default string if no name is
available. Store the status in the "state" property. Added and
changed some strings, but it's better to have the controller
strings untranslated than to have no tooltips at all or misleading
labels.
* app/widgets/gimpcontrollerkeyboard.c
* app/widgets/gimpcontrollerwheel.c: set default strings for both.
* app/widgets/gimpcontrollereditor.c: added a GUI for the "state"
property.
* app/widgets/gimpcontrollerkeyboard.h
* app/widgets/gimpcontrollerwheel.h
* app/widgets/gimpcontrollerinfo.c
* app/widgets/gimpcontrollers.c: #define
GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION (just as in all files
above).
* app/widgets/gimphelp-ids.h: added the IDs of all controller
modules and also of all other modules. The defines are not
actually used, but this file is the canonical place to collect all
the core's help IDs.
2004-11-23 Sven Neumann <sven@gimp.org> 2004-11-23 Sven Neumann <sven@gimp.org>
* app/core/gimp-templates.[ch] * app/core/gimp-templates.[ch]
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include "libgimpwidgets/gimpwidgets.h" #include "libgimpwidgets/gimpwidgets.h"
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "libgimpwidgets/gimpcontroller.h" #include "libgimpwidgets/gimpcontroller.h"
#include "widgets-types.h" #include "widgets-types.h"
...@@ -220,7 +222,7 @@ gimp_controller_editor_constructor (GType type, ...@@ -220,7 +222,7 @@ gimp_controller_editor_constructor (GType type,
gtk_container_add (GTK_CONTAINER (frame), vbox); gtk_container_add (GTK_CONTAINER (frame), vbox);
gtk_widget_show (vbox); gtk_widget_show (vbox);
table = gtk_table_new (1, 2, FALSE); table = gtk_table_new (2, 2, FALSE);
gtk_table_set_row_spacings (GTK_TABLE (table), 6); gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_col_spacings (GTK_TABLE (table), 6); gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
...@@ -234,6 +236,12 @@ gimp_controller_editor_constructor (GType type, ...@@ -234,6 +236,12 @@ gimp_controller_editor_constructor (GType type,
"name"), "name"),
1, TRUE); 1, TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, row++,
_("State:"), 0.0, 0.5,
gimp_prop_label_new (G_OBJECT (controller),
"state"),
1, TRUE);
property_specs = property_specs =
g_object_class_list_properties (G_OBJECT_CLASS (controller_class), g_object_class_list_properties (G_OBJECT_CLASS (controller_class),
&n_property_specs); &n_property_specs);
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include "libgimpwidgets/gimpwidgets.h" #include "libgimpwidgets/gimpwidgets.h"
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "libgimpwidgets/gimpcontroller.h" #include "libgimpwidgets/gimpcontroller.h"
#include "widgets-types.h" #include "widgets-types.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "widgets-types.h" #include "widgets-types.h"
#include "gimpcontrollerkeyboard.h" #include "gimpcontrollerkeyboard.h"
#include "gimphelp-ids.h"
#include "gimp-intl.h" #include "gimp-intl.h"
...@@ -204,6 +205,7 @@ gimp_controller_keyboard_class_init (GimpControllerKeyboardClass *klass) ...@@ -204,6 +205,7 @@ gimp_controller_keyboard_class_init (GimpControllerKeyboardClass *klass)
object_class->constructor = gimp_controller_keyboard_constructor; object_class->constructor = gimp_controller_keyboard_constructor;
controller_class->name = _("Keyboard"); controller_class->name = _("Keyboard");
controller_class->help_id = GIMP_HELP_CONTROLLER_KEYBOARD;
controller_class->get_n_events = gimp_controller_keyboard_get_n_events; controller_class->get_n_events = gimp_controller_keyboard_get_n_events;
controller_class->get_event_name = gimp_controller_keyboard_get_event_name; controller_class->get_event_name = gimp_controller_keyboard_get_event_name;
...@@ -224,7 +226,10 @@ gimp_controller_keyboard_constructor (GType type, ...@@ -224,7 +226,10 @@ gimp_controller_keyboard_constructor (GType type,
object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params); object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
g_object_set (object, "name", _("Main Keyboard"), NULL); g_object_set (object,
"name", _("Keyboard Events"),
"state", _("Ready"),
NULL);
return object; return object;
} }
......
...@@ -20,10 +20,11 @@ ...@@ -20,10 +20,11 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#ifndef __GIMP_CONTROLLER_WHELL_H__ #ifndef __GIMP_CONTROLLER_KEYBOARD_H__
#define __GIMP_CONTROLLER_KEYBOARD_H__ #define __GIMP_CONTROLLER_KEYBOARD_H__
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "libgimpwidgets/gimpcontroller.h" #include "libgimpwidgets/gimpcontroller.h"
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include "libgimpbase/gimpbase.h" #include "libgimpbase/gimpbase.h"
#include "libgimpwidgets/gimpwidgets.h" #include "libgimpwidgets/gimpwidgets.h"
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "libgimpwidgets/gimpcontroller.h" #include "libgimpwidgets/gimpcontroller.h"
#include "widgets-types.h" #include "widgets-types.h"
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "widgets-types.h" #include "widgets-types.h"
#include "gimpcontrollerwheel.h" #include "gimpcontrollerwheel.h"
#include "gimphelp-ids.h"
#include "gimp-intl.h" #include "gimp-intl.h"
...@@ -203,6 +204,7 @@ gimp_controller_wheel_class_init (GimpControllerWheelClass *klass) ...@@ -203,6 +204,7 @@ gimp_controller_wheel_class_init (GimpControllerWheelClass *klass)
object_class->constructor = gimp_controller_wheel_constructor; object_class->constructor = gimp_controller_wheel_constructor;
controller_class->name = _("Mouse Wheel"); controller_class->name = _("Mouse Wheel");
controller_class->help_id = GIMP_HELP_CONTROLLER_WHEEL;
controller_class->get_n_events = gimp_controller_wheel_get_n_events; controller_class->get_n_events = gimp_controller_wheel_get_n_events;
controller_class->get_event_name = gimp_controller_wheel_get_event_name; controller_class->get_event_name = gimp_controller_wheel_get_event_name;
...@@ -223,7 +225,10 @@ gimp_controller_wheel_constructor (GType type, ...@@ -223,7 +225,10 @@ gimp_controller_wheel_constructor (GType type,
object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params); object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
g_object_set (object, "name", _("Main Mouse Wheel"), NULL); g_object_set (object,
"name", _("Mouse Wheel Events"),
"state", _("Ready"),
NULL);
return object; return object;
} }
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#define __GIMP_CONTROLLER_WHEEL_H__ #define __GIMP_CONTROLLER_WHEEL_H__
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "libgimpwidgets/gimpcontroller.h" #include "libgimpwidgets/gimpcontroller.h"
......
...@@ -432,5 +432,20 @@ ...@@ -432,5 +432,20 @@
#define GIMP_HELP_HELP "gimp-help" #define GIMP_HELP_HELP "gimp-help"
#define GIMP_HELP_HELP_CONTEXT "gimp-help-context" #define GIMP_HELP_HELP_CONTEXT "gimp-help-context"
#define GIMP_HELP_COLORDISPLAY_COLORBLIND "gimp-colordisplay-colorblind"
#define GIMP_HELP_COLORDISPLAY_CONTRAST "gimp-colordisplay-contrast"
#define GIMP_HELP_COLORDISPLAY_GAMMA "gimp-colordisplay-gamma"
#define GIMP_HELP_COLORDISPLAY_GIMP "gimp-colordisplay-gimp"
#define GIMP_HELP_COLORDISPLAY_PROOF "gimp-colordisplay-proof"
#define GIMP_HELP_COLORSELECTOR_CMYK "gimp-colorselector-cmyk"
#define GIMP_HELP_COLORSELECTOR_TRIANGLE "gimp-colorselector-triangle"
#define GIMP_HELP_COLORSELECTOR_WATER "gimp-colorselector-water"
#define GIMP_HELP_CONTROLLER_KEYBOARD "gimp-controller-keyboard"
#define GIMP_HELP_CONTROLLER_LINUX_INPUT "gimp-controller-linux-input"
#define GIMP_HELP_CONTROLLER_MIDI "gimp-controller-midi"
#define GIMP_HELP_CONTROLLER_WHEEL "gimp-controller-wheel"
#endif /* __GIMP_HELP_IDS_H__ */ #endif /* __GIMP_HELP_IDS_H__ */
...@@ -28,14 +28,16 @@ ...@@ -28,14 +28,16 @@
#include "gimpwidgetstypes.h" #include "gimpwidgetstypes.h"
#include "gimpcontroller.h"
#include "gimpwidgetsmarshal.h" #include "gimpwidgetsmarshal.h"
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "gimpcontroller.h"
enum enum
{ {
PROP_0, PROP_0,
PROP_NAME PROP_NAME,
PROP_STATE
}; };
enum enum
...@@ -121,6 +123,12 @@ gimp_controller_class_init (GimpControllerClass *klass) ...@@ -121,6 +123,12 @@ gimp_controller_class_init (GimpControllerClass *klass)
G_PARAM_READWRITE | G_PARAM_READWRITE |
G_PARAM_CONSTRUCT)); G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_STATE,
g_param_spec_string ("state", NULL, NULL,
"Unknown",
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
controller_signals[EVENT] = controller_signals[EVENT] =
g_signal_new ("event", g_signal_new ("event",
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
...@@ -132,6 +140,7 @@ gimp_controller_class_init (GimpControllerClass *klass) ...@@ -132,6 +140,7 @@ gimp_controller_class_init (GimpControllerClass *klass)
G_TYPE_POINTER); G_TYPE_POINTER);
klass->name = "Unnamed"; klass->name = "Unnamed";
klass->help_domain = NULL;
klass->help_id = NULL; klass->help_id = NULL;
klass->get_n_events = NULL; klass->get_n_events = NULL;
...@@ -154,6 +163,11 @@ gimp_controller_set_property (GObject *object, ...@@ -154,6 +163,11 @@ gimp_controller_set_property (GObject *object,
g_free (controller->name); g_free (controller->name);
controller->name = g_value_dup_string (value); controller->name = g_value_dup_string (value);
break; break;
case PROP_STATE:
if (controller->state)
g_free (controller->state);
controller->state = g_value_dup_string (value);
break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break; break;
...@@ -173,6 +187,9 @@ gimp_controller_get_property (GObject *object, ...@@ -173,6 +187,9 @@ gimp_controller_get_property (GObject *object,
case PROP_NAME: case PROP_NAME:
g_value_set_string (value, controller->name); g_value_set_string (value, controller->name);
break; break;
case PROP_STATE:
g_value_set_string (value, controller->state);
break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break; break;
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#ifndef GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#error GimpController is unstable API under construction
#endif
#ifndef __GIMP_CONTROLLER_H__ #ifndef __GIMP_CONTROLLER_H__
#define __GIMP_CONTROLLER_H__ #define __GIMP_CONTROLLER_H__
...@@ -85,6 +89,7 @@ struct _GimpController ...@@ -85,6 +89,7 @@ struct _GimpController
GObject parent_instance; GObject parent_instance;
gchar *name; gchar *name;
gchar *state;
}; };
struct _GimpControllerClass struct _GimpControllerClass
...@@ -92,6 +97,7 @@ struct _GimpControllerClass ...@@ -92,6 +97,7 @@ struct _GimpControllerClass
GObjectClass parent_class; GObjectClass parent_class;
const gchar *name; const gchar *name;
const gchar *help_domain;
const gchar *help_id; const gchar *help_id;
/* virtual functions */ /* virtual functions */
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include <libgimpwidgets/gimpcolorselector.h> #include <libgimpwidgets/gimpcolorselector.h>
#include <libgimpwidgets/gimpcolorselect.h> #include <libgimpwidgets/gimpcolorselect.h>
#include <libgimpwidgets/gimpcolorselection.h> #include <libgimpwidgets/gimpcolorselection.h>
#include <libgimpwidgets/gimpcontroller.h>
#include <libgimpwidgets/gimpdialog.h> #include <libgimpwidgets/gimpdialog.h>
#include <libgimpwidgets/gimpfileentry.h> #include <libgimpwidgets/gimpfileentry.h>
#include <libgimpwidgets/gimpframe.h> #include <libgimpwidgets/gimpframe.h>
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include "libgimpmodule/gimpmodule.h" #include "libgimpmodule/gimpmodule.h"
#include "libgimpwidgets/gimpwidgets.h" #include "libgimpwidgets/gimpwidgets.h"
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "libgimpwidgets/gimpcontroller.h" #include "libgimpwidgets/gimpcontroller.h"
#include "libgimp/libgimp-intl.h" #include "libgimp/libgimp-intl.h"
...@@ -215,13 +216,15 @@ linux_input_class_init (ControllerLinuxInputClass *klass) ...@@ -215,13 +216,15 @@ linux_input_class_init (ControllerLinuxInputClass *klass)
g_object_class_install_property (object_class, PROP_DEVICE, g_object_class_install_property (object_class, PROP_DEVICE,
g_param_spec_string ("device", g_param_spec_string ("device",
_("Device:"), NULL, _("Device:"),
_("The name of the device to read Linux Input events from."),
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_READWRITE |
G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT |
GIMP_MODULE_PARAM_SERIALIZE)); GIMP_MODULE_PARAM_SERIALIZE));
controller_class->name = _("Linux Input Events"); controller_class->name = _("Linux Input");
controller_class->help_id = "gimp-controller-linux-input";
controller_class->get_n_events = linux_input_get_n_events; controller_class->get_n_events = linux_input_get_n_events;
controller_class->get_event_name = linux_input_get_event_name; controller_class->get_event_name = linux_input_get_event_name;
...@@ -344,9 +347,12 @@ linux_input_set_device (ControllerLinuxInput *controller, ...@@ -344,9 +347,12 @@ linux_input_set_device (ControllerLinuxInput *controller,
controller->device = g_strdup (device); controller->device = g_strdup (device);
g_object_set (controller, "name", _("Linux Input Events"), NULL);
if (controller->device && strlen (controller->device)) if (controller->device && strlen (controller->device))
{ {
gint fd; gchar *state;
gint fd;
fd = open (controller->device, O_RDONLY); fd = open (controller->device, O_RDONLY);
...@@ -361,13 +367,10 @@ linux_input_set_device (ControllerLinuxInput *controller, ...@@ -361,13 +367,10 @@ linux_input_set_device (ControllerLinuxInput *controller,
{ {
g_object_set (controller, "name", name, NULL); g_object_set (controller, "name", name, NULL);
} }
else
{ state = g_strdup_printf (_("Reading from %s"), controller->device);
gchar *name = g_strdup_printf (_("Reading from %s"), g_object_set (controller, "state", state, NULL);
controller->device); g_free (state);
g_object_set (controller, "name", name, NULL);
g_free (name);
}
controller->io = g_io_channel_unix_new (fd); controller->io = g_io_channel_unix_new (fd);
g_io_channel_set_close_on_unref (controller->io, TRUE); g_io_channel_set_close_on_unref (controller->io, TRUE);
...@@ -381,15 +384,15 @@ linux_input_set_device (ControllerLinuxInput *controller, ...@@ -381,15 +384,15 @@ linux_input_set_device (ControllerLinuxInput *controller,
} }
else else
{ {
gchar *name = g_strdup_printf (_("Device not available: %s"), state = g_strdup_printf (_("Device not available: %s"),
g_strerror (errno)); g_strerror (errno));
g_object_set (controller, "name", name, NULL); g_object_set (controller, "state", state, NULL);
g_free (name); g_free (state);
} }
} }
else else
{ {
g_object_set (controller, "name", _("No device configured"), NULL); g_object_set (controller, "state", _("No device configured"), NULL);
} }
return FALSE; return FALSE;
...@@ -424,16 +427,16 @@ linux_input_read_event (GIOChannel *io, ...@@ -424,16 +427,16 @@ linux_input_read_event (GIOChannel *io,
if (error) if (error)
{ {
gchar *name = g_strdup_printf (_("Device not available: %s"), gchar *state = g_strdup_printf (_("Device not available: %s"),
error->message); error->message);
g_object_set (input, "name", name, NULL); g_object_set (input, "state", state, NULL);
g_free (name); g_free (state);
g_clear_error (&error); g_clear_error (&error);
} }
else else
{ {
g_object_set (input, "name", _("End of file"), NULL); g_object_set (input, "state", _("End of file"), NULL);
} }
return FALSE; return FALSE;
break; break;
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "libgimpmodule/gimpmodule.h" #include "libgimpmodule/gimpmodule.h"
#include "libgimpwidgets/gimpwidgets.h" #include "libgimpwidgets/gimpwidgets.h"
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "libgimpwidgets/gimpcontroller.h" #include "libgimpwidgets/gimpcontroller.h"
#include "libgimp/libgimp-intl.h" #include "libgimp/libgimp-intl.h"
...@@ -158,7 +159,7 @@ struct _GAlsaSource ...@@ -158,7 +159,7 @@ struct _GAlsaSource
static const GimpModuleInfo midi_info = static const GimpModuleInfo midi_info =
{ {
GIMP_MODULE_ABI_VERSION, GIMP_MODULE_ABI_VERSION,
N_("Midi event controller"), N_("MIDI event controller"),
"Michael Natterer <mitch@gimp.org>", "Michael Natterer <mitch@gimp.org>",
"v0.1", "v0.1",
"(c) 2004, released under the GPL", "(c) 2004, released under the GPL",
...@@ -219,6 +220,7 @@ midi_class_init (ControllerMidiClass *klass) ...@@ -219,6 +220,7 @@ midi_class_init (ControllerMidiClass *klass)
{ {
GimpControllerClass *controller_class = GIMP_CONTROLLER_CLASS (klass); GimpControllerClass *controller_class = GIMP_CONTROLLER_CLASS (klass);
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
gchar *blurb;
parent_class = g_type_class_peek_parent (klass); parent_class = g_type_class_peek_parent (klass);
...@@ -226,14 +228,24 @@ midi_class_init (ControllerMidiClass *klass) ...@@ -226,14 +228,24 @@ midi_class_init (ControllerMidiClass *klass)
object_class->get_property = midi_get_property; object_class->get_property = midi_get_property;
object_class->set_property = midi_set_property; object_class->set_property = midi_set_property;
blurb = g_strconcat (_("The name of the device to read MIDI events from."),
#ifdef HAVE_ALSA
"\n",
_("Enter 'alsa' to use the ALSA sequencer."),
#endif
NULL);
g_object_class_install_property (object_class, PROP_DEVICE, g_object_class_install_property (object_class, PROP_DEVICE,
g_param_spec_string ("device", g_param_spec_string ("device",
_("Device:"), _("Device:"),
_("The name of the device to read MIDI events from."), blurb,
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_READWRITE |
G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT |
GIMP_MODULE_PARAM_SERIALIZE)); GIMP_MODULE_PARAM_SERIALIZE));
g_free (blurb);
g_object_class_install_property (object_class, PROP_CHANNEL, g_object_class_install_property (object_class, PROP_CHANNEL,
g_param_spec_int ("channel", g_param_spec_int ("channel",
_("Channel:"), _("Channel:"),
...@@ -243,7 +255,8 @@ midi_class_init (ControllerMidiClass *klass) ...@@ -243,7 +255,8 @@ midi_class_init (ControllerMidiClass *klass)
G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT |
GIMP_MODULE_PARAM_SERIALIZE)); GIMP_MODULE_PARAM_SERIALIZE));
controller_class->name = _("Midi Events"); controller_class->name = _("MIDI");
controller_class->help_id = "gimp-controller-midi";