From 2802e399bd1572f7c492f76deb6e0298f8436dcb Mon Sep 17 00:00:00 2001 From: Ajay Garg Date: Mon, 15 Apr 2013 14:09:50 +0000 Subject: Now, the "odt" documents will not be shown in object-chooser. --- diff --git a/patches/0001-sdxo-2439-Now-Read-activity-will-only-show-what-is-n.patch b/patches/0001-sdxo-2439-Now-Read-activity-will-only-show-what-is-n.patch new file mode 100644 index 0000000..21a91d1 --- /dev/null +++ b/patches/0001-sdxo-2439-Now-Read-activity-will-only-show-what-is-n.patch @@ -0,0 +1,43 @@ +From a365d1f359b9a81bbaaf20a65124fdf276ed05ce Mon Sep 17 00:00:00 2001 +From: Ajay Garg +Date: Mon, 15 Apr 2013 19:29:26 +0530 +Subject: [PATCH] sdxo#2439: Now, "Read" activity will only show what is + needed. +Organization: Sugar Labs Foundation + + +Signed-off-by: Ajay Garg +--- + activity/activity.info | 2 +- + readactivity.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/activity/activity.info b/activity/activity.info +index a589c36..e184681 100644 +--- a/activity/activity.info ++++ b/activity/activity.info +@@ -4,7 +4,7 @@ bundle_id = org.laptop.sugar.ReadActivity + icon = activity-read + exec = sugar-activity readactivity.ReadActivity + show_launcher = no +-activity_version = 108 ++activity_version = 108.1 + mime_types = application/pdf;image/vnd.djvu;image/x.djvu;image/tiff;application/epub+zip;text/plain;application/zip + license = GPLv2+ + summary = Use this activity when you are ready to read! Remember to flip your computer around to feel like you are really holding a book! +diff --git a/readactivity.py b/readactivity.py +index f77ec25..ffd65d6 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=mime.GENERIC_TYPE_READ_TEXT) + try: + result = chooser.run() + if result == Gtk.ResponseType.ACCEPT: +-- +1.7.11.7 + -- cgit v0.9.1