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.
This commit is contained in:
Robin Gareus 2022-09-13 02:34:11 +02:00
parent 735ba65a9b
commit 4419992bb7
1 changed files with 4 additions and 0 deletions

View File

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