How to remenber the scroll bar position?



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]