diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2019-10-31 14:38:26 +0100 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2019-10-31 14:38:26 +0100 |
commit | 3cae11936f2cbd636eb5251ddd1abfb98da231ff (patch) | |
tree | 2979a4407a884073de600acb37d67fd448f21b80 /libs/gtkmm2ext | |
parent | 016db85fa1178217866551f4e2d203c2815693bb (diff) |
Highlight the currently selected item in ArdourDropdown & co
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/utils.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/utils.cc b/libs/gtkmm2ext/utils.cc index 02ba1cd691..87a97c77c9 100644 --- a/libs/gtkmm2ext/utils.cc +++ b/libs/gtkmm2ext/utils.cc @@ -410,6 +410,7 @@ _position_menu_anchored (int& x, int& y, bool& push_in, const Label* label_widget = dynamic_cast<const Label*>(i->get_child()); if (label_widget && selected == ((std::string) label_widget->get_label())) { offset += (i->size_request().height - allocation.get_height()) / 2; + menu->select_item(*i); break; } offset += i->size_request().height; |