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:
parent
735ba65a9b
commit
4419992bb7
@ -99,6 +99,10 @@ RouteListBase::RouteListBase ()
|
|||||||
_display.set_rules_hint (true);
|
_display.set_rules_hint (true);
|
||||||
_display.set_size_request (100, -1);
|
_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.add (_display);
|
||||||
_scroller.set_policy (POLICY_NEVER, POLICY_AUTOMATIC);
|
_scroller.set_policy (POLICY_NEVER, POLICY_AUTOMATIC);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user