From: Julien "_FrnchFrgg_" RIVAUD Date: Wed, 30 Aug 2017 17:59:14 +0000 (+0200) Subject: Remove over-protection X-Git-Tag: 5.12~50 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=03f77792ddb22c3c4e89c04ed325e83adfc93790 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. --- 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