I've pushed a change to avoid this warning.

At Wed, 4 Jan 2017 01:22:41 -0800 (PST), Lehi Toskin wrote:
> I've been encountering Gtk-WARNING's on some simple GUI code and it's not 
> really making any sense to me. Here's the code:
> 
> ;;;
> #lang racket/gui
> 
> (define frame
>   (new frame%
>        [label "foo"]
>        [width 500]
>        [height 500]))
> 
> (define lbox
>   (new list-box%
>        [parent frame]
>        [label "lbox"]
>        [style '(single vertical-label)]
>        [choices '("aaaa"
>                   "bbbb"
>                   "cccc"
>                   "dddd")]))
> 
> (send frame show #t)
> ;;;
> 
> 
> Here's the error:
> 
> (foo.rkt:23484): Gtk-WARNING **: Allocating size to GtkFixed 0x2023270 
> without 
> calling gtk_widget_get_preferred_width/height(). How does the code know the 
> size to allocate?
> 
> 
> Now, a workaround I've found that works is to set lbox's style to include 
> 'deleted and then *after* I show the frame, I tell the frame to add lbox as a 
> child. I think I understand why this is happening, but IMHO the above code 
> should Just Work™.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to