#include "ardour/session.h"
#include "ardour/session_state_utils.h"
#include "ardour/session_directory.h"
#include "ardour/session.h"
#include "ardour/session_state_utils.h"
#include "ardour/session_directory.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);
/** 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."));