mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
parse modified-with for up to 5 snapshots.
This commit is contained in:
parent
10d87ceb83
commit
da081e0108
1 changed files with 29 additions and 21 deletions
|
|
@ -793,6 +793,7 @@ SessionDialog::redisplay_recent_sessions ()
|
||||||
int64_t most_recent = 0;
|
int64_t most_recent = 0;
|
||||||
|
|
||||||
// add the children
|
// add the children
|
||||||
|
int kidcount = 0;
|
||||||
for (std::vector<std::string>::iterator i2 = state_file_names.begin(); i2 != state_file_names.end(); ++i2) {
|
for (std::vector<std::string>::iterator i2 = state_file_names.begin(); i2 != state_file_names.end(); ++i2) {
|
||||||
|
|
||||||
s = Glib::build_filename (dirname, *i2 + statefile_suffix);
|
s = Glib::build_filename (dirname, *i2 + statefile_suffix);
|
||||||
|
|
@ -810,8 +811,11 @@ SessionDialog::redisplay_recent_sessions ()
|
||||||
if (gsb.st_mtime > most_recent) {
|
if (gsb.st_mtime > most_recent) {
|
||||||
most_recent = gsb.st_mtime;
|
most_recent = gsb.st_mtime;
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
|
if (++kidcount < 5) {
|
||||||
|
// parse "modified with" for the first 5 snapshots
|
||||||
if (Session::get_info_from_path (s, sr, sf, program_version) == 0) {
|
if (Session::get_info_from_path (s, sr, sf, program_version) == 0) {
|
||||||
|
#if 0
|
||||||
child_row[recent_session_columns.sample_rate] = rate_as_string (sr);
|
child_row[recent_session_columns.sample_rate] = rate_as_string (sr);
|
||||||
switch (sf) {
|
switch (sf) {
|
||||||
case FormatFloat:
|
case FormatFloat:
|
||||||
|
|
@ -824,6 +828,10 @@ SessionDialog::redisplay_recent_sessions ()
|
||||||
child_row[recent_session_columns.disk_format] = _("16-bit");
|
child_row[recent_session_columns.disk_format] = _("16-bit");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
child_row[recent_session_columns.sample_rate] = "";
|
||||||
|
child_row[recent_session_columns.disk_format] = "";
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
child_row[recent_session_columns.sample_rate] = "??";
|
child_row[recent_session_columns.sample_rate] = "??";
|
||||||
child_row[recent_session_columns.disk_format] = "--";
|
child_row[recent_session_columns.disk_format] = "--";
|
||||||
|
|
@ -831,10 +839,10 @@ SessionDialog::redisplay_recent_sessions ()
|
||||||
if (!program_version.empty()) {
|
if (!program_version.empty()) {
|
||||||
child_row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (string_compose (_("Last modified with: %1"), program_version));
|
child_row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (string_compose (_("Last modified with: %1"), program_version));
|
||||||
}
|
}
|
||||||
#else
|
} else {
|
||||||
child_row[recent_session_columns.sample_rate] = "";
|
child_row[recent_session_columns.sample_rate] = "";
|
||||||
child_row[recent_session_columns.disk_format] = "";
|
child_row[recent_session_columns.disk_format] = "";
|
||||||
#endif
|
}
|
||||||
|
|
||||||
++session_snapshot_count;
|
++session_snapshot_count;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue