gtk_widget_size_allocate warning for GtkFrame in GtkScrolledWindow with viewport
Submitted by Andrej Kacian
Link to original bug (#614384)
Description
Hello,
I get following warning when calling gtk_viewport_set_shadow_type() on a scrolledwindow which has a frame packed in its viewport.
Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 0
This only happens if gtk_widget_show(frame) is called before setting shadow type. If I leave out the gtk_widget_show() and just call gtk_widget_show_all(toplevel_widget) at the end, the warning doesn't appear.
Testcase attached.
Version: 2.24.x