From 4419992bb7c451c5c5bbb30dc8a7ded89258aee3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 13 Sep 2022 02:34:11 +0200 Subject: [PATCH] Add gtk-treeview DnD workaround to Track/Bus List This was lost when refactoring the editor lists into dedicated Region, Source and Route lists. A patched version of gtk allows to initiate a drag, rather than a name edit. --- gtk2_ardour/route_list_base.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/route_list_base.cc b/gtk2_ardour/route_list_base.cc index 30eaf74805..e9f4746108 100644 --- a/gtk2_ardour/route_list_base.cc +++ b/gtk2_ardour/route_list_base.cc @@ -99,6 +99,10 @@ RouteListBase::RouteListBase () _display.set_rules_hint (true); _display.set_size_request (100, -1); + /* Try to prevent single mouse presses from initiating edits. + * This relies on a hack in gtktreeview.c:gtk_treeview_button_press() */ + _display.set_data ("mouse-edits-require-mod1", (gpointer)0x1); + _scroller.add (_display); _scroller.set_policy (POLICY_NEVER, POLICY_AUTOMATIC);