summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mono_panner.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/mono_panner.cc')
-rw-r--r--gtk2_ardour/mono_panner.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc
index 8ba9c411bd..8b28d7f1a4 100644
--- a/gtk2_ardour/mono_panner.cc
+++ b/gtk2_ardour/mono_panner.cc
@@ -38,6 +38,7 @@
#include "ardour_ui.h"
#include "global_signals.h"
#include "mono_panner.h"
+#include "mono_panner_editor.h"
#include "rgb_macros.h"
#include "utils.h"
@@ -246,6 +247,10 @@ MonoPanner::on_expose_event (GdkEventExpose*)
bool
MonoPanner::on_button_press_event (GdkEventButton* ev)
{
+ if (PannerInterface::on_button_press_event (ev)) {
+ return true;
+ }
+
drag_start_x = ev->x;
last_drag_x = ev->x;
@@ -304,6 +309,10 @@ MonoPanner::on_button_press_event (GdkEventButton* ev)
bool
MonoPanner::on_button_release_event (GdkEventButton* ev)
{
+ if (PannerInterface::on_button_release_event (ev)) {
+ return true;
+ }
+
if (ev->button != 1) {
return false;
}
@@ -440,3 +449,8 @@ MonoPanner::color_handler ()
queue_draw ();
}
+PannerEditor*
+MonoPanner::editor ()
+{
+ return new MonoPannerEditor (this);
+}