Re: getting real widget sizes how and when



Tristan Van Berkom schrieb:

[...]
Yes,
   "configure-event" should work for you, its emitted for resizes in
general, but I believe there is an initial configure-event fired
at allocation time.

yup ... works,
moving stuff to an event handler (actually I'm using size-allocate) and adding twice the ythickness from the scolledwindow style for the border does the trick.

Only thing is, I need to wait for the second size-allocate event and unregister the handler afterwards.

If anybody has a smarter idea for filtering out the initial event which fires while the dialog is not really visible than just counting the events and ignoring # 0, that would be appreciated.

Many thanks,

Karl.




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