diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-06-13 14:00:43 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-08-05 14:19:28 (GMT) |
commit | a233d26ab9a70b4d2e7cab9edac9fa630328ca51 (patch) | |
tree | fb67571862f984743a16b835e78423b85309d55d | |
parent | 083460a7e7affd5d87d32f089a6a8b7e5e7f64d2 (diff) |
Request to the ObjectChooser objects filtered by activty
Previously used the type "Text", but this type include Write files,
and Read can't open them [1].
This filter does not work on external devices [2], but a patch for
sugar was already provided.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
[1] https://sugardextrose.org/issues/2439
[2] http://bugs.sugarlabs.org/ticket/4523
-rw-r--r-- | readactivity.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/readactivity.py b/readactivity.py index f77ec25..f62ffd3 100644 --- a/readactivity.py +++ b/readactivity.py @@ -629,7 +629,7 @@ class ReadActivity(activity.Activity): """ if not self._want_document: return - chooser = ObjectChooser(None, what_filter=mime.GENERIC_TYPE_TEXT) + chooser = ObjectChooser(None, what_filter=self.get_bundle_id()) try: result = chooser.run() if result == Gtk.ResponseType.ACCEPT: |