From fc5793e742d769febd3239bab8e88750457423ab Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Sun, 13 Oct 2013 00:49:24 +0200 Subject: [PATCH] lib: Fix crasher calling _about_to_sleep_sync() https://bugs.freedesktop.org/show_bug.cgi?id=54976 --- libupower-glib/up-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c index 2334a68..c993391 100644 --- a/libupower-glib/up-client.c +++ b/libupower-glib/up-client.c @@ -277,7 +277,7 @@ up_client_about_to_sleep_sync (UpClient *client, g_return_val_if_fail (client->priv->proxy != NULL, FALSE); ret = dbus_g_proxy_call (client->priv->proxy, "AboutToSleep", &error_local, - G_TYPE_STRING, sleep_kind, + G_TYPE_STRING, up_sleep_kind_to_string (sleep_kind), G_TYPE_INVALID, G_TYPE_INVALID); if (!ret) {