From 4213aa6562ef0ee8f19f8cd111a739a0febaa4e6 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 10 Jul 2013 14:50:24 +0200 Subject: Use LOGIND_RUNNING() rather than sd_booted() --- mate-session/gsm-logout-dialog.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mate-session/gsm-logout-dialog.c') diff --git a/mate-session/gsm-logout-dialog.c b/mate-session/gsm-logout-dialog.c index ba28105..a98ffa9 100644 --- a/mate-session/gsm-logout-dialog.c +++ b/mate-session/gsm-logout-dialog.c @@ -152,7 +152,7 @@ gsm_logout_dialog_init (GsmLogoutDialog *logout_dialog) logout_dialog->priv->up_client = up_client_new (); #ifdef HAVE_SYSTEMD - if (sd_booted() > 0) + if (LOGIND_RUNNING()) logout_dialog->priv->systemd = gsm_get_systemd (); else #endif @@ -216,7 +216,7 @@ gsm_logout_supports_switch_user (GsmLogoutDialog *logout_dialog) gboolean ret; #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) + if (LOGIND_RUNNING()) ret = gsm_systemd_can_switch_user (logout_dialog->priv->systemd); else #endif @@ -231,7 +231,7 @@ gsm_logout_supports_reboot (GsmLogoutDialog *logout_dialog) gboolean ret; #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) + if (LOGIND_RUNNING()) ret = gsm_systemd_can_restart (logout_dialog->priv->systemd); else #endif @@ -249,7 +249,7 @@ gsm_logout_supports_shutdown (GsmLogoutDialog *logout_dialog) gboolean ret; #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) + if (LOGIND_RUNNING()) ret = gsm_systemd_can_stop (logout_dialog->priv->systemd); else #endif @@ -319,7 +319,7 @@ gsm_logout_dialog_timeout (gpointer data) if (session_type == NULL) { #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) { + if (LOGIND_RUNNING()) { GsmSystemd *systemd; systemd = gsm_get_systemd (); session_type = gsm_systemd_get_current_session_type (systemd); -- cgit v1.2.1