X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmidi_port_dialog.cc;h=f4c7e5a26bfcb33b4e097c4890d61e92a73ac6ad;hb=9aacefc17010a889222425f97b99050171165038;hp=dd74b2cf4d10809771dcc6cb43ca9816aab84eab;hpb=09ec34292683c8a4edcc0060b938192ae18225c4;p=ardour.git diff --git a/gtk2_ardour/midi_port_dialog.cc b/gtk2_ardour/midi_port_dialog.cc index dd74b2cf4d..f4c7e5a26b 100644 --- a/gtk2_ardour/midi_port_dialog.cc +++ b/gtk2_ardour/midi_port_dialog.cc @@ -1,3 +1,22 @@ +/* + Copyright (C) 2012 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + #include #include #include @@ -13,22 +32,18 @@ using namespace std; using namespace PBD; using namespace Gtk; using namespace Gtkmm2ext; -using namespace sigc; static const char* mode_strings[] = { "duplex", "output", "input", (char*) 0 }; MidiPortDialog::MidiPortDialog () - : ArdourDialog ("add MIDI port dialog") + : ArdourDialog (_("Add MIDI Port")) , port_label (_("Port name:")) { set_modal (true); set_skip_taskbar_hint (true); set_resizable (false); - set_position (Gtk::WIN_POS_MOUSE); set_name (N_("MidiPortDialog")); - set_title (_("Add MIDI Port")); - vector str = internationalize (PACKAGE, mode_strings); set_popdown_strings (port_mode_combo, str); port_mode_combo.set_active_text (str.front()); @@ -42,7 +57,7 @@ MidiPortDialog::MidiPortDialog () get_vbox()->pack_start (hpacker); - port_name.signal_activate().connect (mem_fun (*this, &MidiPortDialog::entry_activated)); + port_name.signal_activate().connect (sigc::mem_fun (*this, &MidiPortDialog::entry_activated)); add_button (Stock::CANCEL, RESPONSE_CANCEL); add_button (Stock::ADD, RESPONSE_ACCEPT);