Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Garg <ajay@activitycentral.com>2013-04-15 14:09:50 (GMT)
committer Ajay Garg <ajay@activitycentral.com>2013-04-15 14:09:50 (GMT)
commit2802e399bd1572f7c492f76deb6e0298f8436dcb (patch)
tree6015dd56fc681238769df560866bf08fbd768eb8
parent6e04249b6c21afb3a02ecf6a5642031c6cfc519c (diff)
Now, the "odt" documents will not be shown in object-chooser.
-rw-r--r--patches/0001-sdxo-2439-Now-Read-activity-will-only-show-what-is-n.patch43
1 files changed, 43 insertions, 0 deletions
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 <ajay@activitycentral.com>
+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 <ajay@activitycentral.com>
+---
+ 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
+