How to remenber the scroll bar position?
- From: Nicolas Joseph <nicolas joseph valaide org>
- To: gtk-list gnome org
- Subject: How to remenber the scroll bar position?
- Date: Wed, 21 Jul 2010 23:12:10 +0200
Hello,
I refresh a treeview and I would like restore the old position of the
scoll bar.
Before clearing the treesore, I save the original postion:
var vscrool_bar = this.scrolled_window.get_vscrollbar () as
Gtk.VScrollbar;
double position = vscrool_bar.get_value ();
And after repopulate, I restore this value:
vscrool_bar.set_value (position);
But the scroll bar don't move and the signal value-changed is not emit.
Have you an idea?
Thank's in advance.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]