[gnome-tweaks] appearance: Move Background & Lock Screen tweaks here from desktop



commit 6b2405fe276dd1e7e6317b75540592383f620f9a
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Tue Jan 30 11:43:34 2018 -0500

    appearance: Move Background & Lock Screen tweaks here from desktop

 gtweak/tweaks/tweak_group_appearance.py | 16 +++++++++++++++-
 gtweak/tweaks/tweak_group_desktop.py    | 11 +----------
 2 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_appearance.py b/gtweak/tweaks/tweak_group_appearance.py
index db3fbd1..ff78735 100644
--- a/gtweak/tweaks/tweak_group_appearance.py
+++ b/gtweak/tweaks/tweak_group_appearance.py
@@ -18,7 +18,7 @@ from gtweak.tweakmodel import Tweak
 from gtweak.gshellwrapper import GnomeShellFactory
 from gtweak.gsettings import GSettingsSetting
 from gtweak.gtksettings import GtkSettingsManager
-from gtweak.widgets import ListBoxTweakGroup, GSettingsSwitchTweak, GSettingsComboTweak, Title, 
build_combo_box_text,build_label_beside_widget, FileChooserButton
+from gtweak.widgets import ListBoxTweakGroup, GSettingsSwitchTweak, GSettingsComboTweak, 
GSettingsComboEnumTweak, Title, build_combo_box_text,build_label_beside_widget, FileChooserButton, 
GSettingsFileChooserButtonTweak
 
 _shell = GnomeShellFactory().get_shell()
 _shell_loaded = _shell is not None
@@ -262,5 +262,19 @@ TWEAK_GROUPS = [
         CursorThemeSwitcher(),
         IconThemeSwitcher(),
         ShellThemeTweak(loaded=_shell_loaded),
+
+        Title(_("Background"), "", uid="title-theme"),
+        GSettingsFileChooserButtonTweak(_("Image"),"org.gnome.desktop.background", "picture-uri",
+            local_only=True, mimetypes=["application/xml","image/png","image/jpeg"]),
+        GSettingsComboEnumTweak(_("Adjustment"),"org.gnome.desktop.background", "picture-options"),
+
+        Title(_("Lock Screen"), "", uid="title-theme"),
+        GSettingsFileChooserButtonTweak(_("Image"),"org.gnome.desktop.screensaver", "picture-uri",
+            local_only=True, mimetypes=["application/xml","image/png","image/jpeg"]),
+        GSettingsComboEnumTweak(_("Adjustment"),"org.gnome.desktop.screensaver", "picture-options"),
+
+        # Title(_("Files"), ""),
+        # GSettingsSwitchTweak(_("Use location entry"), "org.gnome.nautilus.preferences",
+        # "always-use-location-entry",schema_filename="org.gnome.nautilus.gschema.xml"),
     ),
 ]
diff --git a/gtweak/tweaks/tweak_group_desktop.py b/gtweak/tweaks/tweak_group_desktop.py
index c322539..63be532 100644
--- a/gtweak/tweaks/tweak_group_desktop.py
+++ b/gtweak/tweaks/tweak_group_desktop.py
@@ -2,7 +2,7 @@
 # SPDX-License-Identifier: GPL-3.0+
 # License-Filename: LICENSES/GPL-3.0
 
-from gtweak.widgets import ListBoxTweakGroup, GSettingsSwitchTweak, GSettingsComboEnumTweak, 
GSettingsFileChooserButtonTweak, Title
+from gtweak.widgets import ListBoxTweakGroup, GSettingsSwitchTweak, Title
 
 dicons = GSettingsSwitchTweak(_("Show Icons"),"org.gnome.desktop.background","show-desktop-icons")
 
@@ -14,14 +14,5 @@ TWEAK_GROUPS = [
         GSettingsSwitchTweak(_("Network Servers"),"org.gnome.nautilus.desktop", "network-icon-visible", 
depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"),
         GSettingsSwitchTweak(_("Trash"),"org.gnome.nautilus.desktop", "trash-icon-visible", 
depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"),
         GSettingsSwitchTweak(_("Mounted Volumes"),"org.gnome.nautilus.desktop", "volumes-visible", 
depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"),
-        Title(_("Background"), "", uid="title-theme"),
-        GSettingsFileChooserButtonTweak(_("Image"),"org.gnome.desktop.background", "picture-uri", 
local_only=True, mimetypes=["application/xml","image/png","image/jpeg"]),
-        GSettingsComboEnumTweak(_("Adjustment"),"org.gnome.desktop.background", "picture-options"),
-        Title(_("Lock Screen"), "", uid="title-theme"),
-        GSettingsFileChooserButtonTweak(_("Image"),"org.gnome.desktop.screensaver", "picture-uri", 
local_only=True, mimetypes=["application/xml","image/png","image/jpeg"]),
-        GSettingsComboEnumTweak(_("Adjustment"),"org.gnome.desktop.screensaver", "picture-options"),
-        #Title(_("Files"), ""),
-        #GSettingsSwitchTweak(_("Use location entry"), "org.gnome.nautilus.preferences", 
"always-use-location-entry",schema_filename="org.gnome.nautilus.gschema.xml"),
-
     )
 ]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]