diff options
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]]) |