diff options
author | Fabio Erculiani <[email protected]> | 2013-07-10 14:50:24 +0200 |
---|---|---|
committer | Fabio Erculiani <[email protected]> | 2013-07-10 16:32:53 +0200 |
commit | 4213aa6562ef0ee8f19f8cd111a739a0febaa4e6 (patch) | |
tree | 548d0db7a72b7031ffd4676826707f8be01ff467 /mate-session/gsm-logout-dialog.c | |
parent | da13489e6b1f6f015a684c9b2c0d30297485952a (diff) | |
download | mate-session-manager-4213aa6562ef0ee8f19f8cd111a739a0febaa4e6.tar.bz2 mate-session-manager-4213aa6562ef0ee8f19f8cd111a739a0febaa4e6.tar.xz |
Use LOGIND_RUNNING() rather than sd_booted()
Diffstat (limited to 'mate-session/gsm-logout-dialog.c')
-rw-r--r-- | mate-session/gsm-logout-dialog.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |