Unable to open Additional Layout Options in tweak tool
Hi, I was unable to open Additional Layout Options in the Keyboard & Mouse section of the gnome-tweaks tool. I ran gnome-tweaks with the verbose option and had the following error (ran on RedHat 7.6):
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_keymouse.py", line 245, in _on_browse_clicked
box = TypingTweakGroup()
File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_xkb.py", line 167, in __init__
TweakGroup.__init__(self, _("Typing"), *self._option_objects)
TypeError: unbound method __init__() must be called with TweakGroup instance as first argument (got TypingTweakGroup instance instead)
I was able to find references to this error in a few places
I followed the advice of user Shing-Shong Shei who mentioned adding TweakGroup back as an argument to the TypingTweakGroup class
Maybe just a missing argument?
--- /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_xkb.py 2019-02-15 12:46:27.000000000 -0500
+++ /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_xkb.py- 2018-07-18 07:27:01.000000000 -0400
@@ -135,7 +135,7 @@
elif active and not w._val in self._values and w._val:
self._parent_settings.setting_add_to_list(TypingTweakGroup.XKB_GSETTINGS_NAME, w._val)
-class TypingTweakGroup(Gtk.Box, TweakGroup):
+class TypingTweakGroup(Gtk.Box):
XKB_GSETTINGS_SCHEMA = "org.gnome.desktop.input-sources"
XKB_GSETTINGS_NAME = "xkb-options"
and that worked. Should this change be made permanent?