mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Drop "_snapshot" from MixerSnapshotManager methods
Since remove and rename imply that it's working on a snapshot, these are dropped for readability
This commit is contained in:
parent
9a4281befa
commit
f428e51a8c
4 changed files with 8 additions and 8 deletions
|
|
@ -507,7 +507,7 @@ void MixerSnapshotList::rename_snapshot(TreeModel::const_iterator& iter)
|
|||
}
|
||||
}
|
||||
|
||||
if(_session->snapshot_manager().rename_snapshot(snapshot, new_name)) {
|
||||
if(_session->snapshot_manager().rename(snapshot, new_name)) {
|
||||
if (new_name.length() > 45) {
|
||||
new_name = new_name.substr(0, 45);
|
||||
new_name.append("...");
|
||||
|
|
@ -602,7 +602,7 @@ bool MixerSnapshotList::remove_row(Gtk::TreeModel::const_iterator& iter)
|
|||
MixerSnapshot* snapshot = (*iter)[_columns.snapshot];
|
||||
_snapshot_model->erase((*iter));
|
||||
if(snapshot) {
|
||||
_session->snapshot_manager().remove_snapshot(snapshot);
|
||||
_session->snapshot_manager().remove(snapshot);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -887,7 +887,7 @@ RouteTemplateManager::rename_template (TreeModel::iterator& item, const Glib::us
|
|||
SnapshotList sl = _session->snapshot_manager().get_global_snapshots();
|
||||
for(SnapshotList::const_iterator it = sl.begin(); it != sl.end(); it++) {
|
||||
if(old_name == (*it)->get_label()) {
|
||||
_session->snapshot_manager().rename_snapshot((*it), new_name);
|
||||
_session->snapshot_manager().rename((*it), new_name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -919,7 +919,7 @@ RouteTemplateManager::delete_selected_template ()
|
|||
SnapshotList sl = _session->snapshot_manager().get_global_snapshots();
|
||||
for(SnapshotList::const_iterator it = sl.begin(); it != sl.end(); it++) {
|
||||
if(file_path == (*it)->get_path()) {
|
||||
_session->snapshot_manager().remove_snapshot((*it));
|
||||
_session->snapshot_manager().remove((*it));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ public:
|
|||
|
||||
void find_templates(std::vector<ARDOUR::TemplateInfo>&, bool);
|
||||
|
||||
bool rename_snapshot(MixerSnapshot*, const std::string&);
|
||||
bool remove_snapshot(MixerSnapshot*);
|
||||
bool rename(MixerSnapshot*, const std::string&);
|
||||
bool remove(MixerSnapshot*);
|
||||
|
||||
bool erase(ARDOUR::MixerSnapshot*);
|
||||
bool move(ARDOUR::MixerSnapshot*, const std::string&);
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ bool MixerSnapshotManager::demote(MixerSnapshot* snapshot) {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool MixerSnapshotManager::rename_snapshot(MixerSnapshot* snapshot, const string& new_name) {
|
||||
bool MixerSnapshotManager::rename(MixerSnapshot* snapshot, const string& new_name) {
|
||||
if(!snapshot) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -223,7 +223,7 @@ bool MixerSnapshotManager::rename_snapshot(MixerSnapshot* snapshot, const string
|
|||
return true;
|
||||
}
|
||||
|
||||
bool MixerSnapshotManager::remove_snapshot(MixerSnapshot* snapshot) {
|
||||
bool MixerSnapshotManager::remove(MixerSnapshot* snapshot) {
|
||||
if(!snapshot) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue