This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "ardour/session_state_utils.h"
#include "ardour/session_directory.h"
#include "editor_snapshots.h"
#include "ardour_ui.h"
#include "i18n.h"
#include "ardour/session_state_utils.h"
#include "ardour/session_directory.h"
#include "editor_snapshots.h"
#include "ardour_ui.h"
#include "i18n.h"
_model = ListStore::create (_columns);
_display.set_model (_model);
_display.append_column (X_("snapshot"), _columns.visible_name);
_model = ListStore::create (_columns);
_display.set_model (_model);
_display.append_column (X_("snapshot"), _columns.visible_name);
_display.set_size_request (75, -1);
_display.set_headers_visible (false);
_display.set_reorderable (false);
_scroller.add (_display);
_scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
_display.set_size_request (75, -1);
_display.set_headers_visible (false);
_display.set_reorderable (false);
_scroller.add (_display);
_scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
- _display.get_selection()->signal_changed().connect (mem_fun(*this, &EditorSnapshots::selection_changed));
- _display.signal_button_press_event().connect (mem_fun (*this, &EditorSnapshots::button_press), false);
+ _display.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &EditorSnapshots::selection_changed));
+ _display.signal_button_press_event().connect (sigc::mem_fun (*this, &EditorSnapshots::button_press), false);
if (_display.get_selection()->count_selected_rows() > 0) {
TreeModel::iterator i = _display.get_selection()->get_selected();
if (_display.get_selection()->count_selected_rows() > 0) {
TreeModel::iterator i = _display.get_selection()->get_selected();
/** Pop up the snapshot display context menu.
* @param button Button used to open the menu.
* @param time Menu open time.
/** Pop up the snapshot display context menu.
* @param button Button used to open the menu.
* @param time Menu open time.
- add_item_with_sensitivity (items, MenuElem (_("Remove"), bind (mem_fun (*this, &EditorSnapshots::remove), snapshot_name)), modification_allowed);
+ add_item_with_sensitivity (items, MenuElem (_("Remove"), sigc::bind (sigc::mem_fun (*this, &EditorSnapshots::remove), snapshot_name)), modification_allowed);
- add_item_with_sensitivity (items, MenuElem (_("Rename"), bind (mem_fun (*this, &EditorSnapshots::rename), snapshot_name)), modification_allowed);
+ add_item_with_sensitivity (items, MenuElem (_("Rename..."), sigc::bind (sigc::mem_fun (*this, &EditorSnapshots::rename), snapshot_name)), modification_allowed);
prompter.add_button (Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
prompter.set_prompt (_("New name of snapshot"));
prompter.set_initial_text (old_name);
prompter.add_button (Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
prompter.set_prompt (_("New name of snapshot"));
prompter.set_initial_text (old_name);
choices.push_back (_("No, do nothing."));
choices.push_back (_("Yes, remove it."));
choices.push_back (_("No, do nothing."));
choices.push_back (_("Yes, remove it."));
string display_name;
display_name = statename;
if (statename == _session->snap_name()) {
_display.get_selection()->select(row);
string display_name;
display_name = statename;
if (statename == _session->snap_name()) {
_display.get_selection()->select(row);