[gnome-tweak-tool/gnome-3-22] Revert "Make Gtk/EnablePrimaryPaste configurable through gsettings"
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool/gnome-3-22] Revert "Make Gtk/EnablePrimaryPaste configurable through gsettings"
- Date: Fri, 9 Dec 2016 16:46:31 +0000 (UTC)
commit 94fdd744299e1dbd81d99ab7c3344dec2a9e12ae
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Dec 9 17:45:37 2016 +0100
Revert "Make Gtk/EnablePrimaryPaste configurable through gsettings"
Pushed this on the stable branch by mistake.
This reverts commit 2f9b1b3bd57a77e05fd3c15d1d3ea32af9ca17c5.
gtweak/tweaks/tweak_group_keymouse.py | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_keymouse.py b/gtweak/tweaks/tweak_group_keymouse.py
index 8e939ed..28a965f 100644
--- a/gtweak/tweaks/tweak_group_keymouse.py
+++ b/gtweak/tweaks/tweak_group_keymouse.py
@@ -23,6 +23,17 @@ import gtweak
from gtweak.utils import XSettingsOverrides, walk_directories, make_combo_list_with_default
from gtweak.widgets import ListBoxTweakGroup, GSettingsComboTweak, GSettingsSwitchTweak,
GetterSetterSwitchTweak, Title, GSettingsComboEnumTweak
+class PrimaryPasteTweak(GetterSetterSwitchTweak):
+ def __init__(self, **options):
+ self._xsettings = XSettingsOverrides()
+ GetterSetterSwitchTweak.__init__(self, _("Middle-click Paste"), **options)
+
+ def get_active(self):
+ return self._xsettings.get_enable_primary_paste()
+
+ def set_active(self, v):
+ self._xsettings.set_enable_primary_paste(v)
+
class KeyThemeSwitcher(GSettingsComboTweak):
def __init__(self, **options):
GSettingsComboTweak.__init__(self,
@@ -66,9 +77,7 @@ TWEAK_GROUPS = [
"org.gnome.settings-daemon.peripherals.mouse",
"locate-pointer",
schema_filename="org.gnome.settings-daemon.peripherals.gschema.xml"),
- GSettingsSwitchTweak(_("Middle-click Paste"),
- "org.gnome.desktop.interface",
- "gtk-enable-primary-paste"),
+ PrimaryPasteTweak(),
Title(_("Touchpad"), ""),
GSettingsComboEnumTweak(_("Click method"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]