summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_display.cc
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2017-08-15 18:18:44 +0200
committerJohannes Mueller <github@johannes-mueller.org>2017-08-15 19:13:05 +0200
commit0c06860ed78410ec0f78e8648b0ecd92daf953a2 (patch)
tree8f2b8972b3c145d7a6ccad3fc25897f778d3eafe /gtk2_ardour/plugin_display.cc
parentc0326ec47edb616acae55566a76601ac6274fac6 (diff)
Simplify code of PluginDisplay::update_height_alloc()
Partly irrelevant code. A more elaborated resize height allocation behavior won't be needed before the widget layout in the generic GUI is improved.
Diffstat (limited to 'gtk2_ardour/plugin_display.cc')
-rw-r--r--gtk2_ardour/plugin_display.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/gtk2_ardour/plugin_display.cc b/gtk2_ardour/plugin_display.cc
index b04eb271b7..24d8658d42 100644
--- a/gtk2_ardour/plugin_display.cc
+++ b/gtk2_ardour/plugin_display.cc
@@ -75,17 +75,9 @@ PluginDisplay::update_height_alloc (uint32_t height)
{
uint32_t shm = std::min (_max_height, height);
- Gtk::Container* pr = get_parent();
- for (uint32_t i = 0; i < 4 && pr; ++i) {
- // VBox, EventBox, ViewPort, ScrolledWindow
- pr = pr->get_parent();
- }
-
if (shm != _cur_height) {
- if (_cur_height < shm) {
- queue_resize ();
- }
_cur_height = shm;
+ queue_resize ();
}
}