summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_display.cc
diff options
context:
space:
mode:
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2016-08-07 19:44:54 +0200
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2016-08-07 19:44:54 +0200
commitf97696d7f338a203665f4cbe6a4065810bdaaeee (patch)
tree9882c58911c37767915424a12aa2b4da8ca6458f /gtk2_ardour/ardour_display.cc
parent054b347181fc8e3a3970d04e134c4f24e6d2233a (diff)
Make ArdourDisplay a subclass of ArdourDropdown
Diffstat (limited to 'gtk2_ardour/ardour_display.cc')
-rw-r--r--gtk2_ardour/ardour_display.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/gtk2_ardour/ardour_display.cc b/gtk2_ardour/ardour_display.cc
index a682833706..d4c75af7bb 100644
--- a/gtk2_ardour/ardour_display.cc
+++ b/gtk2_ardour/ardour_display.cc
@@ -51,8 +51,6 @@ using namespace std;
ArdourDisplay::ArdourDisplay (Element e)
{
- add_elements(e);
- add_elements(ArdourButton::Menu);
add_elements(ArdourButton::Text);
}
@@ -60,12 +58,6 @@ ArdourDisplay::~ArdourDisplay ()
{
}
-bool
-ArdourDisplay::on_button_press_event (GdkEventButton*)
-{
- _menu.popup (1, gtk_get_current_event_time());
- return true;
-}
bool
ArdourDisplay::on_scroll_event (GdkEventScroll* ev)
@@ -101,10 +93,7 @@ void
ArdourDisplay::add_controllable_preset (const char *txt, float val)
{
using namespace Menu_Helpers;
-
- MenuList& items = _menu.items ();
-
- items.push_back (MenuElem (txt, sigc::bind (sigc::mem_fun(*this, &ArdourDisplay::handle_controllable_preset), val)));
+ AddMenuElem(MenuElem (txt, sigc::bind (sigc::mem_fun(*this, &ArdourDisplay::handle_controllable_preset), val)));
}