summaryrefslogtreecommitdiff
path: root/mate-session/gsm-logout-dialog.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-04-22 18:44:37 +0200
committerStefano Karapetsas <[email protected]>2014-04-22 18:44:37 +0200
commit80be90bb422ef8cb5a28c7ff3fe2a337dce8c368 (patch)
tree412b4a342f93e8cc793d3b7b8e3d779d2a51f694 /mate-session/gsm-logout-dialog.c
parenta73419b7c73cf840ad76b6110f178b1156612bf9 (diff)
downloadmate-session-manager-80be90bb422ef8cb5a28c7ff3fe2a337dce8c368.tar.bz2
mate-session-manager-80be90bb422ef8cb5a28c7ff3fe2a337dce8c368.tar.xz
Allow to build with upower 0.99
Diffstat (limited to 'mate-session/gsm-logout-dialog.c')
-rw-r--r--mate-session/gsm-logout-dialog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mate-session/gsm-logout-dialog.c b/mate-session/gsm-logout-dialog.c
index da3d651..697b70d 100644
--- a/mate-session/gsm-logout-dialog.c
+++ b/mate-session/gsm-logout-dialog.c
@@ -211,10 +211,10 @@ gsm_logout_supports_system_suspend (GsmLogoutDialog *logout_dialog)
if (LOGIND_RUNNING())
ret = gsm_systemd_can_suspend (logout_dialog->priv->systemd);
#endif
-#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER)
+#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0)
else
#endif
-#ifdef HAVE_UPOWER
+#if defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0)
ret = up_client_get_can_suspend (logout_dialog->priv->up_client);
#endif
return ret;
@@ -229,10 +229,10 @@ gsm_logout_supports_system_hibernate (GsmLogoutDialog *logout_dialog)
if (LOGIND_RUNNING())
ret = gsm_systemd_can_hibernate (logout_dialog->priv->systemd);
#endif
-#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER)
+#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0)
else
#endif
-#ifdef HAVE_UPOWER
+#if defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0)
ret = up_client_get_can_hibernate (logout_dialog->priv->up_client);
#endif
return ret;