~cwayne/onehundredscopes/utilities-precise-with-thesaurus

« back to all changes in this revision

Viewing changes to src/unity-lens-utilities

  • Committer: David Callé
  • Date: 2012-01-29 10:44:35 UTC
  • Revision ID: davidc@framli.eu-20120129104435-m4i0qvjvsnnvf9u6
Port to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        def __init__ (self):
32
32
                # The path for the Lens *must* also match the one in our .lens file
33
33
                self._lens = Unity.Lens.new ("/net/launchpad/lens/utilities", "utilities")
34
 
                self._scope = Unity.Scope.new ("/net/launchpad/lens/utilities/main")
35
34
                
36
35
                self._lens.props.search_hint = "Use tools"
37
36
                self._lens.props.visible = False;
38
37
                self._lens.props.search_in_global = True;
39
38
                
 
39
                icon = "/usr/share/unity/lenses/utilities/utilities-lens.svg"
 
40
                
40
41
                # Populate categories
41
42
                cats = []
42
 
                cats.append (Unity.Category.new ("Unity.CategoryRenderer.VERTICAL_TILE",
43
 
                                                 Gio.ThemedIcon.new("None"),
 
43
                cats.append (Unity.Category.new ("Calculator",
 
44
                                                 Gio.ThemedIcon.new(icon),
 
45
                                                 Unity.CategoryRenderer.VERTICAL_TILE))
 
46
                cats.append (Unity.Category.new ("Cities",
 
47
                                                 Gio.ThemedIcon.new(icon),
44
48
                                                 Unity.CategoryRenderer.VERTICAL_TILE))
45
49
 
46
50
                self._lens.props.categories = cats