Re: gtk_widget_realize and allocation



On Wed, 2003-04-30 at 06:55, Vic Doc'Kay wrote:
> Hi, 
> 
> I'm trying to make a little app where all the widgets 
> are defined by a text file. In order to place the 
> widgets on my window I need to know their allocated
> size, so I can fixed them correctly. For that I use
> gtk_widget_realize() to force the allocation (I get
> the height for example with widget->allocation.height
> ). But the problem is that it works only for the first
> widget; gtk_widget_realize() don't seem to work for
> the following widgets. 

gtk_widget_realize() does not force the allocation; the
docs say what it does.

Basically, what you need to do is - make sure that the
widget's are in their final place in the widget hierarchy,
then call gtk_widget_size_request().

But that's off topic for this list.

Regards,
                                Owen





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