diff options
author | Robin Gareus <robin@gareus.org> | 2013-06-06 21:00:42 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-06-06 21:00:42 +0200 |
commit | ff2273aaa85e4d50421273e4a34a3815ef776c79 (patch) | |
tree | feba4c95a996619a3f32e2ef3b5f724a92a2495a /gtk2_ardour/about.cc | |
parent | 7d8def38f41fff0f6962acc2c56d517110a73598 (diff) |
fix about window close button
Diffstat (limited to 'gtk2_ardour/about.cc')
-rw-r--r-- | gtk2_ardour/about.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/about.cc b/gtk2_ardour/about.cc index db721b6441..280f72a8dc 100644 --- a/gtk2_ardour/about.cc +++ b/gtk2_ardour/about.cc @@ -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 () |