Merge lp://staging/~azzar1/unity-lens-files/add-filesystem-icons into lp://staging/unity-lens-files
Proposed by
Andrea Azzarone
Status: | Merged |
---|---|
Approved by: | Paweł Stołowski |
Approved revision: | 240 |
Merged at revision: | 237 |
Proposed branch: | lp://staging/~azzar1/unity-lens-files/add-filesystem-icons |
Merge into: | lp://staging/unity-lens-files |
Diff against target: |
615 lines (+372/-35) 3 files modified
src/daemon.vala (+95/-4) src/folder.vala (+236/-31) tests/manual/folders.txt (+41/-0) |
To merge this branch: | bzr merge lp://staging/~azzar1/unity-lens-files/add-filesystem-icons |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paweł Stołowski (community) | Approve | ||
Review via email:
|
Commit message
Add filesystem icons in the "Folders" category of the files lens.
Description of the change
Manual test added. It's my first time with Vala so forgive me for my errors :)
To post a comment you must log in.
Hi Andrea, nice job, it works well and looks good, however it's missing support for recently introduced previews - if you right-click on a device icon in the dash, an empty preview is displayed and an error is printed to the stderr:
(process:3255): unity-files- daemon- WARNING **: daemon.vala:1042: Couldn't stat file: 'device: //099A- 74A7'
Could you please check with design what would they like to see as a device preview and implement the missing bits in the preview(..) method?
Manual tests should now follow the format requested by QA - see TEST_TEMPLATE.txt in unity source code. I know existing tests don't follow it (and need to be fixed), but when we introduce new tests file we should stick to the new format.
Also some minor comments:
This can fail and throw GLib.Error: launch_ default_ for_uri (get_volume_uri (), null);
415 + AppInfo.
Formatting issues (spaces missing):
363 + public Volume volume {get; set construct; }
378 + Object (volume:volume, uri:"device: //"+uuid, icon:icon_name, display_name:name, dnd_uri: "device: //"+uuid) ;