[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Contents of VBox don't draw after putting it in Viewport



Jeffrey Barish wrote:

> I tried catching the
> realize and size-allocate signals.  When the widgets are realized, their
> allocation is (-1, -1, 1, 1).  They never get a size-allocate signal. 
> When I add the vbox to the notebook directly, their allocation is the same
> when they are realized but then they are immediately allocated.  It seems
> that the widgets are invisible not because they are not being realized,
> but because they are not being sized.

So I call queue_resize() on the vbox in the handler for its realize signal. 
That change eliminates the problem.  It does seem as if there is a bug in
GTK, though.
-- 
Jeffrey Barish



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]