[gnome-tweak-tool] tweak_legacy.py is loaded with the -l command line option.



commit 7a7c2f7a59f8113a403ffde01caa0119488c4a3b
Author: Alex Muñoz <alexmudoz gmail com>
Date:   Sat Jul 20 22:42:57 2013 -0400

    tweak_legacy.py is loaded with the  -l command line option.

 gnome-tweak-tool              |    3 +
 gtweak/tweakmodel.py          |    6 ++
 gtweak/tweaks/tweak_mouse.py  |   10 ---
 gtweak/tweaks/tweak_typing.py |  141 -----------------------------------------
 4 files changed, 9 insertions(+), 151 deletions(-)
---
diff --git a/gnome-tweak-tool b/gnome-tweak-tool
index eb7bafd..23c99f6 100755
--- a/gnome-tweak-tool
+++ b/gnome-tweak-tool
@@ -31,6 +31,8 @@ if __name__ == '__main__':
     parser = optparse.OptionParser()
     parser.add_option("-t", "--test", action="store_true",
                   help="Enable test and debug code")
+    parser.add_option("-l", "--load", action="store_true",
+                  help="Load all tweaks")
     parser.add_option("-p", "--prefix",
                   help="Installation prefix (for gsettings schema, themes, etc)", metavar="[/, /usr]")
     parser.add_option("-v", "--verbose", action="store_true",
@@ -62,6 +64,7 @@ if __name__ == '__main__':
     gtweak.PKG_DATA_DIR = PKG_DATA_DIR
     gtweak.LOCALE_DIR = LOCALE_DIR
     gtweak.ENABLE_TEST = options.test
+    gtweak.ALL_TWEAKS = options.load
     gtweak.APP_NAME = "gnome-tweak-tool"
     gtweak.VERBOSE = options.verbose
 
diff --git a/gtweak/tweakmodel.py b/gtweak/tweakmodel.py
index c611a30..a803d77 100644
--- a/gtweak/tweakmodel.py
+++ b/gtweak/tweakmodel.py
@@ -147,6 +147,12 @@ class TweakModel(Gtk.ListStore):
             except ValueError:
                 pass
         
+        if not gtweak.ALL_TWEAKS:
+            try:
+                tweak_files.remove("tweak_legacy")
+            except ValueError:
+                pass
+        
         groups = []
         tweaks = []
 


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