Add API to set select item from ArdourDropdown
authorRobin Gareus <robin@gareus.org>
Sun, 20 Oct 2019 19:21:57 +0000 (21:21 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 20 Oct 2019 19:21:57 +0000 (21:21 +0200)
commit88fc226107fac56481b2b429865d93a526b5ab04
tree5970871b48aa70685a9b9febf9677e1104fb1b4d
parent20daca929001c27de3b4f238301b8b8af1beefc6
Add API to set select item from ArdourDropdown

This fixes an issue with scroll-wheel control which uses `get_active()`.
It work around an issue with gtkmm:

 const MenuItem* get_active () const
 void set_active (guint index)

and MenuList::activate_item() not emitting activate_item().
libs/widgets/ardour_dropdown.cc
libs/widgets/widgets/ardour_dropdown.h