mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
UI tweak for the spacer at the bottom of the master bus.
This commit is contained in:
parent
e9deb82ef6
commit
afa6720288
2 changed files with 13 additions and 11 deletions
|
|
@ -152,7 +152,6 @@ MixerStrip::init ()
|
|||
ignore_toggle = false;
|
||||
comment_area = 0;
|
||||
_width_owner = 0;
|
||||
spacer = 0;
|
||||
|
||||
/* the length of this string determines the width of the mixer strip when it is set to `wide' */
|
||||
longest_label = "longest label";
|
||||
|
|
@ -322,6 +321,15 @@ MixerStrip::init ()
|
|||
global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
|
||||
}
|
||||
|
||||
//add a spacer underneath the master bus;
|
||||
//this fills the area that is taken up by the scrollbar on the tracks;
|
||||
//and therefore keeps the faders "even" across the bottom
|
||||
HScrollbar scrollbar;
|
||||
Gtk::Requisition requisition(scrollbar.size_request ());
|
||||
int scrollbar_height = requisition.height;
|
||||
spacer.set_size_request (-1, scrollbar_height+2); //+2 is a fudge factor to accomodate extra padding in mixer strip
|
||||
global_vpacker.pack_end (spacer, false, false);
|
||||
|
||||
global_frame.add (global_vpacker);
|
||||
global_frame.set_shadow_type (Gtk::SHADOW_IN);
|
||||
global_frame.set_name ("BaseFrame");
|
||||
|
|
@ -557,15 +565,9 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
|||
}
|
||||
|
||||
if (_mixer_owned && route()->is_master() ) {
|
||||
|
||||
HScrollbar scrollbar;
|
||||
Gtk::Requisition requisition(scrollbar.size_request ());
|
||||
int scrollbar_height = requisition.height;
|
||||
|
||||
spacer = manage (new EventBox);
|
||||
spacer->set_size_request (-1, scrollbar_height+2);
|
||||
global_vpacker.pack_start (*spacer, false, false);
|
||||
spacer->show();
|
||||
spacer.show();
|
||||
} else {
|
||||
spacer.hide();
|
||||
}
|
||||
|
||||
if (is_track()) {
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ class MixerStrip : public AxisView, public RouteUI, public Gtk::EventBox
|
|||
ArdourButton width_button;
|
||||
ArdourButton number_label;
|
||||
Gtk::HBox width_hide_box;
|
||||
Gtk::EventBox* spacer;
|
||||
Gtk::EventBox spacer;
|
||||
|
||||
void hide_clicked();
|
||||
bool width_button_pressed (GdkEventButton *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue