gtk3: timeline widget uses 'get_visible' instead of 'is_visible'

This commit is contained in:
Michael Fisher 2012-08-13 13:43:26 -05:00 committed by Ichthyostega
parent b1293b130f
commit 7e6eff9e6a

View file

@ -442,14 +442,12 @@ TimelineWidget::update_scroll()
verticalAdjustment->set_upper(y_scroll_length);
// Hide the scrollbar if no scrolling is possible
#if 0
// Having this code included seems to cause a layout loop as the
// window is shrunk
if(y_scroll_length <= 0 && verticalScroll.is_visible())
if(y_scroll_length <= 0 && verticalScroll.get_visible())
verticalScroll.hide();
else if(y_scroll_length > 0 && !verticalScroll.is_visible())
else if(y_scroll_length > 0 && !verticalScroll.get_visible())
verticalScroll.show();
#endif
}
}