<font face="trebuchet ms,sans-serif">Thank you James for being so illuminating!<br></font><br><div class="gmail_quote">On Fri, Sep 3, 2010 at 2:36 AM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">G'day,<br>
<br>
The list box that you describe is called the Object Chooser, and is a<br>
standard part of Sugar. You will also see it if you start the Read<br>
activity. Any future activity might use it. In a quick check, the<br>
activities that I know use it are Browse, ImageViewer, Jukebox,<br>
Memorize, Paint, Read, TurtleArt and Write.<br>
<br>
The Object Chooser displays the objects in the journal, or on an<br>
external medium such as a USB drive. It is like a file selection dialog<br>
box.<br>
<br>
A new feature in Sugar 0.84 is that the Object Chooser can be restricted<br>
to specific object types [1]. The Image Viewer activity provides to the<br>
Object Chooser a filter specification [2] for image type objects.<br>
Therefore, by default, only the image type objects will be displayed.<br>
This uses an Internet standard called MIME [3].<br>
<br>
So your question is better framed more generally as "In the object<br>
chooser, should the child be restricted to only the MIME types that the<br>
activity can process?"<br>
<br>
My opinion is that this is a design choice, not a defect. Leading the<br>
child into a mistake (trying to open a text file in an image viewer) is<br>
a useful learning tool. If you wish to discuss it further, may I<br>
suggest writing to the design team at Sugar Labs? I'm not on the design<br>
team.<br>
<br>
I've checked the many bugs in <a href="http://bugs.sugarlabs.org/" target="_blank">http://bugs.sugarlabs.org/</a> for references<br>
to the Object Chooser. Only one is open and seems to relate, slightly,<br>
which is SL#834 "Let activity use its own MIME type in ObjectChooser" [4].<br>
<br>
(As a separate issue, there is no result of selecting a text object.<br>
Image Viewer does not do anything. I think it at least should say that<br>
it cannot load text.)<br>
<br>
By the way, you can take a screenshot using Alt/1, and use that in<br>
explaining a problem.<br>
<br>
References:<br>
<br>
1. <a href="http://wiki.sugarlabs.org/go/0.84/Notes#Journal" target="_blank">http://wiki.sugarlabs.org/go/0.84/Notes#Journal</a> "The Object Chooser<br>
can now be filtered by data type"<br>
<br>
2. <a href="http://git.sugarlabs.org/projects/imageviewer/repos/mainline/blobs/master/ImageViewerActivity.py#line254" target="_blank">http://git.sugarlabs.org/projects/imageviewer/repos/mainline/blobs/master/ImageViewerActivity.py#line254</a><br>
<br>
3. <a href="http://en.wikipedia.org/wiki/MIME" target="_blank">http://en.wikipedia.org/wiki/MIME</a><br>
<br>
4. <a href="http://bugs.sugarlabs.org/ticket/834" target="_blank">http://bugs.sugarlabs.org/ticket/834</a><br>
<div class="im"><br>
On Thu, Sep 02, 2010 at 10:47:41PM -0700, shiyam jannan wrote:<br>
> There is a list box to choose a file when starting to open a new<br>
> object to view from Image Viewer activity. The list box contains<br>
> -Anything<br>
> -List of favorite activities<br>
<br>
</div>Actually, that's the list of used activities for which journal objects<br>
exist.<br>
<div class="im"><br>
> -Text<br>
> -Image<br>
> -Audio<br>
> -Video<br>
> -Link<br>
><br>
> Eventhough the listbox successfully filters files in the journal, only<br>
> image files can be viewed by Image Viewer. Is it necessary to have<br>
> other filters? Is that a defect?<br>
<br>
</div>No, and no.<br>
<font color="#888888"><br>
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
_______________________________________________<br>
Testing mailing list<br>
<a href="mailto:Testing@lists.laptop.org">Testing@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/testing" target="_blank">http://lists.laptop.org/listinfo/testing</a><br>
</font></blockquote></div><br>