diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2024-04-02 22:09:28 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2024-04-04 11:12:18 +0200 |
commit | 044620f8adcb598abd9beb04776af82627316e6d (patch) | |
tree | 63210e87682cf0c80d82da4bc122a000cbdd2c8c | |
parent | 3f24b99e8620aed79903f8604ed0dcacae11775b (diff) |
power-monitor: fix "shutdown" signal definitionbg/fix-shutdown-crash
NMPowerMonitor emits the "shutdown" signal without arguments; fix the
definition of the signal.
Fixes: bd38a1983251 ('connection: add support to down-on-poweroff')
-rw-r--r-- | src/core/nm-power-monitor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/nm-power-monitor.c b/src/core/nm-power-monitor.c index a9a70c39eb..289b0ff001 100644 --- a/src/core/nm-power-monitor.c +++ b/src/core/nm-power-monitor.c @@ -354,8 +354,7 @@ nm_power_monitor_class_init(NMPowerMonitorClass *klass) 0, NULL, NULL, - g_cclosure_marshal_VOID__BOOLEAN, + NULL, G_TYPE_NONE, - 1, - G_TYPE_BOOLEAN); + 0); } |