[gnome-tweaks] Fix 'Additional Layout Options' to be sorted alphabetically (issue #273)
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweaks] Fix 'Additional Layout Options' to be sorted alphabetically (issue #273)
- Date: Sat, 13 Feb 2021 06:16:57 +0000 (UTC)
commit d800e421e82205ee9dc03d2e80eb4a3d1117f62c
Author: Lukáš Kotek <lkotek suse com>
Date: Wed Feb 12 16:06:59 2020 +0100
Fix 'Additional Layout Options' to be sorted alphabetically (issue #273)
gtweak/tweaks/tweak_group_xkb.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtweak/tweaks/tweak_group_xkb.py b/gtweak/tweaks/tweak_group_xkb.py
index b41a627..6ba9195 100644
--- a/gtweak/tweaks/tweak_group_xkb.py
+++ b/gtweak/tweaks/tweak_group_xkb.py
@@ -162,7 +162,8 @@ class TypingTweakGroup(Gtk.Box):
for opt in set(self._xkb_info.get_all_option_groups()) - self.XKB_OPTIONS_BLACKLIST:
obj = _XkbOption(opt, self._kbdsettings, self._xkb_info)
self._option_objects.append(obj)
- self.pack_start(obj, False, False, 0)
+ self._option_objects.sort(key=lambda item_desc: item_desc.name)
+ for item in self._option_objects: self.pack_start(item, False, False, 0)
TweakGroup.__init__(self, _("Typing"), *self._option_objects)
self.connect("destroy", self._on_destroy)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]