power: Use g_signal_connect_object

Objects created using the object storage API are not disposed when the panel
that created them is disposed. In order to prevent segfaults we need to manually
disconnect signal handler connected to these objects or we can do it
automatically using g_signal_connect_object.

Fixes: https://launchpad.net/bugs/1797205
11 jobs for fix-lp-1797205 in 4 minutes and 24 seconds (queued for 77 minutes and 52 seconds)
latest
Status Job ID Name Coverage
  Build
passed #122244
build

00:01:59

 
  Test
passed #122246
asan

00:01:43

passed #122245
test

00:00:41

 
  Manual
manual #122251
allowed to fail manual
armv8
manual #122247
allowed to fail manual
flatpak
manual #122250
allowed to fail manual
msan
manual #122252
allowed to fail manual
ppc64le
manual #122248
allowed to fail manual
tsan
manual #122249
allowed to fail manual
ubsan
 
  Review
manual #122253
allowed to fail manual
review
manual #122254
allowed to fail manual
stop_review