X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fio_selector.cc;h=99050cc34ba0a5a75c728d2cf1da11cdd6004b1c;hb=5d2a03578c3f0d0f39562546bd3e4be9be08d2d4;hp=544963f666dfd6a6f689d64422c82a8b66cc4979;hpb=e2f0c5f91e2579c41d8efc9495b6ebac31a61ba3;p=ardour.git diff --git a/gtk2_ardour/io_selector.cc b/gtk2_ardour/io_selector.cc index 544963f666..99050cc34b 100644 --- a/gtk2_ardour/io_selector.cc +++ b/gtk2_ardour/io_selector.cc @@ -33,9 +33,10 @@ #include "io_selector.h" #include "utils.h" #include "gui_thread.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace ARDOUR; +using namespace ARDOUR_UI_UTILS; using namespace Gtk; IOSelector::IOSelector (Gtk::Window* p, ARDOUR::Session* session, boost::shared_ptr io) @@ -140,15 +141,15 @@ IOSelector::set_state (ARDOUR::BundleChannel c[2], bool s) return; } - if (s) { + if (s) { if (!f->connected_to (*j)) { _io->connect (f, *j, 0); } - } else { + } else { if (f->connected_to (*j)) { _io->disconnect (f, *j, 0); } - } + } } } } @@ -235,8 +236,7 @@ bool IOSelectorWindow::wm_delete (GdkEventAny* /*event*/) { _selector.Finished (IOSelector::Accepted); - hide (); - return true; + return false; } @@ -259,7 +259,7 @@ void IOSelectorWindow::io_name_changed (void*) { ENSURE_GUI_THREAD (*this, &IOSelectorWindow::io_name_changed, src) - + std::string title; if (!_selector.find_inputs_for_io_outputs()) {