mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Hide port matrix notebook tabs if there's only one.
git-svn-id: svn://localhost/ardour2/branches/3.0@6279 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
be79bc7916
commit
4a836618f3
1 changed files with 17 additions and 3 deletions
|
|
@ -82,7 +82,11 @@ PortMatrix::PortMatrix (Window* parent, Session& session, DataType type)
|
||||||
_hlabel.set_alignment (0, 0.5);
|
_hlabel.set_alignment (0, 0.5);
|
||||||
_hlabel.set_padding (16, 4);
|
_hlabel.set_padding (16, 4);
|
||||||
|
|
||||||
show_all ();
|
_body->show ();
|
||||||
|
_vbox.show ();
|
||||||
|
_hbox.show ();
|
||||||
|
_vlabel.show ();
|
||||||
|
_hlabel.show ();
|
||||||
}
|
}
|
||||||
|
|
||||||
PortMatrix::~PortMatrix ()
|
PortMatrix::~PortMatrix ()
|
||||||
|
|
@ -174,8 +178,6 @@ PortMatrix::setup ()
|
||||||
setup_scrollbars ();
|
setup_scrollbars ();
|
||||||
setup_notebooks ();
|
setup_notebooks ();
|
||||||
queue_draw ();
|
queue_draw ();
|
||||||
|
|
||||||
show_all ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -645,6 +647,18 @@ PortMatrix::setup_notebooks ()
|
||||||
_vnotebook.set_current_page (v_current_page);
|
_vnotebook.set_current_page (v_current_page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_hnotebook.get_n_pages() <= 1) {
|
||||||
|
_hnotebook.hide ();
|
||||||
|
} else {
|
||||||
|
_hnotebook.show ();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_vnotebook.get_n_pages() <= 1) {
|
||||||
|
_vnotebook.hide ();
|
||||||
|
} else {
|
||||||
|
_vnotebook.show ();
|
||||||
|
}
|
||||||
|
|
||||||
_in_setup_notebooks = false;
|
_in_setup_notebooks = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue