Merge lp:~stolowski/libunity/async-preview-with-null into lp:libunity
Proposed by
Paweł Stołowski
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Michal Hruby | ||||
Approved revision: | 185 | ||||
Merged at revision: | 183 | ||||
Proposed branch: | lp:~stolowski/libunity/async-preview-with-null | ||||
Merge into: | lp:libunity | ||||
Diff against target: |
88 lines (+59/-1) 2 files modified
src/unity-previews.vala (+1/-1) test/vala/test-lens.vala (+58/-0) |
||||
To merge this branch: | bzr merge lp:~stolowski/libunity/async-preview-with-null | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michal Hruby (community) | Approve | ||
Review via email: mp+127519@code.launchpad.net |
Commit message
Allow null preview argument in preview_ready signal by declaring it with "?"; this results in an empty GenericPreview. Without the fix null argument is rejected with critical error by vala-generated code at runtime. Added test case for null preview.
Description of the change
Allow null preview argument in preview_ready signal by declaring it with "?"; this results in an empty GenericPreview. Without the fix null argument is rejected with critical error by vala-generated code at runtime. Added test case for null preview.
To post a comment you must log in.
58 + Timeout.add (100, () =>
Can we change this to Idle.add()? The faster the tests run, the better ;)