From 3c813514136e328cfac2bf3bd05468aeec6287dd Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sun, 10 Sep 2017 15:33:12 -0500 Subject: [PATCH] Mixbus needs to show Created-With on the recent sessions list --- gtk2_ardour/session_dialog.cc | 5 +++++ gtk2_ardour/session_dialog.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index 172acef3c8..8ad6e2d388 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -374,7 +374,11 @@ SessionDialog::setup_recent_sessions () recent_session_display.set_model (recent_session_model); recent_session_display.append_column (_("Session Name"), recent_session_columns.visible_name); recent_session_display.append_column (_("Sample Rate"), recent_session_columns.sample_rate); +#ifdef MIXBUS + recent_session_display.append_column (_("Created With"), recent_session_columns.created_with); +#else recent_session_display.append_column (_("File Resolution"), recent_session_columns.disk_format); +#endif recent_session_display.append_column (_("Last Modified"), recent_session_columns.time_formatted); recent_session_display.set_headers_visible (true); recent_session_display.get_selection()->set_mode (SELECTION_SINGLE); @@ -863,6 +867,7 @@ SessionDialog::redisplay_recent_sessions () row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname); } else { row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname + "\n" + string_compose (_("Last modified with: %1"), program_version)); + row[recent_session_columns.created_with] = program_version; } ++session_snapshot_count; diff --git a/gtk2_ardour/session_dialog.h b/gtk2_ardour/session_dialog.h index ff630c2cd5..9d4f08ed97 100644 --- a/gtk2_ardour/session_dialog.h +++ b/gtk2_ardour/session_dialog.h @@ -113,6 +113,7 @@ private: add (fullpath); add (sample_rate); add (disk_format); + add (created_with); add (time_modified); add (time_formatted); } @@ -121,6 +122,7 @@ private: Gtk::TreeModelColumn fullpath; Gtk::TreeModelColumn sample_rate; Gtk::TreeModelColumn disk_format; + Gtk::TreeModelColumn created_with; Gtk::TreeModelColumn time_modified; Gtk::TreeModelColumn time_formatted; };