gtk2: Gtk-WARNING generated when splitter closes panel
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
I am not sure this is a bug, but the behavior is different than Cocoa/Windows widgetset. Consider a panel that has several widgets that have auto-alignment (e.g. alRight, alClient, etc). Put a Splitter to allow the user to interactively resize the panel. Execute the program - note that if the user attempts to hide the panel by dragging the splitter the program generates these warning in the terminal:
(project1:1154): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 19
In one sense, these warnings are accurate, when the panel is small (and has a border) some of the widgets will be hidden and can not have a width extent. However, I am not sure a warning should be generated - it alarms the user when this is the intended/expected behavior.
Can anyone tell me if this is a bug that can be fixed, or if there is a simple work-around to prevent the user from seeing scary and distracting warnings?