X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Flocation_ui.cc;h=c62c7a2e90d249b1b7d7c1b729fd76a4b18b29cf;hb=fe49c8de182d40528a27b84d5530698f438de51d;hp=564cc4dca29296d3cdaf8a37c63ca071569491b0;hpb=fb45ffea71d345ced0cfbb12b9dcd89ecb1e8dbf;p=ardour.git diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc index 564cc4dca2..c62c7a2e90 100644 --- a/gtk2_ardour/location_ui.cc +++ b/gtk2_ardour/location_ui.cc @@ -575,15 +575,12 @@ LocationUI::LocationUI () set_wmclass(_("ardour_locations"), "Ardour"); set_name ("LocationWindow"); - signal_delete_event().connect (bind (ptr_fun (just_hide_it), static_cast(this))); - - add (location_hpacker); + get_vbox()->pack_start (location_hpacker); location_vpacker.set_border_width (10); location_vpacker.set_spacing (5); - location_vpacker.pack_start (loop_edit_row, false, false); location_vpacker.pack_start (punch_edit_row, false, false); @@ -857,7 +854,13 @@ LocationUI::session_gone() punch_edit_row.set_session (0); punch_edit_row.set_location (0); - - ArdourDialog::session_gone(); + + ArdourDialog::session_gone (); } +bool +LocationUI::on_delete_event (GdkEventAny* ev) +{ + hide (); + return true; +}