Re: [gtk-list] more widget size problems/questions




Hi,

The size request of a widget simply isn't its actual size. It's the size
the widget wants, but it might actually get a smaller or larger value. So,
gtk_widget_size_request() will not give you a widget's size.

I would connect to the size_allocate signal of the widget; you will get
that signal whenever the widget's size changes, and the size allocation
is the size the widget really got.

Havoc




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