mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
tweak duplicate routes dialog appearance depending on whether or not busses/tracks are the target
This commit is contained in:
parent
7598520fa6
commit
456b6adf2b
3 changed files with 56 additions and 7 deletions
|
|
@ -32,16 +32,14 @@ DuplicateRouteDialog::DuplicateRouteDialog ()
|
|||
, count_spinner (count_adjustment)
|
||||
, count_label (_("Duplicate each track/bus this number of times"))
|
||||
{
|
||||
count_box.pack_start (count_label, false, false);
|
||||
count_box.pack_start (count_spinner, false, false);
|
||||
get_vbox()->pack_start (count_box, false, false, 20);
|
||||
|
||||
playlist_button_box.pack_start (copy_playlists_button, false, false);
|
||||
playlist_button_box.pack_start (new_playlists_button, false, false);
|
||||
playlist_button_box.pack_start (share_playlists_button, false, false);
|
||||
|
||||
get_vbox()->pack_start (playlist_button_box, false, false);
|
||||
|
||||
count_box.pack_start (count_label, false, false);
|
||||
count_box.pack_start (count_spinner, false, false);
|
||||
|
||||
get_vbox()->pack_start (count_box, false, false, 20);
|
||||
playlist_button_box.show_all ();
|
||||
|
||||
get_vbox()->show_all ();
|
||||
|
||||
|
|
@ -53,6 +51,20 @@ DuplicateRouteDialog::~DuplicateRouteDialog ()
|
|||
{
|
||||
}
|
||||
|
||||
void
|
||||
DuplicateRouteDialog::setup (uint32_t ntracks, uint32_t nbusses)
|
||||
{
|
||||
/* XXX grrr. Gtk Boxes do not shrink when children are removed,
|
||||
which is what we really want to happen here.
|
||||
*/
|
||||
|
||||
if (ntracks == 0) {
|
||||
get_vbox()->remove (playlist_button_box);
|
||||
} else {
|
||||
get_vbox()->pack_end (playlist_button_box, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t
|
||||
DuplicateRouteDialog::count() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue