Make Dropdown menus at least as wide as the button
[ardour.git] / gtk2_ardour / midi_port_dialog.cc
index 23fb6f1ef2fb25ae379e0cad235a974417e8f4de..20904faa59dadea727921305321118c0a1767fde 100644 (file)
@@ -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 <string>
 #include <sigc++/bind.h>
 #include <gtkmm/stock.h>
@@ -7,7 +26,7 @@
 
 #include "midi_port_dialog.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace PBD;
@@ -17,17 +36,14 @@ using namespace Gtkmm2ext;
 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<string> str = internationalize (PACKAGE, mode_strings);
        set_popdown_strings (port_mode_combo, str);
        port_mode_combo.set_active_text (str.front());