}
void
-EditorSnapshots::connect_to_session (Session* s)
+EditorSnapshots::set_session (Session* s)
{
- EditorComponent::connect_to_session (s);
+ SessionHandlePtr::set_session (s);
redisplay ();
}
TreeModel::iterator i = _display.get_selection()->get_selected();
- Glib::ustring snap_name = (*i)[_columns.real_name];
+ std::string snap_name = (*i)[_columns.real_name];
if (snap_name.length() == 0) {
return;
* @snapshot_name Name of the snapshot that the menu click was over.
*/
void
-EditorSnapshots::popup_context_menu (int button, int32_t time, Glib::ustring snapshot_name)
+EditorSnapshots::popup_context_menu (int button, int32_t time, std::string snapshot_name)
{
using namespace Menu_Helpers;
}
void
-EditorSnapshots::rename (Glib::ustring old_name)
+EditorSnapshots::rename (std::string old_name)
{
ArdourPrompter prompter(true);
void
-EditorSnapshots::remove (Glib::ustring name)
+EditorSnapshots::remove (std::string name)
{
vector<string> choices;
- std::string prompt = string_compose (_("Do you really want to remove snapshot \"%1\" ?\n(cannot be undone)"), name);
+ std::string prompt = string_compose (_("Do you really want to remove snapshot \"%1\" ?\n(which cannot be undone)"), name);
choices.push_back (_("No, do nothing."));
choices.push_back (_("Yes, remove it."));
- Gtkmm2ext::Choice prompter (prompt, choices);
+ Gtkmm2ext::Choice prompter (_("Remove snapshot"), prompt, choices);
if (prompter.run () == 1) {
_session->remove_state (name);