~ubuntu-branches/ubuntu/oneiric/gnome-tweak-tool/oneiric

« back to all changes in this revision

Viewing changes to gtweak/gshellwrapper.py

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Bicha
  • Date: 2011-08-22 09:31:04 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110822093104-kjnv8zx3ypbetuz6
Tags: 3.1.0-0ubuntu1
* New upstream release.
  - Show in Unity also (LP: #803519)
  - New focus follows mouse tweak
  - New window focus mode tweak
  - New desktop item visibility tweaks
  - Window theme tweak moved to Interface panel
  - Change tweakgroup architecture
  - Translatable
  - Renamed in menus as 'Advanced Settings'
  - Change tweakgroup architecture
  - Translatable                      
  - Appearance improvements (theme install, sorted combo boxes)
  - Add a -v,--verbose option that prints changed settings
  - Add a -d,--debug option
* debian/control: Manually create m4 directory
* debian/patches/01_menu_category.patch: Refreshed
* debian/watch: Watch unstable releases also

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
class GnomeShell:
41
41
 
 
42
    EXTENSION_STATE = {
 
43
        "ENABLED"       :   1,
 
44
        "DISABLED"      :   2,
 
45
        "ERROR"         :   3,
 
46
        "OUT_OF_DATE"   :   4
 
47
    }
 
48
 
 
49
    EXTENSION_TYPE = {
 
50
        "SYSTEM"        :   1,
 
51
        "PER_USER"      :   2
 
52
    }
 
53
 
42
54
    DATA_DIR = os.path.join(GLib.get_user_data_dir(), "gnome-shell")
43
55
 
44
56
    def __init__(self):
54
66
        out = self._proxy.execute_js('const ExtensionSystem = imports.ui.extensionSystem; ExtensionSystem.extensionMeta')
55
67
        return json.loads(out)
56
68
 
57
 
    def get_version(self):
 
69
    @property
 
70
    def version(self):
58
71
        return json.loads(self._proxy.execute_js('const Config = imports.misc.config; Config.PACKAGE_VERSION'))
59
72
 
 
73
 
 
74
 
60
75
if __name__ == "__main__":
61
76
    s = GnomeShell()
 
77
    print "Shell Version: %s" % s.version
62
78
    print s.list_extensions()