13
0

Remove over-protection

The queued resize will only happen trigger a size-request when the
widget is realized, and on_size_request() calls ensure_layout().

Moreover, this over protection meant that sometimes a resize wasn't
noticed by the button containers.
This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2017-08-30 19:59:14 +02:00
parent f52f23b12d
commit 03f77792dd

View File

@ -221,13 +221,7 @@ ArdourButton::set_sizing_text (const std::string& str)
return;
}
_sizing_text = str;
if (!is_realized()) {
return;
}
ensure_layout ();
if (_layout) {
queue_resize ();
}
queue_resize ();
}
void