power-monitor: fix shutdown callback signature

The D-Bus signal is "PrepareForShutdown(b start)"; therefore, the
callback needs a boolean argument.
This commit is contained in:
Beniamino Galvani 2024-04-02 22:03:22 +02:00
parent 1b60dd9a9e
commit 61e520ca4b

View file

@ -170,7 +170,7 @@ prepare_for_sleep_cb(GDBusProxy *proxy, gboolean is_about_to_suspend, gpointer d
}
static void
prepare_for_shutdown_cb(GDBusProxy *proxy, gpointer data)
prepare_for_shutdown_cb(GDBusProxy *proxy, gboolean is_about_to_shutdown, gpointer data)
{
shutdown_signal(data);
}