How to remenber the scroll bar position?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux