From 0c06860ed78410ec0f78e8648b0ecd92daf953a2 Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Tue, 15 Aug 2017 18:18:44 +0200 Subject: 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. --- gtk2_ardour/plugin_display.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'gtk2_ardour') 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 (); } } -- cgit v1.2.3