[Xfce-bugs] [Bug 15338] New: The most recently used session should be the default in the session chooser

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Tue Apr 30 03:34:42 CEST 2019


https://bugzilla.xfce.org/show_bug.cgi?id=15338

            Bug ID: 15338
           Summary: The most recently used session should be the default
                    in the session chooser
    Classification: Xfce Core
           Product: Xfce4-session
           Version: Unspecified
          Hardware: PC (x86_64)
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
          Assignee: xfce-bugs at xfce.org
          Reporter: magnus.bergman at snisurset.net
  Target Milestone: Xfce 4.14

If there are multiple sessions in the list it's not the most recently used one
that is in the top of the list and selected. It's actually sorted the other way
around (at least for me, maybe the order is simply undefined).

To fix the session order I get the expected result (the most recently used
session selected) by simply replacing gtk_list_store_append() with
gtk_list_store_prepend() in xfsm_chooser_set_sessions(). But I don't know how
the list of sessions sent to this function is supposed to be sorted. Is it
perhaps better to fix it in the caller? Or perhaps assume the list is unsorted
and sort it on access time before adding the sessions to the list store?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list