diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-21 13:24:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-21 13:24:38 +0000 |
commit | 2e42cc8868ffa69da9bd948d0d82ff2c27a19c89 (patch) | |
tree | 28c1f261d625c8a6815c0ae9ea14b69bccf31a8c /gtk2_ardour/startup.cc | |
parent | 1f9b0a86bd577fa72cebb891c749f5422b00599e (diff) |
fix gtk errors caused by using non-escaped paths in a column used as a tooltip (which must be set_markup()-safe (fixes #5290)
git-svn-id: svn://localhost/ardour2/branches/3.0@13944 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/startup.cc')
-rw-r--r-- | gtk2_ardour/startup.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/startup.cc b/gtk2_ardour/startup.cc index b46a4169b1..91e48c15bc 100644 --- a/gtk2_ardour/startup.cc +++ b/gtk2_ardour/startup.cc @@ -974,19 +974,19 @@ ArdourStartup::redisplay_recent_sessions () // add the children for (std::vector<std::string>::iterator i2 = state_file_names.begin(); - i2 != state_file_names.end(); ++i2) - { + i2 != state_file_names.end(); ++i2) { Gtk::TreeModel::Row child_row = *(recent_session_model->append (row.children())); 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); ++session_snapshot_count; } } } - 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); return session_snapshot_count; // return rs.size(); |