Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-04-09 15:21:24 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-04-09 15:21:24 (GMT)
commit51200c2c4f05e2b6f0aa8e5fef0867c32c4b344b (patch)
tree4c31c5ee84edf095717e5d0295b97da0e5d957d8 /src
parentea4aa33d2c459bccb6a2ae2b43d5506478062da9 (diff)
parentd13753b9d20a674d5555370dcc21c1765ee61335 (diff)
Merge branch 'master' of git://git.sugarlabs.org/labyrinth/mainline
Diffstat (limited to 'src')
-rw-r--r--src/ImageThought.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ImageThought.py b/src/ImageThought.py
index 0cb6a00..9f5b359 100644
--- a/src/ImageThought.py
+++ b/src/ImageThought.py
@@ -51,8 +51,11 @@ class ImageThought (ResizableThought):
# tmp files/links in the right places and reference the window.
def journal_open_image (self, filename=None):
if not filename:
- chooser = ObjectChooser(_('Choose image'),
- what_filter=mime.GENERIC_TYPE_IMAGE)
+ if hasattr(mime, 'GENERIC_TYPE_IMAGE'):
+ chooser = ObjectChooser(_('Choose image'),
+ what_filter=mime.GENERIC_TYPE_IMAGE)
+ else:
+ chooser = ObjectChooser(_('Choose image'))
try:
result = chooser.run()