aboutsummaryrefslogtreecommitdiff
path: root/src/session-list.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/session-list.vala')
-rw-r--r--src/session-list.vala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/session-list.vala b/src/session-list.vala
index ffb50f4..770186d 100644
--- a/src/session-list.vala
+++ b/src/session-list.vala
@@ -27,11 +27,10 @@ public class SessionPrompt : PromptBox
Object (id: id, session: session, default_session: default_session);
}
- private GLib.List<LightDM.Session> sessions_sorted_ci (GLib.List<LightDM.Session> sessions)
+ private unowned GLib.List<LightDM.Session> sessions_sorted_ci (GLib.List<LightDM.Session> sessions)
{
- var ci_sorted_sessions = sessions.copy();
- ci_sorted_sessions.sort_with_data((a, b) => GLib.strcmp (a.name.casefold(), b.name.casefold()));
- return ci_sorted_sessions;
+ sessions.sort_with_data((a, b) => GLib.strcmp (a.name.casefold(), b.name.casefold()));
+ return sessions;
}
private ToggleBox box;