From 8ea53c48caa78968ba28cda436536e87f1d89667 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 21 Jan 2007 16:42:15 +0000 Subject: [PATCH] set the name of the alsa client to "GIMP" and the name of the port to 2007-01-21 Michael Natterer * 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 --- ChangeLog | 8 ++++++++ modules/controller_midi.c | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 429d5c6ceb..6ee34eb940 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-01-21 Michael Natterer + + * 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". + 2007-01-21 Sven Neumann * app/dialogs/preferences-dialog.c: reworded Monitor Resolution diff --git a/modules/controller_midi.c b/modules/controller_midi.c index 466b7e5b12..ce302d90d8 100644 --- a/modules/controller_midi.c +++ b/modules/controller_midi.c @@ -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);