Merge lp:~mhr3/unity-lens-files/fix-921665 into lp:unity-lens-files
Proposed by
Michal Hruby
Status: | Merged |
---|---|
Approved by: | Mikkel Kamstrup Erlandsen |
Approved revision: | 215 |
Merged at revision: | 216 |
Proposed branch: | lp:~mhr3/unity-lens-files/fix-921665 |
Merge into: | lp:unity-lens-files |
Diff against target: |
184 lines (+57/-26) 2 files modified
src/daemon.vala (+56/-25) src/folder.vala (+1/-1) |
To merge this branch: | bzr merge lp:~mhr3/unity-lens-files/fix-921665 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mikkel Kamstrup Erlandsen (community) | Approve | ||
Review via email: mp+95865@code.launchpad.net |
Description of the change
Fix activation of bookmark URIs. Standard URIs now also fall through so unity will activate them (that way they're launched using proper AppLaunchContext).
To post a comment you must log in.
did know you could do 'if (flag in flags)' in Vala. That is crazy cool :-)
7 Unity.FilesLens .append_ events_ sorted (results, results_model,
8 - 0, int64.MAX, false,
9 - category_id);
10 + 0, int64.MAX, 0,
11 + null, category_id);
Can you use ResultFlags.NONE instead of 0 to improve legibility here?
80 + private const string ATTR_TYPE_ AND_HIDDEN = FILE_ATTRIBUTE_ STANDARD_ TYPE + STANDARD_ IS_HIDDEN; AND_HIDDEN = FILE_ATTRIBUTE_ STANDARD_ TYPE + STANDARD_ SIZE + STANDARD_ IS_HIDDEN;
81 + "," + FILE_ATTRIBUTE_
82 + private const string ATTR_SIZE_
83 + "," + FILE_ATTRIBUTE_
84 + "," + FILE_ATTRIBUTE_
I think you should change the name of ATTR_SIZE_ AND_HIDDEN since it's slightly misleading (excluding the TYPE). Maybe just ATTR_TYPE_HIDDEN and ATTR_TYPE_ HIDDEN_ SIZE?
Otherwise looking great!