Zim

Comment 3 for bug 1515079

Revision history for this message
Pl (plprgt) wrote :

Sorry, should have added links to docs.
So
http://www.pygtk.org/pygtk2reference/class-gtkliststore.html#method-gtkliststore--swap
and
http://www.pygtk.org/pygtk2reference/class-gtktreesortable.html
(use search to find quotes on the pages).

I may be wrong but as I understand after clicking on column name the only way to disable sorting is by recreating a table. Maybe it is better to completely disable sorting by column names clicking and make sorting (by gtk.ListStore.reorder) via an option in table properties or popup menu. What I like in this approach is that otherwise it is easy to accidentally press column name and lose your table's initial order without undo option.