summaryrefslogtreecommitdiff
path: root/libs/widgets
diff options
context:
space:
mode:
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2017-08-30 19:59:14 +0200
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2017-08-30 20:11:17 +0200
commit03f77792ddb22c3c4e89c04ed325e83adfc93790 (patch)
tree0261831310b90d9d10cf0b7dea058df2e92d5914 /libs/widgets
parentf52f23b12d63ce5dad5aee564915278795114878 (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.
Diffstat (limited to 'libs/widgets')
-rw-r--r--libs/widgets/ardour_button.cc8
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