13
0

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:
Carl Hetherington 2011-04-19 10:18:21 +00:00
parent 8560c029f0
commit 128980ffd6
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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;