diff options
author | Andre Miranda <andreldm@xfce.org> | 2019-04-18 22:25:44 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2019-04-18 22:25:44 -0300 |
commit | e79c7128fbc6fe3bf29bd194e8ea1175667af33d (patch) | |
tree | d3e10fd6b8955a1ebaa9c7a05a1c28f34eeab9f9 /settings | |
parent | ee9422d7ad470cd3599777bdb0d45b702e56f069 (diff) | |
download | ixfce4-power-manager-e79c7128fbc6fe3bf29bd194e8ea1175667af33d.tar.gz |
Use the newer up_client_get_devices2
Diffstat (limited to 'settings')
-rw-r--r-- | settings/xfpm-settings.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c index 26dbfc1d..6c8479ea 100644 --- a/settings/xfpm-settings.c +++ b/settings/xfpm-settings.c @@ -2248,7 +2248,11 @@ add_all_devices (void) GPtrArray *array = NULL; guint i; - array = up_client_get_devices(upower); +#if UP_CHECK_VERSION(0, 99, 8) + array = up_client_get_devices2 (upower); +#else + array = up_client_get_devices (upower); +#endif if ( array ) { |