Closed Ambrevar closed 4 years ago
This is because you use add
method to which is gtk_container_add
. You should use box-specific methods like pack-start
and pack-end
(gtk_box_pack_start
and gtk_box_pack_end
). To fix your example just replace those lines with something like
(gir:invoke (box 'pack-start) button t t 0)
(gir:invoke (box 'pack-start) view t t 0)
(gir:invoke (box 'pack-start) button2 t t 0)
Add something like this also to make window larger
(setf (gir:property window 'height-request) 500)
This works, thanks a lot!
Still new to gobject-introspection, so I may be doing something stupid :)
Using the hello.lisp example, I'm trying to display a web view next to a widget:
The above only displays the 2 buttons, but nothing in between. If I call
then the view displays (instead of the buttons).
Any idea what's wrong?