summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-06-01 11:57:08 +0200
committerRobin Gareus <robin@gareus.org>2017-06-01 11:57:08 +0200
commit4b0e2ad6827821f7419bc65bb755d6292e5e332e (patch)
tree5f8109f97b1d1a8a9c9945f3372a4fd5f6cc5434
parent82cb046fa3f9cb911dc6a2ab192640683a6c57c9 (diff)
Remove "Close" button from import-dialog (prefer WM close button)
-rw-r--r--gtk2_ardour/sfdb_ui.cc4
-rw-r--r--gtk2_ardour/sfdb_ui.h1
2 files changed, 0 insertions, 5 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc
index 6a5d933f5e..c1662515ce 100644
--- a/gtk2_ardour/sfdb_ui.cc
+++ b/gtk2_ardour/sfdb_ui.cc
@@ -606,7 +606,6 @@ SoundFileBrowser::SoundFileBrowser (string title, ARDOUR::Session* s, bool persi
, _status (0)
, _done (false)
, import_button (_("Import"))
- , close_button (Stock::CLOSE)
, gm (0)
{
@@ -782,14 +781,11 @@ 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 (close_button, false, false);
- close_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &SoundFileBrowser::do_something), RESPONSE_CLOSE));
button_box->pack_start (import_button, false, false);
import_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &SoundFileBrowser::do_something), RESPONSE_OK));
Gtkmm2ext::UI::instance()->set_tip (import_button, _("Press to import selected files"));
- Gtkmm2ext::UI::instance()->set_tip (close_button, _("Press to close this window without importing any files"));
vpacker.pack_end (*button_box, false, false);
diff --git a/gtk2_ardour/sfdb_ui.h b/gtk2_ardour/sfdb_ui.h
index 6c32474a91..be734cfb82 100644
--- a/gtk2_ardour/sfdb_ui.h
+++ b/gtk2_ardour/sfdb_ui.h
@@ -216,7 +216,6 @@ class SoundFileBrowser : public ArdourWindow
Gtk::VBox vpacker;
Gtk::Button import_button;
- Gtk::Button close_button;
static std::string persistent_folder;