pay some attention to the special guest of the night: KDE window stacking
[ardour.git] / gtk2_ardour / ardour_dropdown.cc
index 741db8c2ce3fc85466374511b12db8a033c37396..6c527f2d27b356721bbc7cd71ab5c51fa24ba5db 100644 (file)
@@ -67,17 +67,11 @@ ArdourDropdown::menu_size_request(Requisition *req) {
        req->width = max(req->width, get_allocation().get_width());
 }
 
-void
-ArdourDropdown::position_menu(int& x, int& y, bool& push_in) {
-    Gtkmm2ext::position_menu_anchored (&_menu, this, get_text(), x, y, push_in);
-}
-
 bool
 ArdourDropdown::on_button_press_event (GdkEventButton* ev)
 {
        if (ev->type == GDK_BUTTON_PRESS) {
-               _menu.popup (sigc::mem_fun(this, &ArdourDropdown::position_menu),
-                            1, ev->time);
+               Gtkmm2ext::anchored_menu_popup(&_menu, this, get_text(), 1, ev->time);
        }
        return true;
 }