summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-03-30 00:14:25 +0200
committerRobin Gareus <robin@gareus.org>2020-03-30 00:14:25 +0200
commite43cc9c7bbe8ca05f6a130e5a71bc6f7e19a2d03 (patch)
tree7f9b9ca064a28cf7a86bad8418eb483a79489717 /gtk2_ardour/ardour_ui.cc
parent96b2b359639df7b35063ab720d9dd5c68714b75c (diff)
Statusbar: add session-path display
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 841f3198d3..e8524c6a4d 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -1276,6 +1276,19 @@ ARDOUR_UI::update_format ()
}
void
+ARDOUR_UI::update_path_label ()
+{
+ stringstream s;
+ s << X_("<span weight=\"ultralight\">") << _("Path") << X_("</span>: ");
+ if (_session) {
+ s << Gtkmm2ext::markup_escape_text (_session->path());
+ } else {
+ s << "-";
+ }
+ session_path_label.set_markup (s.str ());
+}
+
+void
ARDOUR_UI::update_cpu_load ()
{
const unsigned int x = _session ? _session->get_xrun_count () : 0;