fix about window close button
authorRobin Gareus <robin@gareus.org>
Thu, 6 Jun 2013 19:00:42 +0000 (21:00 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 6 Jun 2013 19:00:42 +0000 (21:00 +0200)
gtk2_ardour/about.cc

index db721b64411b70b45e6c75fe93367fc13ef14c88..280f72a8dcb46c434c56a589f741496bd2a65d5c 100644 (file)
@@ -591,6 +591,11 @@ About::About ()
        get_action_area()->add (*config_button);
        get_action_area()->reorder_child (*config_button, 0);
        config_button->signal_clicked().connect (mem_fun (*this, &About::show_config_info));
+
+       Gtk::Button *btn = static_cast<Gtk::Button*>(get_widget_for_response(Gtk::RESPONSE_CANCEL));
+       if (btn) {
+               btn->signal_clicked().connect(sigc::mem_fun(static_cast<Gtk::Window*>(this), &Gtk::Window::hide));
+       }
 }
 
 About::~About ()