When I start my Wx app, I get the following:
(Erlang:5078): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 13
(Erlang:5078): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 13
(Erlang:5078): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 13
(Erlang:5078): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 13
what can cause this, and how could I solve it?
wx related GTK warnings
Re: wx related GTK warnings
Hi,
I've seen them in the wx2.9 wxAui, where a fairly recent change involving (iirc) borders meant that a control with a width of 0 (or -1?) ended up with a negative width once the border was subtracted. I don't think there's a solution except to supply a larger width for the offending control.
BTW you can investigate this more easily if you debug your app with the runtime option --g-fatal-warnings. See here for more information.
Regards,
David
They're caused by attempting to allocate a widget with width of -5 .Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 13
what can cause this?
I've seen them in the wx2.9 wxAui, where a fairly recent change involving (iirc) borders meant that a control with a width of 0 (or -1?) ended up with a negative width once the border was subtracted. I don't think there's a solution except to supply a larger width for the offending control.
BTW you can investigate this more easily if you debug your app with the runtime option --g-fatal-warnings. See here for more information.
Regards,
David