remove close buttons from Bundle Manager (rely on WM provided button)
authorRobin Gareus <robin@gareus.org>
Sun, 21 Aug 2016 20:58:52 +0000 (22:58 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 21 Aug 2016 21:02:37 +0000 (23:02 +0200)
gtk2_ardour/bundle_manager.cc

index 2c44a62a342bc4606e1eb11c21137b1c5b4a3280..3ae74d3a2c818dffdfefee3110ad2d4c3e29ea35 100644 (file)
@@ -218,7 +218,6 @@ BundleEditor::BundleEditor (Session* session, boost::shared_ptr<UserBundle> bund
        get_vbox()->pack_start (_matrix);
        get_vbox()->set_spacing (4);
 
        get_vbox()->pack_start (_matrix);
        get_vbox()->set_spacing (4);
 
-       add_button (Gtk::Stock::CLOSE, Gtk::RESPONSE_ACCEPT);
        show_all ();
 
        signal_key_press_event().connect (sigc::mem_fun (_matrix, &BundleEditorMatrix::key_press));
        show_all ();
 
        signal_key_press_event().connect (sigc::mem_fun (_matrix, &BundleEditorMatrix::key_press));
@@ -310,9 +309,6 @@ BundleManager::BundleManager (Session* session)
                sigc::mem_fun (*this, &BundleManager::row_activated)
                );
 
                sigc::mem_fun (*this, &BundleManager::row_activated)
                );
 
-       Gtk::Button* close_but = add_button (Gtk::Stock::CLOSE, Gtk::RESPONSE_ACCEPT);
-       close_but->signal_clicked ().connect (sigc::mem_fun (*this, &Gtk::Window::hide));
-
        set_button_sensitivity ();
 
        show_all ();
        set_button_sensitivity ();
 
        show_all ();