Remove over-protection
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Wed, 30 Aug 2017 17:59:14 +0000 (19:59 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Wed, 30 Aug 2017 18:11:17 +0000 (20:11 +0200)
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

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