prepare time column in recent session
This commit is contained in:
parent
f1be9114c2
commit
c510d8a49d
|
@ -670,8 +670,12 @@ SessionDialog::redisplay_recent_sessions ()
|
||||||
|
|
||||||
std::string s = Glib::build_filename (dirname, state_file_basename + statefile_suffix);
|
std::string s = Glib::build_filename (dirname, state_file_basename + statefile_suffix);
|
||||||
|
|
||||||
|
GStatBuf gsb;
|
||||||
|
g_stat (s.c_str(), &gsb);
|
||||||
|
|
||||||
row[recent_session_columns.fullpath] = dirname; /* just the dir, but this works too */
|
row[recent_session_columns.fullpath] = dirname; /* just the dir, but this works too */
|
||||||
row[recent_session_columns.tip] = Glib::Markup::escape_text (dirname);
|
row[recent_session_columns.tip] = Glib::Markup::escape_text (dirname);
|
||||||
|
row[recent_session_columns.time_modified] = gsb.st_mtime;
|
||||||
|
|
||||||
if (Session::get_info_from_path (s, sr, sf) == 0) {
|
if (Session::get_info_from_path (s, sr, sf) == 0) {
|
||||||
row[recent_session_columns.sample_rate] = rate_as_string (sr);
|
row[recent_session_columns.sample_rate] = rate_as_string (sr);
|
||||||
|
@ -709,6 +713,8 @@ SessionDialog::redisplay_recent_sessions ()
|
||||||
child_row[recent_session_columns.visible_name] = *i2;
|
child_row[recent_session_columns.visible_name] = *i2;
|
||||||
child_row[recent_session_columns.fullpath] = s;
|
child_row[recent_session_columns.fullpath] = s;
|
||||||
child_row[recent_session_columns.tip] = Glib::Markup::escape_text (dirname);
|
child_row[recent_session_columns.tip] = Glib::Markup::escape_text (dirname);
|
||||||
|
g_stat (s.c_str(), &gsb);
|
||||||
|
row[recent_session_columns.time_modified] = gsb.st_mtime;
|
||||||
|
|
||||||
if (Session::get_info_from_path (s, sr, sf) == 0) {
|
if (Session::get_info_from_path (s, sr, sf) == 0) {
|
||||||
child_row[recent_session_columns.sample_rate] = rate_as_string (sr);
|
child_row[recent_session_columns.sample_rate] = rate_as_string (sr);
|
||||||
|
|
|
@ -115,12 +115,14 @@ class SessionDialog : public ArdourDialog {
|
||||||
add (fullpath);
|
add (fullpath);
|
||||||
add (sample_rate);
|
add (sample_rate);
|
||||||
add (disk_format);
|
add (disk_format);
|
||||||
|
add (time_modified);
|
||||||
}
|
}
|
||||||
Gtk::TreeModelColumn<std::string> visible_name;
|
Gtk::TreeModelColumn<std::string> visible_name;
|
||||||
Gtk::TreeModelColumn<std::string> tip;
|
Gtk::TreeModelColumn<std::string> tip;
|
||||||
Gtk::TreeModelColumn<std::string> fullpath;
|
Gtk::TreeModelColumn<std::string> fullpath;
|
||||||
Gtk::TreeModelColumn<std::string> sample_rate;
|
Gtk::TreeModelColumn<std::string> sample_rate;
|
||||||
Gtk::TreeModelColumn<std::string> disk_format;
|
Gtk::TreeModelColumn<std::string> disk_format;
|
||||||
|
Gtk::TreeModelColumn<int64_t> time_modified;
|
||||||
};
|
};
|
||||||
|
|
||||||
RecentSessionModelColumns recent_session_columns;
|
RecentSessionModelColumns recent_session_columns;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user