Replace positioning function with popup helper
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Mon, 15 Aug 2016 23:57:58 +0000 (01:57 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Tue, 16 Aug 2016 23:45:47 +0000 (01:45 +0200)
commit6a985df81efcfbe21d077a66245e2ffc80c76a11
treec4c2d0f4890f9f8eb7ab7d8588dd3be08a9cb009
parent46710a75de4083b5ed4bdfd2b1109c20d8929848
Replace positioning function with popup helper

Because all uses of the function positioning menus anchored to a widget
were as callback argument to Gtk::Menu::popup() where the caller needed
to correctly bind arguments, this led to repeated and a bit obscure code.

Wrap the logic into an helper function that takes care of all that, and
update the callers.
gtk2_ardour/ardour_dropdown.cc
gtk2_ardour/ardour_dropdown.h
gtk2_ardour/generic_pluginui.cc
libs/gtkmm2ext/gtkmm2ext/utils.h
libs/gtkmm2ext/utils.cc