It looks like the widgets that don't display correctly are the NOWINDOW
ones. That is, they don't have their own X window, and instead draw onto
their parent's window.
To get around this problem, try putting the NOWINDOW widgets inside
GtkEventBox widgets, which basically gives the no window widget a parent
window to draw into.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 25 May 1999, J.W. Bizzaro wrote:
> The gnome canvas SHOULD allow any gtk widget to be positioned directly on the
> canvas. But I find that only SOME widgets are actually visible. It's possible
> the others are not being refreshed properly...? Make a gnome canvas and check
> out this code. You should see 5 widgets, but you will only see 2.
>
> ---------8<-----------
> w = GtkFrame("hello")
> canvas.widget = canvas.root().add('widget', widget=w, x=10, y=0, width=100,
> height=50)
> w.show()
>
> w = GtkButton("hello")
> canvas.widget = canvas.root().add('widget', widget=w, x=10, y=50, width=100,
> height=50)
> w.show()
>
> w = GtkLabel("hello")
> canvas.widget = canvas.root().add('widget', widget=w, x=10, y=100,
> width=100, height=50)
> w.show()
>
> w = GtkEntry()
> canvas.widget = canvas.root().add('widget', widget=w, x=10, y=150,
> width=100, height=50)
> w.show()
>
> w = GtkHSeparator()
> canvas.widget = canvas.root().add('widget', widget=w, x=10, y=200,
> width=100, height=50)
> w.show()
> ---------8<-----------
>
> Unless I'm missing something.
>
>
> Jeff
> --
> J.W. Bizzaro mailto:[EMAIL PROTECTED]
> Boston College Chemistry http://www.uml.edu/Dept/Chem/Bizzaro/
> --
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]