summaryrefslogtreecommitdiff
path: root/gtk2_ardour/vca_master_strip.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-09 16:58:49 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-09 16:58:49 -0400
commitbe42151c0d862e412b75356e58cd90bbf47c5ab4 (patch)
treec4897066b4466b6440f4aa6fcb29eaa68f841cf8 /gtk2_ardour/vca_master_strip.cc
parent4d28df97fa8a3d595adf595513b624f685b7bff8 (diff)
work "hide" button on VCA strip
Diffstat (limited to 'gtk2_ardour/vca_master_strip.cc')
-rw-r--r--gtk2_ardour/vca_master_strip.cc16
1 files changed, 5 insertions, 11 deletions
diff --git a/gtk2_ardour/vca_master_strip.cc b/gtk2_ardour/vca_master_strip.cc
index aa8b93a3e9..c0ade152af 100644
--- a/gtk2_ardour/vca_master_strip.cc
+++ b/gtk2_ardour/vca_master_strip.cc
@@ -57,9 +57,6 @@ VCAMasterStrip::VCAMasterStrip (Session* s, boost::shared_ptr<VCA> v)
, delete_dialog (0)
, control_slave_ui (s)
{
-
- PresentationInfo::color_t c = _vca->presentation_info().color ();
-
/* set color for the VCA, if not already done. */
if (!_vca->presentation_info().color_set()) {
@@ -231,14 +228,7 @@ VCAMasterStrip::name() const
void
VCAMasterStrip::hide_clicked ()
{
- if (!delete_dialog) {
- delete_dialog = new MessageDialog (_("Removing a Master will deassign all slaves. Remove it anyway?"),
- true, MESSAGE_WARNING, BUTTONS_YES_NO, true);
- delete_dialog->signal_response().connect (sigc::mem_fun (*this, &VCAMasterStrip::hide_confirmation));
- }
-
- delete_dialog->set_position (Gtk::WIN_POS_MOUSE);
- delete_dialog->present ();
+ _vca->presentation_info().set_hidden (true);
}
void
@@ -389,6 +379,10 @@ VCAMasterStrip::vca_property_changed (PropertyChange const & what_changed)
if (what_changed.contains (ARDOUR::Properties::color)) {
vertical_button.set_active_color (_vca->presentation_info().color ());
}
+
+ if (what_changed.contains (ARDOUR::Properties::hidden)) {
+
+ }
}
void