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/androperms.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/androperms.py')
-rw-r--r-- | plugins/python/androperms/androperms.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/python/androperms/androperms.py b/plugins/python/androperms/androperms.py index c9af7c4..a11c37d 100644 --- a/plugins/python/androperms/androperms.py +++ b/plugins/python/androperms/androperms.py @@ -96,18 +96,26 @@ class AndroPerms(Plugin): locations = gtk.TreeViewColumn() self._tree.append_column(locations) + cell = gtk.CellRendererPixbuf() + locations.pack_start(cell, False) + locations.add_attribute(cell, 'pixbuf', 0) + cell = gtk.CellRendererText() locations.pack_start(cell, False) - locations.add_attribute(cell, "text", 0) + locations.add_attribute(cell, 'text', 1) functions = gtk.TreeViewColumn() self._tree.append_column(functions) + cell = gtk.CellRendererPixbuf() + functions.pack_start(cell, False) + functions.add_attribute(cell, 'pixbuf', 2) + cell = gtk.CellRendererText() functions.pack_start(cell, True) - functions.add_attribute(cell, "text", 1) + functions.add_attribute(cell, 'text', 3) - self._store = gtk.TreeStore(str, str) + self._store = gtk.TreeStore(gtk.gdk.Pixbuf, str, gtk.gdk.Pixbuf, str) self._tree.set_model(self._store) pi = PanelItem(name="Permissions", lname="Permissions", widget=self._scrolled_window, path="SE") |