[BUG] Default sorting order and deleting a trip, while switching sorting orders

Lubomir I. Ivanov neolit123 at gmail.com
Tue Feb 19 11:13:51 PST 2013


On 19 February 2013 19:55, Linus Torvalds <torvalds at linux-foundation.org> wrote:
> On Tue, Feb 19, 2013 at 9:10 AM, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
>> just noticed a couple of things, which might have been lurking for
>> quite some time.
>
> Yeah, these are not new.
>
>> 1) (more of a nitpick) the default sorting order in the divelog isn't
>> correctly indicated when the app. is first started.
>
> This is normal gtk behavior. The initial ordering isn't really a
> "sorted" order, it's just the native order of the tree model (ie the
> order we've filled it in). The fact that we our native order is the
> same as the trip-date order is just happenstance.
>

perhaps it's still best to provide the visual indication to the user,
that there is some sorting order in action when the app. starts, even
if its not 100% the same as manually clicking on a column title. i.e.
we are sorting by "date" so the column should have the arrow
indication (up or down - i'm not sure) show on app. start.

just found this in the GTK docs:
gtk_tree_view_column_set_sort_indicator

it pre-sets the sorting indicator when the app. starts.
(example patch attached, but it follows # - explanation below)

but i've noticed that trips are now only visible if we select the
"dive_list.nr" column, i can recall that this was the case for the
"date" column only.
hm, so if dives and trips are sorted by date on import, why are the
trips rows only visible for the # column?

lubomir
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sortorder.patch
Type: application/octet-stream
Size: 661 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130219/41520c17/attachment.obj>


More information about the subsurface mailing list