enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / gtk2_ardour / panner_interface.cc
index 09cf29dfd62757718e1c54cb3dbc580ed0008a08..dcbb36487b03e2cf64d8ea266f0261536711ec66 100644 (file)
@@ -22,9 +22,8 @@
 #include "gtkmm2ext/persistent_tooltip.h"
 #include "panner_interface.h"
 #include "panner_editor.h"
-#include "global_signals.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace Gtk;
@@ -34,6 +33,7 @@ using namespace Gtkmm2ext;
 PannerInterface::PannerInterface (boost::shared_ptr<Panner> p)
        : _panner (p)
        , _tooltip (this)
+       , _send_mode (false)
        , _editor (0)
 {
         set_flags (Gtk::CAN_FOCUS);
@@ -109,8 +109,16 @@ PannerInterface::edit ()
        _editor->show ();
 }
 
+void
+PannerInterface::set_send_drawing_mode(bool onoff) {
+       if (_send_mode != onoff) {
+               _send_mode = onoff;
+               queue_draw ();
+       }
+}
+
 PannerPersistentTooltip::PannerPersistentTooltip (Gtk::Widget* w)
-       : PersistentTooltip (w)
+       : PersistentTooltip (w, true)
        , _dragging (false)
 {