diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-12-21 23:34:14 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-12-21 23:34:14 (GMT) |
commit | 3bfff245c47c4dd1404c5ea7af0ff4858ac8d130 (patch) | |
tree | dc3613e2ebdef4d04fa874335795268dba732d31 /plugins/python/androperms/panel.py | |
parent | 0cfcbee3c536ac6d11ec806d47ce4c136f695697 (diff) |
Resolved relative addresses for routines and fixed bugs related to PyGObjects construction.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@308 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/python/androperms/panel.py')
-rw-r--r-- | plugins/python/androperms/panel.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/python/androperms/panel.py b/plugins/python/androperms/panel.py index bebeed5..b892339 100644 --- a/plugins/python/androperms/panel.py +++ b/plugins/python/androperms/panel.py @@ -41,7 +41,7 @@ def _build_permissions_panel_content(): functions.pack_start(cell, True) functions.add_attribute(cell, 'text', 3) - store = gtk.TreeStore(gtk.gdk.Pixbuf, str, gtk.gdk.Pixbuf, str) + store = gtk.TreeStore(gtk.gdk.Pixbuf, str, gtk.gdk.Pixbuf, str, str) tree.set_model(store) return scrolled_window, tree, store @@ -97,13 +97,13 @@ class PermsPanel(PanelItem): img = os.path.dirname(os.path.abspath(__file__)) + '/android.png' buf = gtk.gdk.pixbuf_new_from_file(img) - it = self._store.append(None, [buf, p, None, None]) + it = self._store.append(None, [buf, p, None, None, None]) img = os.path.dirname(os.path.abspath(__file__)) + '/routine.png' buf = gtk.gdk.pixbuf_new_from_file(img) for f in used[p]: - self._store.append(it, [None, "0x%08x" % f[0], buf, f[1]]) + self._store.append(it, [None, f[0], buf, f[1], f[2]]) self._tree.expand_all() @@ -117,4 +117,4 @@ class PermsPanel(PanelItem): # On ne traite que les lignes de code if model.get_value(it, 0) == None: - self.get_current_view().scroll_to_address(int(model.get_value(it, 1), 16)) + self.get_current_view().scroll_to_address(int(model.get_value(it, 4))) |