diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-10-27 13:39:43 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-10-27 13:39:43 (GMT) |
commit | 7bdeca1ff9ed724667a1d3a4dc06e971a9f40f10 (patch) | |
tree | ddb1dd7d732a5c64e52eca25ece6ccb485657e0a | |
parent | ee29e5ec0073c93e99f70788dbae5291c7f3f5b0 (diff) |
Various fixes and code clean up.
-rw-r--r-- | XbookActivity.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/XbookActivity.py b/XbookActivity.py index c0a9200..d4324de 100644 --- a/XbookActivity.py +++ b/XbookActivity.py @@ -1,4 +1,3 @@ -import os import logging from gettext import gettext as _ import gtk @@ -21,9 +20,9 @@ class XbookActivity(Activity): self.add(vbox) vbox.show() - toolbar = Toolbar(self._evince_view) - vbox.pack_start(toolbar, False) - toolbar.show() + self._toolbar = Toolbar(self._evince_view) + vbox.pack_start(self._toolbar, False) + self._toolbar.show() scrolled = gtk.ScrolledWindow() vbox.pack_start(scrolled, True, True) @@ -34,9 +33,6 @@ class XbookActivity(Activity): def execute(self, command, args): if(command == 'open_document'): - #FIXME: Get the entire path from GSugarDownload - file_name = '/tmp/' + args[0] - - document = evince.factory_get_document('file://' + file_name) + document = evince.factory_get_document('file://' + args[0]) self._evince_view.set_document(document) - toolbar.set_document(document) + self._toolbar.set_document(document) |