X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fregion_gain_line.h;h=683537ee69aea71fb2287bfbf70db9d7e7103248;hb=815ffcd567a65c259b31b41e03c56cf2fc8ad1b6;hp=61b361210bb8964b4b0a3787f50cc92ca28f7cd1;hpb=ee1b49f87e4b8e6406c059f29371892872d3fb85;p=ardour.git diff --git a/gtk2_ardour/region_gain_line.h b/gtk2_ardour/region_gain_line.h index 61b361210b..683537ee69 100644 --- a/gtk2_ardour/region_gain_line.h +++ b/gtk2_ardour/region_gain_line.h @@ -22,11 +22,6 @@ #include "ardour/ardour.h" -#ifdef interface -#undef interface -#endif - -#include #include "automation_line.h" @@ -40,14 +35,17 @@ class AudioRegionView; class AudioRegionGainLine : public AutomationLine { public: - AudioRegionGainLine (const std::string & name, AudioRegionView&, ArdourCanvas::Group& parent, boost::shared_ptr); + AudioRegionGainLine (const std::string & name, AudioRegionView&, ArdourCanvas::Container& parent, boost::shared_ptr); void start_drag_single (ControlPoint*, double, float); void end_drag (bool with_push, uint32_t final_index); void remove_point (ControlPoint&); + private: + PBD::ScopedConnection _region_changed_connection; + void region_changed (const PBD::PropertyChange& what_changed); AudioRegionView& rv; };