forked from pool/gnome-settings-daemon
Dominique Leuenberger
9e8af56684
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-settings-daemon?expand=0&rev=221
19 lines
1.1 KiB
Diff
19 lines
1.1 KiB
Diff
Index: gnome-settings-daemon-3.12.0.1/plugins/screensaver-proxy/gsd-screensaver-proxy-manager.c
|
|
===================================================================
|
|
--- gnome-settings-daemon-3.12.0.1.orig/plugins/screensaver-proxy/gsd-screensaver-proxy-manager.c
|
|
+++ gnome-settings-daemon-3.12.0.1/plugins/screensaver-proxy/gsd-screensaver-proxy-manager.c
|
|
@@ -253,7 +253,12 @@ handle_method_call (GDBusConnection
|
|
} else if (g_strcmp0 (method_name, "UnThrottle") == 0) {
|
|
g_dbus_method_invocation_return_value (invocation, NULL);
|
|
} else if (g_strcmp0 (method_name, "Lock") == 0) {
|
|
- goto unimplemented;
|
|
+ GVariant *ret;
|
|
+ ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (G_DBUS_PROXY (manager->priv->session)),
|
|
+ "Lock",
|
|
+ NULL,
|
|
+ G_DBUS_CALL_FLAGS_NONE,
|
|
+ -1, NULL, NULL);
|
|
} else if (g_strcmp0 (method_name, "SimulateUserActivity") == 0) {
|
|
goto unimplemented;
|
|
} else if (g_strcmp0 (method_name, "GetActive") == 0) {
|