Fix the return type for the edit_controls_button_release signal handler. Make a click in the empty space below track controls clear the track selection (#3993).
git-svn-id: svn://localhost/ardour2/branches/3.0@9371 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8560c029f0
commit
128980ffd6
|
@ -3545,13 +3545,16 @@ Editor::zoom_focus_selection_done ()
|
|||
}
|
||||
}
|
||||
|
||||
gint
|
||||
bool
|
||||
Editor::edit_controls_button_release (GdkEventButton* ev)
|
||||
{
|
||||
if (Keyboard::is_context_menu_event (ev)) {
|
||||
ARDOUR_UI::instance()->add_route (this);
|
||||
} else if (ev->button == 1) {
|
||||
selection->clear_tracks ();
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
gint
|
||||
|
|
|
@ -960,7 +960,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
|
||||
bool track_canvas_map_handler (GdkEventAny*);
|
||||
|
||||
gint edit_controls_button_release (GdkEventButton*);
|
||||
bool edit_controls_button_release (GdkEventButton*);
|
||||
Gtk::Menu *edit_controls_left_menu;
|
||||
Gtk::Menu *edit_controls_right_menu;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user