summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2014-07-28 16:16:51 -0500
committerBen Loftis <ben@harrisonconsoles.com>2014-07-28 16:16:51 -0500
commit4af99f7d0013588134d08dda59e05011373ab8ed (patch)
treedcabed3dcd3af44481c2208ef315d6bff4b9a505 /gtk2_ardour
parented07c53210fb4e8051a7e8c353e011d9dd5d29d2 (diff)
remove some cruft with group button, move it under fader
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/mixer_strip.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index c097cd8f26..ba9ae8819d 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -261,11 +261,9 @@ MixerStrip::init ()
mute_solo_table.set_spacings (2);
bottom_button_table.set_spacings (2);
- bottom_button_table.set_homogeneous (false);
- button_table_row = 0;
- bottom_button_table.attach (group_button, 0, 1, button_table_row, button_table_row+1);
- bottom_button_table.attach (gpm.gain_automation_state_button, 1, 2, button_table_row, button_table_row+1);
- button_table_row++;
+ bottom_button_table.set_homogeneous (true);
+ bottom_button_table.attach (group_button, 1, 2, 0, 1);
+ bottom_button_table.attach (gpm.gain_automation_state_button, 0, 1, 0, 1);
name_button.set_name ("mixer strip button");
name_button.set_text (" "); /* non empty text, forces creation of the layout */
@@ -277,7 +275,7 @@ MixerStrip::init ()
ARDOUR_UI::instance()->set_tip (&group_button, _("Mix group"), "");
group_button.set_name ("mixer strip button");
- Gtkmm2ext::set_size_request_to_display_given_text (group_button, "Group", 2, 2);
+ Gtkmm2ext::set_size_request_to_display_given_text (group_button, "Grp", 2, 2);
_comment_button.set_name (X_("mixer strip button"));
_comment_button.signal_clicked.connect (sigc::mem_fun (*this, &MixerStrip::toggle_comment_editor));
@@ -462,7 +460,10 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
if (monitor_disk_button->get_parent()) {
rec_mon_table.remove (*monitor_disk_button);
}
-
+ if (group_button.get_parent()) {
+ bottom_button_table.remove (group_button);
+ }
+
RouteUI::set_route (rt);
/* ProcessorBox needs access to _route so that it can read
@@ -513,6 +514,7 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
mute_button->show ();
rec_mon_table.hide ();
} else {
+ bottom_button_table.attach (group_button, 1, 2, 0, 1);
mute_solo_table.attach (*mute_button, 0, 1, 0, 1);
mute_solo_table.attach (*solo_button, 1, 2, 0, 1);
mute_button->show ();