diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-30 09:19:52 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-30 09:19:52 +0200 |
commit | 7ce8811a028949e343933d9af74698955d1c637d (patch) | |
tree | e590760edaa561c4ef746a7f1b1ba097e37c89da /tests/backend-dbus/mock-unity-session.cc | |
parent | 16008bb3a547389a8870692a5af6729420b32120 (diff) | |
download | ayatana-indicator-session-7ce8811a028949e343933d9af74698955d1c637d.tar.gz ayatana-indicator-session-7ce8811a028949e343933d9af74698955d1c637d.tar.bz2 ayatana-indicator-session-7ce8811a028949e343933d9af74698955d1c637d.zip |
Things are not that simple... Complete previous commit, now switch to org.ayatana.Desktop Dbus session bus name complete.
Diffstat (limited to 'tests/backend-dbus/mock-unity-session.cc')
-rw-r--r-- | tests/backend-dbus/mock-unity-session.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/backend-dbus/mock-unity-session.cc b/tests/backend-dbus/mock-unity-session.cc index d32e339..8bc06a3 100644 --- a/tests/backend-dbus/mock-unity-session.cc +++ b/tests/backend-dbus/mock-unity-session.cc @@ -21,32 +21,32 @@ gboolean -MockUnitySession :: handle_lock (UnitySession * us, +MockUnitySession :: handle_lock (DesktopSession * us, GDBusMethodInvocation * inv, gpointer gself) { static_cast<MockUnitySession*>(gself)->my_last_action = Lock; - unity_session_complete_lock (us, inv); + desktop_session_complete_lock (us, inv); return true; } gboolean -MockUnitySession :: handle_prompt_lock (UnitySession * us, +MockUnitySession :: handle_prompt_lock (DesktopSession * us, GDBusMethodInvocation * inv, gpointer gself) { static_cast<MockUnitySession*>(gself)->my_last_action = PromptLock; - unity_session_complete_prompt_lock (us, inv); + desktop_session_complete_prompt_lock (us, inv); return true; } gboolean -MockUnitySession :: handle_request_logout (UnitySession * us, +MockUnitySession :: handle_request_logout (DesktopSession * us, GDBusMethodInvocation * inv, gpointer gself) { static_cast<MockUnitySession*>(gself)->my_last_action = RequestLogout; - unity_session_complete_request_logout (us, inv); + desktop_session_complete_request_logout (us, inv); return true; } @@ -56,15 +56,15 @@ MockUnitySession :: handle_request_logout (UnitySession * us, namespace { - const char * const UNITY_SESSION_NAME = "com.canonical.Unity"; - const char * const UNITY_SESSION_PATH = "/com/canonical/Unity/Session"; + const char * const UNITY_SESSION_NAME = "org.ayatana.Desktop"; + const char * const UNITY_SESSION_PATH = "/org/ayatana/Desktop/Session"; } MockUnitySession :: MockUnitySession (GMainLoop * loop, GDBusConnection * bus_connection): MockObject (loop, bus_connection, UNITY_SESSION_NAME, UNITY_SESSION_PATH), - my_skeleton (unity_session_skeleton_new ()), + my_skeleton (desktop_session_skeleton_new ()), my_last_action (None) { g_signal_connect (my_skeleton, "handle-lock", |