use syntactic sugar
[ardour.git] / gtk2_ardour / automation_controller.h
index 7c3641b2dfc1e059933b0961ce2489feb0787d4c..ac87ee300f068827e47146bb86f4631b2278b501 100644 (file)
 #endif
 
 #include <boost/shared_ptr.hpp>
-#include <gtkmm.h>
 
-#include "gtkmm2ext/barcontroller.h"
+#include <gtkmm/alignment.h>
+
 #include "pbd/signals.h"
 #include "evoral/Parameter.hpp"
+#include "widgets/barcontroller.h"
 
 namespace ARDOUR {
        class Session;
@@ -41,7 +42,12 @@ namespace ARDOUR {
        class AutomationControl;
 }
 
-class AutomationBarController : public Gtkmm2ext::BarController {
+namespace Gtk {
+       class Adjustment;
+       class Widget;
+}
+
+class AutomationBarController : public ArdourWidgets::BarController {
 public:
        AutomationBarController(boost::shared_ptr<ARDOUR::AutomationControl> ac,
                                Gtk::Adjustment*                             adj);
@@ -96,6 +102,7 @@ private:
        sigc::connection                             _screen_update_connection;
        PBD::ScopedConnectionList                    _changed_connections;
        bool                                         _ignore_change;
+       bool                                         _grabbed;
 };