diff options
Diffstat (limited to 'sysutils/mate-power-manager/files/patch-src_gpm-statistics.c')
-rw-r--r-- | sysutils/mate-power-manager/files/patch-src_gpm-statistics.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/mate-power-manager/files/patch-src_gpm-statistics.c b/sysutils/mate-power-manager/files/patch-src_gpm-statistics.c new file mode 100644 index 000000000000..faa3bc25149f --- /dev/null +++ b/sysutils/mate-power-manager/files/patch-src_gpm-statistics.c @@ -0,0 +1,14 @@ +--- src/gpm-statistics.c.orig 2014-04-20 19:31:29.658178466 +0000 ++++ src/gpm-statistics.c 2014-04-20 19:32:20.889177637 +0000 +@@ -1796,7 +1796,11 @@ + g_signal_connect (wakeups, "data-changed", G_CALLBACK (gpm_stats_data_changed_cb), NULL); + + /* coldplug */ ++#ifdef HAVE_OLD_UPOWER + ret = up_client_enumerate_devices_sync (client, NULL, NULL); ++#else ++ ret = FALSE; ++#endif + if (!ret) + goto out; + devices = up_client_get_devices (client); |