Merge lp:~3v1n0/unity/panel-shared-dbus-model into lp:unity
Proposed by
Marco Trevisan (Treviño)
Status: | Merged |
---|---|
Approved by: | Brandon Schaefer |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3290 |
Proposed branch: | lp:~3v1n0/unity/panel-shared-dbus-model |
Merge into: | lp:unity |
Diff against target: |
116 lines (+19/-8) 6 files modified
panel/PanelController.cpp (+4/-3) panel/PanelIndicatorsView.cpp (+3/-0) panel/PanelView.cpp (+5/-2) panel/PanelView.h (+1/-1) panel/StandalonePanel.cpp (+5/-1) tests/test_panel_view.cpp (+1/-1) |
To merge this branch: | bzr merge lp:~3v1n0/unity/panel-shared-dbus-model |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Brandon Schaefer (community) | Approve | ||
Review via email: mp+157780@code.launchpad.net |
Commit message
PanelController: create only one instance of DBusIndicators and share it between Views.
We can just have one dbus-model for indicators, and use it for all our panels.
This saves some unneeded allocations in multi-monitor environments.
Description of the change
In the past I already updated DBusIndicators to be multi-monitor friendly, but I've never shared it between panels.
We can safely do it, having just one DBusProxy that monitors our panel service to update indicators (and to callback it).
To post a comment you must log in.
LGTM