summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-10-08 08:42:13 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-10-08 08:42:13 (GMT)
commit4a51f37982c2d5d358971e947d05786b939af88e (patch)
tree06bbde53a6476c3dea08fcc9003d66df1c5d1cde
parentb75a1889afa207051395b0288890b5b197c87b75 (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
-rw-r--r--ChangeLog17
-rw-r--r--plugins/python/androperms/Makefile.am2
-rw-r--r--plugins/python/androperms/android.pngbin0 -> 1102 bytes
-rw-r--r--plugins/python/androperms/androperms.py14
-rw-r--r--plugins/python/androperms/panel.py12
-rw-r--r--plugins/python/androperms/routine.pngbin0 -> 568 bytes
6 files changed, 40 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 0f1d521..e2c92d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+12-10-08 Cyrille Bagard <nocbos@gmail.com>
+
+ * plugins/python/androperms/android.png:
+ Add pictures to the list of Android permissions.
+
+ * plugins/python/androperms/androperms.py:
+ New entry: picture for the treeview.
+
+ * plugins/python/androperms/Makefile.am:
+ Add the new *.png files to androperms_DATA.
+
+ * plugins/python/androperms/panel.py:
+ Add pictures to the list of Android permissions.
+
+ * plugins/python/androperms/routine.png:
+ New entry: picture for the treeview.
+
12-10-07 Cyrille Bagard <nocbos@gmail.com>
* src/gtkext/easygtk.h:
diff --git a/plugins/python/androperms/Makefile.am b/plugins/python/androperms/Makefile.am
index f44be3c..c9c8430 100644
--- a/plugins/python/androperms/Makefile.am
+++ b/plugins/python/androperms/Makefile.am
@@ -3,6 +3,7 @@ andropermsdir = $(datadir)/openida/plugins/python/androperms
androperms_DATA = \
__init__.py \
+ android.png \
androperms.db \
androperms.py \
defs.py \
@@ -10,6 +11,7 @@ androperms_DATA = \
panel.py \
parser.py \
reader.py \
+ routine.png \
stack.py \
string.py
diff --git a/plugins/python/androperms/android.png b/plugins/python/androperms/android.png
new file mode 100644
index 0000000..ce9c905
--- /dev/null
+++ b/plugins/python/androperms/android.png
Binary files differ
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")
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]])
diff --git a/plugins/python/androperms/routine.png b/plugins/python/androperms/routine.png
new file mode 100644
index 0000000..2ddc67a
--- /dev/null
+++ b/plugins/python/androperms/routine.png
Binary files differ