Re: Scrolling a Tree View before it's realized
- From: Attilio Fiandrotti <attilio fiandrotti gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Scrolling a Tree View before it's realized
- Date: Sat, 11 Nov 2006 20:44:31 +0100
Liam R E Quin wrote:
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.
That's what i did, as suggested by tomas: disconnecting the signal
handler from the treeview after it has run one time.
Now scrolling works perfectly.
By the way, is it so obvious you should wait for your treeview to be
realized before scrolling it?
IIRC, this is not explicitly mentioned in the documentation.
cheers
Attilio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]