summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-01-11 01:15:17 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-11 01:17:42 +0100
commit1f14a9d9a53f86124b657dfe3a1ce6c7786cbaf4 (patch)
treead53cd70b453a9cb44ae24ab63f150550137ea6b /gtk2_ardour/port_matrix.cc
parenta883afbd64c3b6703445fca64aa740ac1ffdde06 (diff)
Scale the port matrix with the GUI/font-scaling setting.
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r--gtk2_ardour/port_matrix.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc
index 50aa480127..08000d9122 100644
--- a/gtk2_ardour/port_matrix.cc
+++ b/gtk2_ardour/port_matrix.cc
@@ -47,6 +47,7 @@
#include "port_matrix_body.h"
#include "port_matrix_component.h"
#include "utils.h"
+#include "ui_config.h"
#include "pbd/i18n.h"
@@ -113,6 +114,8 @@ PortMatrix::PortMatrix (Window* parent, Session* session, DataType type)
_vspacer.show ();
_vnotebook.show ();
_hnotebook.show ();
+
+ UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &PortMatrix::parameter_changed));
}
PortMatrix::~PortMatrix ()
@@ -1256,3 +1259,11 @@ PortMatrix::key_press (GdkEventKey* k)
return false;
}
+
+void
+PortMatrix::parameter_changed (string p)
+{
+ if (p == "font-scale") {
+ setup ();
+ }
+}