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

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to