Use an explicit class-member for the mixer-strip container
authorRobin Gareus <robin@gareus.org>
Wed, 17 Jul 2019 20:21:08 +0000 (22:21 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 17 Jul 2019 20:21:08 +0000 (22:21 +0200)
gtk2_ardour/mixer_ui.cc
gtk2_ardour/mixer_ui.h

index 52b5708216fb7d1bcd443583bf38a45f0b0b1eeb..4bf6d60f7be15fa710d42c8debc6b95a95b2b517 100644 (file)
@@ -160,15 +160,14 @@ Mixer_UI::Mixer_UI ()
 #endif
 
        _group_tabs = new MixerGroupTabs (this);
-       VBox* b = manage (new VBox);
-       b->set_spacing (0);
-       b->set_border_width (0);
-       b->pack_start (*_group_tabs, PACK_SHRINK);
-       b->pack_start (strip_packer);
-       b->show_all ();
-       b->signal_scroll_event().connect (sigc::mem_fun (*this, &Mixer_UI::on_scroll_event), false);
-
-       scroller.add (*b);
+       strip_group_box.set_spacing (0);
+       strip_group_box.set_border_width (0);
+       strip_group_box.pack_start (*_group_tabs, PACK_SHRINK);
+       strip_group_box.pack_start (strip_packer);
+       strip_group_box.show_all ();
+       strip_group_box.signal_scroll_event().connect (sigc::mem_fun (*this, &Mixer_UI::on_scroll_event), false);
+
+       scroller.add (strip_group_box);
        scroller.set_policy (Gtk::POLICY_ALWAYS, Gtk::POLICY_AUTOMATIC);
 
        setup_track_display ();
index 9ea2dbe59a6fda49186775a7fbe3219c414eb710..5e0a25e9252f07ade0d3d7009ff01df16feee029 100644 (file)
@@ -175,6 +175,7 @@ private:
        ArdourWidgets::VPane  rhs_pane1;
        ArdourWidgets::VPane  rhs_pane2;
        ArdourWidgets::HPane  inner_pane;
+       Gtk::VBox             strip_group_box;
        Gtk::HBox             strip_packer;
        Gtk::ScrolledWindow   vca_scroller;
        Gtk::HBox             vca_hpacker;