Mapping an empty GtkBox results in warning "How does the code know the size to allocate?"
Submitted by Holger Seelig
Since one or two versions of Gtk there comes always this warning when a Gtk::Box is empty on map:
(titania:28658): Gtk-WARNING **: Allocating size to gtkmm__GtkBox 0x55dc5090b470 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Wondering why you suddenly cannot calculate a width/height for this empty box, although it seems to be possible all versions before and Gtk runs fine there.
I have a complex user interface where I add later at any state of the program to empty boxes other complex widgets. These boxes must left empty at startup of the program. For me a not preferable workaround is to add empty labels to the boxes and before I reparent the complex widget to the empty boxes I then must make them first empty. This is not a preferable solution. Wondering why I must not have do this versions before. And size calculations was fine there.
Holger Seelig Digital Mediendesigner - Digital Media Designer
Scheffelstraße 31a 04277 Leipzig Germany