mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-31 02:47:43 +01:00
Better fix for non-rearrangement after open for the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@5377 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
fea3992f29
commit
2e7eeef448
4 changed files with 26 additions and 12 deletions
|
|
@ -51,7 +51,7 @@ PortMatrix::PortMatrix (ARDOUR::Session& session, ARDOUR::DataType type)
|
|||
_min_height_divisor (1),
|
||||
_show_only_bundles (false),
|
||||
_inhibit_toggle_show_only_bundles (false),
|
||||
_first_setup (true)
|
||||
_realized (false)
|
||||
{
|
||||
_body = new PortMatrixBody (this);
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ PortMatrix::routes_changed ()
|
|||
void
|
||||
PortMatrix::setup ()
|
||||
{
|
||||
if (_first_setup) {
|
||||
if (!_realized) {
|
||||
select_arrangement ();
|
||||
}
|
||||
|
||||
|
|
@ -123,8 +123,6 @@ PortMatrix::setup ()
|
|||
setup_scrollbars ();
|
||||
queue_draw ();
|
||||
|
||||
_first_setup = false;
|
||||
|
||||
show_all ();
|
||||
}
|
||||
|
||||
|
|
@ -461,3 +459,17 @@ PortMatrix::max_size () const
|
|||
|
||||
return m;
|
||||
}
|
||||
|
||||
void
|
||||
PortMatrix::on_realize ()
|
||||
{
|
||||
Widget::on_realize ();
|
||||
_realized = true;
|
||||
}
|
||||
|
||||
void
|
||||
PortMatrix::on_unrealize ()
|
||||
{
|
||||
Widget::on_unrealize ();
|
||||
_realized = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue