summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_ui.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-02-12 15:50:35 -0600
committerBen Loftis <ben@harrisonconsoles.com>2018-02-12 15:50:35 -0600
commitc70aee50e0c48dd1fa63338bb3b6f1193495e79c (patch)
tree5e677932b13c9880bf01d1135c51d1fc9a098285 /gtk2_ardour/mixer_ui.cc
parentb7f38bbb7acc514b24dcb119dc539e0becd9acd5 (diff)
...and also for VCA strips.
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r--gtk2_ardour/mixer_ui.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index 653fb1c039..23bc8c52db 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -252,7 +252,6 @@ Mixer_UI::Mixer_UI ()
vca_scroller_base.add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK);
vca_scroller_base.set_name (X_("MixerWindow"));
vca_scroller_base.signal_button_release_event().connect (sigc::mem_fun(*this, &Mixer_UI::masters_scroller_button_release), false);
- vca_hpacker.pack_end (vca_scroller_base, true, true);
vca_scroller.add (vca_hpacker);
vca_scroller.set_policy (Gtk::POLICY_ALWAYS, Gtk::POLICY_AUTOMATIC);
@@ -1437,8 +1436,20 @@ Mixer_UI::redisplay_track_list ()
uint32_t n_masters = 0;
container_clear (vca_hpacker);
+
+ //create a button to add mixer strips ( replaces the old buttons in the mixer list )
+ Button* add_vca_button = manage (new Button);
+ Widget* w = manage (new Image (Stock::ADD, ICON_SIZE_BUTTON));
+ w->show ();
+ add_vca_button->add (*w);
+ add_vca_button->signal_clicked().connect (sigc::mem_fun (*this, &Mixer_UI::new_track_or_bus));
+
vca_hpacker.pack_end (vca_scroller_base, true, true);
+ vca_hpacker.pack_end (*add_vca_button, false, false);
+ add_vca_button->show ();
+ vca_scroller_base.show();
+
for (i = rows.begin(); i != rows.end(); ++i) {
AxisView* s = (*i)[stripable_columns.strip];