Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Set the same sort function for all columns
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:72ccdaea06f516710cb54ac5305a9115315de8c0
User & Date: brandon 2018-11-11 23:39:09
Context
2018-11-13
21:34
Properly escape the entirety of the Resources URLs in the infoview check-in: 7a468e8d7a user: brandon tags: trunk
2018-11-11
23:39
Set the same sort function for all columns check-in: 72ccdaea06 user: brandon tags: trunk
22:29
Explicitly set the locale correctly check-in: c4b4b0b501 user: brandon tags: trunk
Changes

Changes to src/grotesque/ui/gtk3/library/library.py.

43
44
45
46
47
48
49

50
51
52
53
54
55
56
57
        # number, 10: forgiveness, 11: tags, 12: date imported 13: star rating
        # text, 14: IFDB rating text, 15: star rating float, 16: IFDB
        # rating float, 17: story id, 18: text weight
        self.list_store = Gtk.ListStore(bool, str, str, str, str, str, str,
                                        str, str, int, str, str, str, str, str,
                                        float, float, int, Pango.Weight)
        self.list_store.set_sort_column_id(1, Gtk.SortType.ASCENDING)

        self.list_store.set_sort_func(1, self._sort, None)
        self.story_id_col = 17
        self.weight_col = 18
        # The following Filterstores keep track of which authors, years, etc
        # are currently represented in the library so the user may filter it by
        # them.
        self.author_store = FilterStore(self.conn, db.query.select_all_authors)
        self.year_store = FilterStore(self.conn, self._all_pub_years)







>
|







43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
        # number, 10: forgiveness, 11: tags, 12: date imported 13: star rating
        # text, 14: IFDB rating text, 15: star rating float, 16: IFDB
        # rating float, 17: story id, 18: text weight
        self.list_store = Gtk.ListStore(bool, str, str, str, str, str, str,
                                        str, str, int, str, str, str, str, str,
                                        float, float, int, Pango.Weight)
        self.list_store.set_sort_column_id(1, Gtk.SortType.ASCENDING)
        for col in range(1, 13):
            self.list_store.set_sort_func(col, self._sort, None)
        self.story_id_col = 17
        self.weight_col = 18
        # The following Filterstores keep track of which authors, years, etc
        # are currently represented in the library so the user may filter it by
        # them.
        self.author_store = FilterStore(self.conn, db.query.select_all_authors)
        self.year_store = FilterStore(self.conn, self._all_pub_years)