Merge lp://qastaging/~3v1n0/unity/dbus-indicators-proxy into lp://qastaging/unity
Proposed by
Marco Trevisan (Treviño)
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2133 |
Proposed branch: | lp://qastaging/~3v1n0/unity/dbus-indicators-proxy |
Merge into: | lp://qastaging/unity |
Prerequisite: | lp://qastaging/~3v1n0/unity/indicators-p |
Diff against target: |
1049 lines (+260/-524) 7 files modified
UnityCore/DBusIndicators.cpp (+202/-450) UnityCore/DBusIndicators.h (+2/-8) UnityCore/GLibDBusProxy.cpp (+51/-55) UnityCore/GLibDBusProxy.h (+2/-2) UnityCore/Indicators.cpp (+2/-5) UnityCore/Indicators.h (+1/-1) plugins/unityshell/src/PanelView.cpp (+0/-3) |
To merge this branch: | bzr merge lp://qastaging/~3v1n0/unity/dbus-indicators-proxy |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michal Hruby (community) | Approve | ||
Review via email:
|
Commit message
DBusIndicators code rewritten to use glib::DBusProxy instead of raw gdbus calls
Description of the change
DBusIndicators code rewritten to use glib::DBusProxy instead of raw gdbus calls.
The code now is more simple, clean and C++ conformant. Also, now we always make sure that the panel is launched when it is not available (before this was not happening in some corner cases).
Tests are covered by lp:~3v1n0/unity/indicators-tests
To post a comment you must log in.
787 + bool auto_reconnect)
What are you actually trying to achieve with this? GDBusProxy automatically reconnects itself if you construct it using a known service name (as opposed to unique bus address). Therefore it seems redundant to me.
If you want to make sure that a service is alive, all you need to do is watch changes to the connected state and if it disconnects, just call any method from given interface and that will dbus-activate the service again.