diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-15 20:19:01 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-15 20:19:01 (GMT) |
commit | 495e7cf655febc540b492933d270172a45ab078d (patch) | |
tree | f98bcf298e7d2b0b11202cdf2aefb2e647d55f1f | |
parent | 8e3ec8715ae36ddf08dce783dbe88f28fe987198 (diff) |
Fixes and bump to 16.
-rw-r--r-- | XbookActivity.py | 9 | ||||
-rw-r--r-- | activity/activity.info | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/XbookActivity.py b/XbookActivity.py index 813c9f8..b85fc99 100644 --- a/XbookActivity.py +++ b/XbookActivity.py @@ -82,13 +82,14 @@ class XbookActivity(activity.Activity): else: # Wait for a successful join before trying to get the document self.connect("joined", self._joined_cb) - - # FIXME: this should be called by activity.Activity on realize - self.read_file() + else: + # FIXME: this should be called by activity.Activity on realize + self.read_file() def read_file(self): logging.debug('XbookActivity.read_file: ' + self.jobject.file_path) - self._load_document('file://' + self.jobject.file_path) + if self.jobject.file_path: + self._load_document('file://' + self.jobject.file_path) def _download_result_cb(self, getter, tempfile, suggested_name, buddy): del self._tried_buddies diff --git a/activity/activity.info b/activity/activity.info index 37f6a3d..e21fccb 100644 --- a/activity/activity.info +++ b/activity/activity.info @@ -4,4 +4,4 @@ service_name = org.laptop.sugar.Xbook icon = activity-xbook class = XbookActivity.XbookActivity show_launcher = yes -activity_version = 15 +activity_version = 16 |