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
This commit is contained in:
Michael Natterer
2007-01-21 16:42:15 +00:00
committed by Michael Natterer
parent d7eb0b7b78
commit 8ea53c48ca
2 changed files with 10 additions and 3 deletions

View File

@ -452,10 +452,9 @@ midi_set_device (ControllerMidi *midi,
SND_SEQ_OPEN_INPUT, 0);
if (ret >= 0)
{
snd_seq_set_client_name (midi->sequencer,
g_get_application_name());
snd_seq_set_client_name (midi->sequencer, _("GIMP"));
ret = snd_seq_create_simple_port (midi->sequencer,
_("GIMP MIDI controller"),
_("GIMP MIDI Input Controller"),
SND_SEQ_PORT_CAP_WRITE |
SND_SEQ_PORT_CAP_SUBS_WRITE,
SND_SEQ_PORT_TYPE_APPLICATION);