|
|
a233c0 |
diff -up gnome-tweaks-3.28.1/gtweak/tweaks/tweak_group_shell_extensions.py.set-rows-not-activateble gnome-tweaks-3.28.1/gtweak/tweaks/tweak_group_shell_extensions.py
|
|
|
a233c0 |
--- gnome-tweaks-3.28.1/gtweak/tweaks/tweak_group_shell_extensions.py.set-rows-not-activateble 2019-08-14 10:17:43.958232804 +0200
|
|
|
a233c0 |
+++ gnome-tweaks-3.28.1/gtweak/tweaks/tweak_group_shell_extensions.py 2019-08-14 10:17:43.961232804 +0200
|
|
|
a233c0 |
@@ -239,7 +239,8 @@ class ShellExtensionTweakGroup(ListBoxTw
|
|
|
a233c0 |
|
|
|
a233c0 |
ListBoxTweakGroup.__init__(self,
|
|
|
a233c0 |
_("Extensions"),
|
|
|
a233c0 |
- *extension_tweaks)
|
|
|
a233c0 |
+ *extension_tweaks,
|
|
|
a233c0 |
+ activatable=True)
|
|
|
a233c0 |
|
|
|
a233c0 |
if shell is None:
|
|
|
a233c0 |
return # we're done
|
|
|
a233c0 |
diff -up gnome-tweaks-3.28.1/gtweak/widgets.py.set-rows-not-activateble gnome-tweaks-3.28.1/gtweak/widgets.py
|
|
|
a233c0 |
--- gnome-tweaks-3.28.1/gtweak/widgets.py.set-rows-not-activateble 2019-08-14 10:17:43.960232804 +0200
|
|
|
a233c0 |
+++ gnome-tweaks-3.28.1/gtweak/widgets.py 2019-08-14 10:19:22.332231444 +0200
|
|
|
a233c0 |
@@ -202,6 +202,10 @@ class ListBoxTweakGroup(Gtk.ListBox, Twe
|
|
|
a233c0 |
def __init__(self, name, *tweaks, **options):
|
|
|
a233c0 |
if 'uid' not in options:
|
|
|
a233c0 |
options['uid'] = self.__class__.__name__
|
|
|
a233c0 |
+ if 'activatable' not in options:
|
|
|
a233c0 |
+ activatable = False
|
|
|
a233c0 |
+ else:
|
|
|
a233c0 |
+ activatable = options['activatable']
|
|
|
a233c0 |
Gtk.ListBox.__init__(self,
|
|
|
a233c0 |
selection_mode=Gtk.SelectionMode.NONE,
|
|
|
a233c0 |
name=options['uid'])
|
|
|
a233c0 |
@@ -217,12 +221,12 @@ class ListBoxTweakGroup(Gtk.ListBox, Twe
|
|
|
a233c0 |
TweakGroup.__init__(self, name, **options)
|
|
|
a233c0 |
|
|
|
a233c0 |
for t in tweaks:
|
|
|
a233c0 |
- self.add_tweak_row(t)
|
|
|
a233c0 |
+ self.add_tweak_row(t, activatable)
|
|
|
a233c0 |
|
|
|
a233c0 |
#FIXME: need to add remove_tweak_row and remove_tweak (which clears
|
|
|
a233c0 |
#the search cache etc)
|
|
|
a233c0 |
|
|
|
a233c0 |
- def add_tweak_row(self, t, position=None):
|
|
|
a233c0 |
+ def add_tweak_row(self, t, activatable=False, position=None):
|
|
|
a233c0 |
if t == None:
|
|
|
a233c0 |
return None
|
|
|
a233c0 |
|
|
|
a233c0 |
@@ -235,6 +239,7 @@ class ListBoxTweakGroup(Gtk.ListBox, Twe
|
|
|
a233c0 |
if isinstance(t, Title):
|
|
|
a233c0 |
row.get_style_context().add_class("title")
|
|
|
a233c0 |
row.add(t)
|
|
|
a233c0 |
+ row.set_activatable(activatable)
|
|
|
a233c0 |
if position is None:
|
|
|
a233c0 |
self.add(row)
|
|
|
a233c0 |
else:
|