mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
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
2 changed files with 6 additions and 3 deletions
|
|
@ -3545,13 +3545,16 @@ Editor::zoom_focus_selection_done ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
bool
|
||||||
Editor::edit_controls_button_release (GdkEventButton* ev)
|
Editor::edit_controls_button_release (GdkEventButton* ev)
|
||||||
{
|
{
|
||||||
if (Keyboard::is_context_menu_event (ev)) {
|
if (Keyboard::is_context_menu_event (ev)) {
|
||||||
ARDOUR_UI::instance()->add_route (this);
|
ARDOUR_UI::instance()->add_route (this);
|
||||||
|
} else if (ev->button == 1) {
|
||||||
|
selection->clear_tracks ();
|
||||||
}
|
}
|
||||||
return TRUE;
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
|
|
|
||||||
|
|
@ -960,7 +960,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
||||||
|
|
||||||
bool track_canvas_map_handler (GdkEventAny*);
|
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_left_menu;
|
||||||
Gtk::Menu *edit_controls_right_menu;
|
Gtk::Menu *edit_controls_right_menu;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue