~bernd-sch/onehundredscopes/sshsearch

« back to all changes in this revision

Viewing changes to unity-lens-sshsearch.py

  • Committer: Bernd Schlapsi
  • Date: 2011-12-30 19:23:16 UTC
  • Revision ID: brot@gmx.info-20111230192316-qoyspkdft8qtrk2w
renamed some files and created setup.py (not tested yet)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
TERMINAL_APP = 'gnome-terminal'
36
36
TERMINAL_APP_MIMETYPE = 'application-x-desktop'
37
37
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
 
38
ICON_FILE = os.path.join(SCRIPT_DIR, 'unity-lens-sshsearch.png')
38
39
 
39
40
class Daemon:
40
41
 
56
57
        # Populate categories
57
58
        cats = []
58
59
        cats.append(Unity.Category.new(SSHCONFIG,
59
 
                                       Gio.ThemedIcon.new(os.path.join(SCRIPT_DIR, 'sshsearch-lens.png')),
 
60
                                       Gio.ThemedIcon.new(ICON_FILE),
60
61
                                       Unity.CategoryRenderer.VERTICAL_TILE))
61
62
        cats.append(Unity.Category.new(KNOWN_HOSTS,
62
 
                                       Gio.ThemedIcon.new(os.path.join(SCRIPT_DIR, 'sshsearch-lens.png')),
 
63
                                       Gio.ThemedIcon.new(ICON_FILE),
63
64
                                       Unity.CategoryRenderer.VERTICAL_TILE))
64
65
        self._lens.props.categories = cats
65
66