summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2014-08-01 14:09:51 -0500
committerBen Loftis <ben@harrisonconsoles.com>2014-08-01 14:09:51 -0500
commit3687dae6f6f833250e1f63349e3e16b4eb0d3ab5 (patch)
tree7149138e8311ccfd11086ca461b473c2fd58e82c /gtk2_ardour
parent39610179219928e9b5c39e0955c0566c3e655cbf (diff)
top button table causes spacing issues when items are hidden. removed it.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/mixer_strip.cc21
-rw-r--r--gtk2_ardour/mixer_strip.h1
2 files changed, 5 insertions, 17 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index 5066280bc5..1aacff8e33 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -91,7 +91,6 @@ MixerStrip::MixerStrip (Mixer_UI& mx, Session* sess, bool in_mixer)
, gpm (sess, 250)
, panners (sess)
, button_size_group (Gtk::SizeGroup::create (Gtk::SIZE_GROUP_HORIZONTAL))
- , button_table (3, 1)
, rec_mon_table (2, 2)
, solo_iso_table (1, 2)
, mute_solo_table (1, 2)
@@ -121,7 +120,6 @@ MixerStrip::MixerStrip (Mixer_UI& mx, Session* sess, boost::shared_ptr<Route> rt
, gpm (sess, 250)
, panners (sess)
, button_size_group (Gtk::SizeGroup::create (Gtk::SIZE_GROUP_HORIZONTAL))
- , button_table (3, 1)
, rec_mon_table (2, 2)
, solo_iso_table (1, 2)
, mute_solo_table (1, 2)
@@ -163,6 +161,8 @@ MixerStrip::init ()
hide_button.set_image(::get_icon("hide"));
ARDOUR_UI::instance()->set_tip (&hide_button, _("Hide this mixer strip"));
+ input_button_box.set_spacing(2);
+
input_button.set_text (_("Input"));
input_button.set_name ("mixer strip button");
input_button.set_size_request (-1, 20);
@@ -234,9 +234,6 @@ MixerStrip::init ()
}
rec_mon_table.show ();
- button_table.set_homogeneous (false);
- button_table.set_spacings (2);
-
if (solo_isolated_led) {
button_size_group->add_widget (*solo_isolated_led);
}
@@ -256,15 +253,6 @@ MixerStrip::init ()
}
}
- if (!ARDOUR::Profile->get_trx()) {
- button_table.attach (name_button, 0, 2, button_table_row, button_table_row+1);
- button_table_row++;
- button_table.attach (input_button_box, 0, 2, button_table_row, button_table_row+1);
- button_table_row++;
- button_table.attach (_invert_button_box, 0, 2, button_table_row, button_table_row+1);
- button_table_row++;
- }
-
mute_solo_table.set_homogeneous (true);
mute_solo_table.set_spacings (2);
@@ -313,7 +301,9 @@ MixerStrip::init ()
global_vpacker.set_spacing (2);
if (!ARDOUR::Profile->get_trx()) {
global_vpacker.pack_start (width_hide_box, Gtk::PACK_SHRINK);
- global_vpacker.pack_start (button_table, Gtk::PACK_SHRINK);
+ global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
+ global_vpacker.pack_start (input_button_box, Gtk::PACK_SHRINK);
+ global_vpacker.pack_start (_invert_button_box, Gtk::PACK_SHRINK);
global_vpacker.pack_start (processor_box, true, true);
}
global_vpacker.pack_start (panners, Gtk::PACK_SHRINK);
@@ -659,7 +649,6 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
width_hide_box.show();
global_frame.show();
global_vpacker.show();
- button_table.show();
mute_solo_table.show();
bottom_button_table.show();
gpm.show_all ();
diff --git a/gtk2_ardour/mixer_strip.h b/gtk2_ardour/mixer_strip.h
index ba7ef6d9e3..464a49da63 100644
--- a/gtk2_ardour/mixer_strip.h
+++ b/gtk2_ardour/mixer_strip.h
@@ -171,7 +171,6 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
Glib::RefPtr<Gtk::SizeGroup> button_size_group;
- Gtk::Table button_table;
Gtk::Table rec_mon_table;
Gtk::Table solo_iso_table;
Gtk::Table mute_solo_table;