Change Cancel button in Import Dialog to Close button
authorTim Mayberry <mojofunk@gmail.com>
Thu, 3 Sep 2015 12:32:53 +0000 (22:32 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 3 Sep 2015 12:32:53 +0000 (22:32 +1000)
This button closes the window, it doesn't actually cancel any importing that
has taken place and cancelling the import in progress is done by the Cancel
button in popup progress dialog

gtk2_ardour/sfdb_ui.cc
gtk2_ardour/sfdb_ui.h

index 1ab1faa206844d1d7ac9b6274fba37f8dafaf275..2874f935839826c29bf4faa98791e206978c05c4 100644 (file)
@@ -555,7 +555,7 @@ SoundFileBrowser::SoundFileBrowser (string title, ARDOUR::Session* s, bool persi
        , _status (0)
        , _done (false)
        , ok_button (Stock::OK)
-       , cancel_button (Stock::CANCEL)
+       , close_button (Stock::CLOSE)
        , apply_button (Stock::APPLY)
        , gm (0)
 {
@@ -724,8 +724,8 @@ SoundFileBrowser::SoundFileBrowser (string title, ARDOUR::Session* s, bool persi
        Gtk::HButtonBox* button_box = manage (new HButtonBox);
 
        button_box->set_layout (BUTTONBOX_END);
-       button_box->pack_start (cancel_button, false, false);
-       cancel_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &SoundFileBrowser::do_something), RESPONSE_CANCEL));
+       button_box->pack_start (close_button, false, false);
+       close_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &SoundFileBrowser::do_something), RESPONSE_CLOSE));
        if (persistent) {
                button_box->pack_start (apply_button, false, false);
                apply_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &SoundFileBrowser::do_something), RESPONSE_APPLY));
@@ -736,7 +736,7 @@ SoundFileBrowser::SoundFileBrowser (string title, ARDOUR::Session* s, bool persi
 
        Gtkmm2ext::UI::instance()->set_tip (ok_button, _("Press to import selected files and close this window"));
        Gtkmm2ext::UI::instance()->set_tip (apply_button, _("Press to import selected files and leave this window open"));
-       Gtkmm2ext::UI::instance()->set_tip (cancel_button, _("Press to close this window without importing any files"));
+       Gtkmm2ext::UI::instance()->set_tip (close_button, _("Press to close this window without importing any files"));
 
        vpacker.pack_end (*button_box, false, false);
 
@@ -1955,7 +1955,7 @@ SoundFileOmega::do_something (int action)
 {
        SoundFileBrowser::do_something (action);
 
-       if (action == RESPONSE_CANCEL) {
+       if (action == RESPONSE_CLOSE) {
                hide ();
                return;
        }
index 54314e6f72c601398568976f0825e2a31c621cfa..c8aaa03d0e277286a2b1b54ba1a96364a03f55a6 100644 (file)
@@ -214,7 +214,7 @@ class SoundFileBrowser : public ArdourWindow
        Gtk::VBox vpacker;
 
        Gtk::Button ok_button;
-       Gtk::Button cancel_button;
+       Gtk::Button close_button;
        Gtk::Button apply_button;
 
        static std::string persistent_folder;