diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-13 00:49:24 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-13 00:49:24 +0200 |
commit | fc5793e742d769febd3239bab8e88750457423ab (patch) | |
tree | 6035e4cfc4495f0b2ddf98f1d2239a528f4ef609 /libupower-glib | |
parent | a10a61e181bdb7ed5ca1f838c824e73d4a40152d (diff) | |
download | upower-fc5793e742d769febd3239bab8e88750457423ab.tar.gz |
lib: Fix crasher calling _about_to_sleep_sync()
https://bugs.freedesktop.org/show_bug.cgi?id=54976
Diffstat (limited to 'libupower-glib')
-rw-r--r-- | libupower-glib/up-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |