add ::set_height() for VCATimeAxisView
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 8 Jun 2016 15:02:17 +0000 (11:02 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 8 Jun 2016 15:03:13 +0000 (11:03 -0400)
gtk2_ardour/vca_time_axis.cc
gtk2_ardour/vca_time_axis.h

index 64b5657ff83180955be3b20ebdb1e9d00a3ceda4..3bbb4a5f4c0244ba6c7138ea4a933ba225b1f07c 100644 (file)
@@ -296,3 +296,11 @@ VCATimeAxisView::color () const
 {
        return gdk_color_from_rgb (_vca->presentation_info().color ());
 }
+
+void
+VCATimeAxisView::set_height (uint32_t h, TrackHeightMode m)
+{
+       TimeAxisView::set_height (h, m);
+       set_gui_property ("height", h);
+       _vca->gui_changed ("track_height", (void*) 0); /* EMIT SIGNAL */
+}
index e14c2fe3fec34c3038f38424423f2780ec9cd6b4..2ee23bca4413bf0a72019fe3cea39ebbd183db3e 100644 (file)
@@ -49,6 +49,8 @@ class VCATimeAxisView : public TimeAxisView
        Gdk::Color color () const;
        std::string state_id() const;
 
+       void set_height (uint32_t h, TrackHeightMode m = OnlySelf);
+
        bool selectable() const { return false; }
 
  protected: