From d4030cd32a84ea9bbecc0594f4234e482a1c0bb0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 30 Nov 2011 21:07:43 +0000 Subject: [PATCH] tweak spacings in the mixer strip, tweak tooltip text for input and output buttons git-svn-id: svn://localhost/ardour2/branches/3.0@10845 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/mixer_strip.cc | 11 ++++++----- gtk2_ardour/route_ui.cc | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 0d40d6fadd..a77cc87d8b 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -219,7 +219,7 @@ MixerStrip::init () rec_solo_table.show (); button_table.set_homogeneous (false); - button_table.set_spacings (0); + button_table.set_spacings (2); if (solo_isolated_led) { button_size_group->add_widget (*solo_isolated_led); @@ -244,7 +244,7 @@ MixerStrip::init () middle_button_table.set_homogeneous (true); middle_button_table.set_spacings (2); - bottom_button_table.set_col_spacings (0); + bottom_button_table.set_spacings (2); bottom_button_table.set_homogeneous (true); bottom_button_table.attach (group_button, 0, 1, 0, 1); @@ -283,7 +283,7 @@ MixerStrip::init () global_vpacker.pack_start (middle_button_table, Gtk::PACK_SHRINK, 2); global_vpacker.pack_start (gpm, Gtk::PACK_SHRINK); global_vpacker.pack_start (bottom_button_table, Gtk::PACK_SHRINK); - global_vpacker.pack_start (output_button, Gtk::PACK_SHRINK); + global_vpacker.pack_start (output_button, Gtk::PACK_SHRINK, 2); global_vpacker.pack_start (_comment_button, Gtk::PACK_SHRINK); global_frame.add (global_vpacker); @@ -1070,14 +1070,15 @@ MixerStrip::update_io_button (boost::shared_ptr route, Width widt ostringstream tooltip; char * tooltip_cstr; - tooltip << route->name(); - if (for_input) { io_count = route->n_inputs().n_total(); + tooltip << string_compose (_("INPUT to %1"), route->name()); } else { io_count = route->n_outputs().n_total(); + tooltip << string_compose (_("OUTPUT from %1"), route->name()); } + for (io_index = 0; io_index < io_count; ++io_index) { if (for_input) { port = route->input()->nth (io_index); diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index e11bf91259..0c4ceab4c3 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -1801,6 +1801,7 @@ RouteUI::setup_invert_buttons () _invert_button_box.pack_start (*b); } + _invert_button_box.set_spacing (1); _invert_button_box.show_all (); } -- 2.30.2