~doublep/py-gtktree/main

Viewing all changes in revision 27.

  • Committer: Paul Pogonyshev
  • Date: 2009-11-13 21:02:10 UTC
  • Revision ID: pogonyshev@gmx.net-20091113210210-amujwna4tld827y7
2009-11-13  Paul Pogonyshev  <pogonyshev@gmx.net>

        * gtktree/model.py: Use native PyGTK support for
        'gtk.TreeSortable' implementation (now available in trunk) if
        present in runtime, else fallback on using our 'c_hacks'.
        (RowObjectListStore._handle_new_value_order): Fix wrong creation
        of 'new_order' list.
        (RowObjectTreeStore._do_apply_sort_settings): Likewise.
        (RowObjectTreeStore._get_child_node_insertion_point): New method.

        * gtktree/_impl/tree_node.py (TreeNode.create_forest): New class
        method.
        (TreeNode.build_row_object_skeleton): New method.
        (_DefaultTreeNodeChildren._do_insert): Implement proper insertion
        in a sorted model.

        * test/list_store.py (RowObjectListStoreTestCase.test_sort)
        (RowObjectListStoreTestCase.test_sortable_interface_1)
        (RowObjectListStoreTestCase.test_sortable_interface_set_item)
        (RowObjectListStoreTestCase.test_sortable_interface_note_changes):
        Fix wrong (though currently unused) expected 'reordered'
        parameter.

        * test/tree_store.py (RowObjectTreeStoreTestCase.test_sortable_interface_1):
        New test.
        (_SORTING_FOO_FOREST, _SORTING_FOO_FOREST_SORTED_ASCENDING)
        (_SORTING_FOO_FOREST_SORTED_DESCENDING): New constants.
        (_create_sorting_foo_tree_store): New function.

        * docs/py-gtktree.txt: A mindo fix.

        * examples/drag_between_lists.py:
        * examples/drag_between_tree_and_list.py):
        * examples/simple_list.py: Don't use 'sort_column_id' property as
        it is too new (GTK+ 2.18).

        * TODO: One new item.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: