diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2017-08-30 19:59:14 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2017-08-30 20:11:17 +0200 |
commit | 03f77792ddb22c3c4e89c04ed325e83adfc93790 (patch) | |
tree | 0261831310b90d9d10cf0b7dea058df2e92d5914 | |
parent | f52f23b12d63ce5dad5aee564915278795114878 (diff) |
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.
-rw-r--r-- | libs/widgets/ardour_button.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/widgets/ardour_button.cc b/libs/widgets/ardour_button.cc index 9687427608..ebd23b2aac 100644 --- a/libs/widgets/ardour_button.cc +++ b/libs/widgets/ardour_button.cc @@ -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 |