summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-03 14:53:24 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-03 14:53:24 +0000
commite2945f2f2ac5944fdfb53079048128439afa372f (patch)
tree568ffc9c311f63a892f8aad24441a8738966eb63 /gtk2_ardour/mixer_strip.cc
parent5b45dc04dfba73846893a8c591c4175c20b3415f (diff)
force all "core" mixer strip buttons to be the same width
git-svn-id: svn://localhost/ardour2/branches/3.0@10418 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc26
1 files changed, 25 insertions, 1 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index 70c8a7ae8e..9a7a447e46 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -84,6 +84,7 @@ MixerStrip::MixerStrip (Mixer_UI& mx, Session* sess, bool in_mixer)
, processor_box (sess, boost::bind (&MixerStrip::plugin_selector, this), mx.selection(), this, in_mixer)
, gpm (sess, 250)
, panners (sess)
+ , button_size_group (Gtk::SizeGroup::create (Gtk::SIZE_GROUP_HORIZONTAL))
, button_table (3, 1)
, rec_solo_table (2, 2)
, top_button_table (1, 2)
@@ -113,6 +114,7 @@ MixerStrip::MixerStrip (Mixer_UI& mx, Session* sess, boost::shared_ptr<Route> rt
, processor_box (sess, sigc::mem_fun(*this, &MixerStrip::plugin_selector), mx.selection(), this, in_mixer)
, gpm (sess, 250)
, panners (sess)
+ , button_size_group (Gtk::SizeGroup::create (Gtk::SIZE_GROUP_HORIZONTAL))
, button_table (3, 1)
, middle_button_table (1, 2)
, bottom_button_table (1, 2)
@@ -225,12 +227,34 @@ MixerStrip::init ()
button_table.set_homogeneous (false);
button_table.set_spacings (0);
+ if (solo_button) {
+ button_size_group->add_widget (*solo_button);
+ }
+ if (mute_button) {
+ button_size_group->add_widget (*mute_button);
+ }
+ if (solo_isolated_led) {
+ button_size_group->add_widget (*solo_isolated_led);
+ }
+ if (solo_safe_led) {
+ button_size_group->add_widget (*solo_safe_led);
+ }
+ if (rec_enable_button) {
+ button_size_group->add_widget (*rec_enable_button);
+ }
+ if (monitor_disk_button) {
+ button_size_group->add_widget (*monitor_disk_button);
+ }
+ if (monitor_input_button) {
+ button_size_group->add_widget (*monitor_input_button);
+ }
+
button_table.attach (name_button, 0, 1, 0, 1);
button_table.attach (input_button_box, 0, 1, 1, 2);
button_table.attach (_invert_button_box, 0, 1, 2, 3);
middle_button_table.set_homogeneous (true);
- middle_button_table.set_spacings (0);
+ middle_button_table.set_spacings (2);
middle_button_table.attach (*mute_button, 0, 1, 0, 1);
middle_button_table.attach (*solo_button, 1, 2, 0, 1);