diff options
author | Colomban Wendling <[email protected]> | 2022-06-07 19:19:44 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-21 19:33:52 +0200 |
commit | cbae71a72132d50dab610a650e62c9c64f55cce8 (patch) | |
tree | beca1f5f85b5397b1e3e708efca0ca8170e86c52 /libcaja-private/caja-keep-last-vertical-box.h | |
parent | 8b45333cf79c4f15f2a9244239cc8274659c9eed (diff) | |
download | caja-cbae71a72132d50dab610a650e62c9c64f55cce8.tar.bz2 caja-cbae71a72132d50dab610a650e62c9c64f55cce8.tar.xz |
caja-file-conflict-dialog: Move to automatic signal disconnection
Instead of manually keeping tabs on the signals so we can disconnect
them before the data parameter gets destroyed, let GObject
automatically track lifetime of the data, which it can do as that data
is a GObject itself.
This does not change behavior in the normal case, but makes sure the
callback simply cannot get called with invalid/freed parameters, even
if we did screw anything up (which we used to).
This actually would have solved #1630 as well with using the target
widgets as data parameters as the signal would have been disconnected
as soon as the widget got destroyed, no matter whether we got finalized
ourselves or not.
The signal IDs were also use as guards to whether the monitor was set
up for the related files, but we can just as well use the state of the
file list ready handle which should only be NULL when we actually have
monitors set up. Even if it wasn't the case, worse case scenario would
be removing a non-existent monitor, which is perfectly OK anyway.
Diffstat (limited to 'libcaja-private/caja-keep-last-vertical-box.h')
0 files changed, 0 insertions, 0 deletions