Re: Scrolling a Tree View before it's realized



On Sat, 2006-11-11 at 11:51 +0100, Attilio Fiandrotti wrote:
[...]
I eventually managed this by scrolling the treeview from a callback that 
gets fired after the expose event is fired.
In order to have scrolling performed only the first time expose event is 
fired, i use a global flag which i reset from inside the callback the 
first time it's run.

An alternative might be to have the signal handler disconnect the
signal.

Or is that what you mean by a second signal handler?  The first
time handler would look like:
    replace the signal handler with the redraw function
    scroll the view
    call the redraw function
and the other is the redraw function.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org




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