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.
This commit is contained in:
Johannes Mueller 2017-08-15 18:18:44 +02:00
parent c0326ec47e
commit 0c06860ed7
1 changed files with 1 additions and 9 deletions

View File

@ -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 ();
}
}