summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-12-14 23:31:24 +0100
committerRobin Gareus <robin@gareus.org>2019-12-14 23:44:01 +0100
commit2b55d6dce3ded525731a6825bed658bca344bd28 (patch)
tree560e377bef5328f8b3e4cd73a172c5c7451913d1 /gtk2_ardour/port_matrix.cc
parent901bf1ab80d7b7a74f7e703c205a34c6528f4c28 (diff)
First batch of MessageDialog replacements
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r--gtk2_ardour/port_matrix.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc
index f6739b5395..50aa480127 100644
--- a/gtk2_ardour/port_matrix.cc
+++ b/gtk2_ardour/port_matrix.cc
@@ -22,6 +22,7 @@
*/
#include <iostream>
+
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/adjustment.h>
#include <gtkmm/label.h>
@@ -30,21 +31,25 @@
#include <gtkmm/menu_elems.h>
#include <gtkmm/window.h>
#include <gtkmm/stock.h>
-#include <gtkmm/messagedialog.h>
+
#include "ardour/bundle.h"
#include "ardour/types.h"
#include "ardour/session.h"
#include "ardour/route.h"
#include "ardour/audioengine.h"
+
#include "gtkmm2ext/utils.h"
+
+#include "ardour_dialog.h"
+#include "ardour_message.h"
+#include "gui_thread.h"
#include "port_matrix.h"
#include "port_matrix_body.h"
#include "port_matrix_component.h"
-#include "ardour_dialog.h"
-#include "pbd/i18n.h"
-#include "gui_thread.h"
#include "utils.h"
+#include "pbd/i18n.h"
+
using namespace std;
using namespace Gtk;
using namespace ARDOUR;
@@ -733,7 +738,7 @@ PortMatrix::add_channel (boost::shared_ptr<Bundle> b, DataType t)
if (io) {
int const r = io->add_port ("", this, t);
if (r == -1) {
- Gtk::MessageDialog msg (_("It is not possible to add a port here."));
+ ArdourMessageDialog msg (_("It is not possible to add a port here."));
msg.set_title (_("Cannot add port"));
msg.run ();
}