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:
parent
c0326ec47e
commit
0c06860ed7
|
@ -75,17 +75,9 @@ PluginDisplay::update_height_alloc (uint32_t height)
|
||||||
{
|
{
|
||||||
uint32_t shm = std::min (_max_height, 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 (shm != _cur_height) {
|
||||||
if (_cur_height < shm) {
|
|
||||||
queue_resize ();
|
|
||||||
}
|
|
||||||
_cur_height = shm;
|
_cur_height = shm;
|
||||||
|
queue_resize ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user