[pitivi] prefs: use correct casing for constant.



commit 91edf889effaf3f982baec93b29da56d82fc904b
Author: Mathieu Duponchelle <mduponchelle1 gmail com>
Date:   Thu Dec 26 16:31:23 2013 +0100

    prefs: use correct casing for constant.
    
    Also don't reimport GlobalSettings.

 pitivi/dialogs/prefs.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/dialogs/prefs.py b/pitivi/dialogs/prefs.py
index 182d67f..2423576 100644
--- a/pitivi/dialogs/prefs.py
+++ b/pitivi/dialogs/prefs.py
@@ -401,9 +401,7 @@ class PreferencesDialog(object):
 
 if __name__ == "__main__":
 
-    from pitivi.settings import GlobalSettings
-
-    options = (
+    OPTIONS = (
         ('numericPreference1', 10),
         ('numericPreference2', 2.4),
         ('textPreference1', "banana"),
@@ -415,7 +413,7 @@ if __name__ == "__main__":
         ('aFontPreference', "Sans 9"),
     )
 
-    for attrname, default in options:
+    for attrname, default in OPTIONS:
         GlobalSettings.addConfigOption(attrname, default=default)
 
 ## Numeric


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