13
0

fix #5290 for 'Session|Recent' dialog as well as startup dialog.

reinstate tooltips for collapsed rows in recent sessions too.


git-svn-id: svn://localhost/ardour2/branches/3.0@13972 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Colin Fletcher 2013-01-22 18:27:13 +00:00
parent 0058b2d866
commit 2fee2bc60c
3 changed files with 6 additions and 1 deletions

View File

@ -1188,6 +1188,7 @@ ARDOUR_UI::redisplay_recent_sessions ()
row[recent_session_columns.visible_name] = Glib::path_get_basename (fullpath);
row[recent_session_columns.fullpath] = fullpath;
row[recent_session_columns.tip] = Glib::Markup::escape_text (fullpath);
if (state_file_names.size() > 1) {
@ -1201,11 +1202,12 @@ ARDOUR_UI::redisplay_recent_sessions ()
child_row[recent_session_columns.visible_name] = *i2;
child_row[recent_session_columns.fullpath] = fullpath;
child_row[recent_session_columns.tip] = Glib::Markup::escape_text (fullpath);
}
}
}
recent_session_display.set_tooltip_column(1); // recent_session_columns.fullpath
recent_session_display.set_tooltip_column(1); // recent_session_columns.tip
recent_session_display.set_model (recent_session_model);
}

View File

@ -466,9 +466,11 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
struct RecentSessionModelColumns : public Gtk::TreeModel::ColumnRecord {
RecentSessionModelColumns() {
add (visible_name);
add (tip);
add (fullpath);
}
Gtk::TreeModelColumn<std::string> visible_name;
Gtk::TreeModelColumn<std::string> tip;
Gtk::TreeModelColumn<std::string> fullpath;
};

View File

@ -958,6 +958,7 @@ ArdourStartup::redisplay_recent_sessions ()
row[recent_session_columns.visible_name] = Glib::path_get_basename (fullpath);
row[recent_session_columns.fullpath] = fullpath;
row[recent_session_columns.tip] = Glib::Markup::escape_text (fullpath);
++session_snapshot_count;