From 03f77792ddb22c3c4e89c04ed325e83adfc93790 Mon Sep 17 00:00:00 2001 From: "Julien \"_FrnchFrgg_\" RIVAUD" Date: Wed, 30 Aug 2017 19:59:14 +0200 Subject: [PATCH] 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. --- libs/widgets/ardour_button.cc | 8 +------- 1 file changed, 1 insertion(+), 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 -- 2.30.2