From 3cae11936f2cbd636eb5251ddd1abfb98da231ff Mon Sep 17 00:00:00 2001 From: "Julien \"_FrnchFrgg_\" RIVAUD" Date: Thu, 31 Oct 2019 14:38:26 +0100 Subject: [PATCH] Highlight the currently selected item in ArdourDropdown & co --- libs/gtkmm2ext/utils.cc | 1 + 1 file changed, 1 insertion(+) 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(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;