aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-10-19 16:00:35 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-21 11:16:53 +0200
commit607b5035bf3e8dbb836aae6c45fd3cb6f2ad2b6f (patch)
tree4ac40ea15c716cb0a8084b0b555d8d4254023626 /src
parent96c7eb51dc0386264aade42c91f9c2d028794563 (diff)
downloadayatana-indicator-session-607b5035bf3e8dbb836aae6c45fd3cb6f2ad2b6f.tar.gz
ayatana-indicator-session-607b5035bf3e8dbb836aae6c45fd3cb6f2ad2b6f.tar.bz2
ayatana-indicator-session-607b5035bf3e8dbb836aae6c45fd3cb6f2ad2b6f.zip
src/backend-dbus/actions.c: Replace deprecated g_spawn_check_exit_status
Diffstat (limited to 'src')
-rw-r--r--src/backend-dbus/actions.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index c83d352..9450865 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -733,7 +733,11 @@ zenity_question (IndicatorSessionActionsDbus * self,
}
else
{
- confirmed = g_spawn_check_exit_status (exit_status, &error);
+ #if GLIB_CHECK_VERSION(2, 70, 0)
+ confirmed = g_spawn_check_wait_status (exit_status, &error);
+ #else
+ confirmed = g_spawn_check_exit_status (exit_status, &error);
+ #endif
}
log_and_clear_error (&error, G_STRLOC, G_STRFUNC);