Re: Viewports and scrollbars



>That's basically what I did - but I wanted to layout the scrollbars
>differently, so I used my own scrollbars and set their adjustments to
>the adjustments of the ScrolledWindow. The on_size_request() hack was to
>prevent the ScrolledWindows from resizing to the size of their child
>when I turned off their internal scrollbars.

you have entered a dark and frightening world of
using-GTK-in-ways-not-anticipated-by-its-designers.

the only way i have ever gotten this to work was to add a timeout for
configure events, and if some time (say, 0.25 seconds) elapsed without
another configure event, then use the last configured size at that
time.

its deeply ugly.

--p



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