using namespace sigc;
using namespace ARDOUR;
+using namespace PBD;
using namespace Gtk;
using namespace Gtkmm2ext;
void
Editor::redisplay_named_selections ()
{
- //GTK2FIX
- //named_selection_display.freeze ();
named_selection_model->clear ();
session->foreach_named_selection (*this, &Editor::add_named_selection_to_named_selection_display);
- //named_selection_display.thaw ();
}
gint
{
ArdourPrompter p;
- p.set_prompt (_("name for chunk:"));
- p.change_labels (_("Create chunk"), _("Forget it"));
+ p.set_prompt (_("Name for Chunk:"));
+ p.add_button (Gtk::Stock::NEW, Gtk::RESPONSE_ACCEPT);
+ p.set_response_sensitive (Gtk::RESPONSE_ACCEPT, false);
+ p.change_labels (_("Create Chunk"), _("Forget it"));
p.show_all ();
switch (p.run ()) {
- case GTK_RESPONSE_ACCEPT:
+ case Gtk::RESPONSE_ACCEPT:
string name;
p.get_result (name);
if (name.length()) {
}
void
-Editor::create_named_selection (string name)
+Editor::create_named_selection (const string & name)
{
if (session == 0) {
return;