[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
- From: Jeffrey Barish <jeff_barish earthlink net>
- To: gtk-app-devel-list gnome org
- Subject: Re: Contents of VBox don't draw after putting it in Viewport
- Date: Sun, 02 Dec 2007 18:48:38 -0700
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]