Merge lp://qastaging/~kamstrup/libunity/merge-strategy into lp://qastaging/libunity
Proposed by
Mikkel Kamstrup Erlandsen
Status: | Merged |
---|---|
Approved by: | Michal Hruby |
Approved revision: | 115 |
Merged at revision: | 103 |
Proposed branch: | lp://qastaging/~kamstrup/libunity/merge-strategy |
Merge into: | lp://qastaging/libunity |
Diff against target: |
390 lines (+205/-34) 8 files modified
examples/merge-strategy.py (+27/-0) src/Makefile.am (+1/-0) src/unity-lens-merge-strategy.vala (+38/-0) src/unity-lens-private.vala (+31/-7) src/unity-lens-tools.vala (+41/-24) src/unity-lens.vala (+19/-0) src/unity-scope-proxy-local.vala (+1/-3) test/vala/test-lens.vala (+47/-0) |
To merge this branch: | bzr merge lp://qastaging/~kamstrup/libunity/merge-strategy |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michal Hruby (community) | Approve | ||
Review via email:
|
Description of the change
Adds a 'merge-strategy' property to Unity.Lens that can be set to an
implementation of the Unity.MergeStrategy interface.
This can be used to control how results from scopes are merged into the
global results model for the lens.
There is a Python example added in the examples/ folder, but it requires
the pygobject patch sets from https:/
in order to work.
To post a comment you must log in.
Apart from the conflict, I think the changed on_scope_added method breaks stuff for non-local scopes - when ScopeProxyRemote is instantiated (and ScopeFactory emits "scope-added") the model name/address is not yet known, so the notification needs to be there. (+ it can change if the remote scope crashes)