diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-11-03 04:27:58 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-11-03 04:27:58 +0000 |
commit | d2d243ad08cb9588411ea85c8d08f1d19f427dc3 (patch) | |
tree | ad306fb33c6f76609af48ea6a0a31873115ed5da /gtk2_ardour/editor.cc | |
parent | 45d35d0732e18501762dc7c9bc87b519c2590447 (diff) |
Fixed snapshot dialog annoyance.
Hilight current snapshot in snapshot list with asterisks.
Crash fix in sndfilesource dtor from brianahr. Thanks!
Fixed COREAUDIO compilation.
git-svn-id: svn://localhost/ardour2/trunk@1066 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 68177a1118..32d4f4e658 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -4004,7 +4004,17 @@ Editor::redisplay_snapshots () for (vector<string*>::iterator i = states->begin(); i != states->end(); ++i) { string statename = *(*i); TreeModel::Row row = *(snapshot_display_model->append()); - row[snapshot_display_columns.visible_name] = statename; + + // we don't have a way of changing the rendering in just one TreeView + // cell so just put an asterisk on each side of the name for now. + string display_name; + if (statename == session->snap_name()) { + display_name = "*"+statename+"*"; + } else { + display_name = statename; + } + + row[snapshot_display_columns.visible_name] = display_name; row[snapshot_display_columns.real_name] = statename; } |