diff options
author | Morgan Collett <morgan.collett@gmail.com> | 2008-11-18 18:27:52 (GMT) |
---|---|---|
committer | Morgan Collett <morgan.collett@gmail.com> | 2008-11-18 18:27:52 (GMT) |
commit | f11407aca336750006af11c1dd90491ae3c59358 (patch) | |
tree | f913654b06e8f687247bf546ca87862f63c4545f | |
parent | db9242c8738df91dc868b96be54946b98bd6f814 (diff) |
Remove timeout hack for object picker
-rw-r--r-- | readactivity.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/readactivity.py b/readactivity.py index f16267e..9728f50 100644 --- a/readactivity.py +++ b/readactivity.py @@ -210,10 +210,10 @@ class ReadActivity(activity.Activity): # uncomment this and adjust the path for easier testing #else: # self._load_document('file:///home/smcv/tmp/test.pdf') - self._show_object_picker = gobject.timeout_add(1000, - self._show_picker_cb) + if self._object_id is None: + self._show_journal_object_picker() - def _show_picker_cb(self): + def _show_journal_object_picker(self): """Show the journal object picker to load a document. This is for if Read is launched without a document. |