Re: Scrolling a Tree View before it's realized
- From: Liam R E Quin <liam holoweb net>
- To: Attilio Fiandrotti <attilio fiandrotti gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Scrolling a Tree View before it's realized
- Date: Sat, 11 Nov 2006 14:31:43 -0500
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]