diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-10-08 08:42:13 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-10-08 08:42:13 (GMT) |
commit | 4a51f37982c2d5d358971e947d05786b939af88e (patch) | |
tree | 06bbde53a6476c3dea08fcc9003d66df1c5d1cde /plugins/python/androperms/panel.py | |
parent | b75a1889afa207051395b0288890b5b197c87b75 (diff) |
Added pictures to the list of Android permissions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@266 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/python/androperms/panel.py')
-rw-r--r-- | plugins/python/androperms/panel.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/python/androperms/panel.py b/plugins/python/androperms/panel.py index ca7bb90..ecbd762 100644 --- a/plugins/python/androperms/panel.py +++ b/plugins/python/androperms/panel.py @@ -3,6 +3,8 @@ import os +import gtk + class PermsPanel: """Display all permissions found in the Manifest.""" @@ -71,7 +73,13 @@ class PermsPanel: if len(self._used[p]) > 0: - it = store.append(None, [p, None]) + img = os.path.dirname(os.path.abspath(__file__)) + '/android.png' + buf = gtk.gdk.pixbuf_new_from_file(img) + + it = store.append(None, [buf, p, None, None]) + + img = os.path.dirname(os.path.abspath(__file__)) + '/routine.png' + buf = gtk.gdk.pixbuf_new_from_file(img) for f in self._used[p]: - store.append(it, ["0x%08x" % f[0], f[1]]) + store.append(it, [None, "0x%08x" % f[0], buf, f[1]]) |