Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ImageViewerActivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'ImageViewerActivity.py')
-rw-r--r--ImageViewerActivity.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ImageViewerActivity.py b/ImageViewerActivity.py
index 9600bca..7c88048 100644
--- a/ImageViewerActivity.py
+++ b/ImageViewerActivity.py
@@ -28,6 +28,7 @@ import gtk, gobject
from sugar.graphics.alert import NotifyAlert
from sugar.graphics.objectchooser import ObjectChooser
+from sugar import mime
from sugar import network
from sugar.datastore import datastore
@@ -145,7 +146,8 @@ class ImageViewerActivity(activity.Activity):
chooser = ObjectChooser(_('Choose document'), self,
gtk.DIALOG_MODAL |
- gtk.DIALOG_DESTROY_WITH_PARENT)
+ gtk.DIALOG_DESTROY_WITH_PARENT, \
+ what_filter=mime.GENERIC_TYPE_IMAGE)
try:
result = chooser.run()