Robert Mader
92375c75f8
cleanup: Use g_clear_signal_handler() where possible
...
This is inspired by 98892391d764d1cf where the usage of
`g_signal_handler_disconnect()` without resetting the corresponding
handler id later resulted in a bug. Using `g_clear_signal_handler()`
makes sure we avoid similar bugs and is almost always the better
alternative. We use it for new code, let's clean up the old code to
also use it.
A further benefit is that it can get called even if the passed id is
0, allowing us to remove a lot of now unnessecary checks, and the fact
that `g_clear_signal_handler()` checks for the right type size, forcing us
to clean up all places where we used `guint` instead of `gulong`.
No functional changes intended here and all changes should be trivial,
thus bundled in one big commit.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/940
2019-11-21 15:02:27 +00:00
..
2019-01-26 18:07:03 +01:00
2018-06-15 19:09:53 +00:00
2018-06-15 19:09:53 +00:00
2019-10-16 11:38:14 +00:00
2016-02-16 19:02:48 +08:00
2019-01-06 21:57:16 +01:00
2016-02-16 19:02:48 +08:00
2019-10-11 23:04:01 +02:00
2019-10-11 23:04:01 +02:00
2019-11-07 12:56:58 +00:00
2019-09-27 15:48:36 +00:00
2019-10-15 16:35:16 +00:00
2019-02-25 15:35:38 +00:00
2019-11-21 15:02:27 +00:00
2018-11-06 17:17:36 +01:00
2019-11-06 15:59:16 +01:00
2019-11-21 15:02:27 +00:00
2019-11-20 12:07:51 +01:00
2019-09-20 12:09:13 +00:00
2019-02-25 15:35:38 +00:00
2019-10-16 11:38:14 +00:00
2019-01-22 18:32:28 +01:00
2019-10-14 10:53:38 +02:00
2018-06-15 13:45:29 -07:00
2019-11-21 15:02:27 +00:00
2018-11-27 15:34:13 +01:00
2019-11-21 15:02:27 +00:00
2018-11-06 17:17:36 +01:00
2019-11-21 15:02:27 +00:00
2018-11-06 17:17:36 +01:00
2016-10-11 22:51:50 +08:00
2016-10-11 22:51:50 +08:00
2019-10-07 22:28:45 +00:00
2019-06-24 18:24:57 +02:00
2019-10-07 20:25:20 +00:00
2018-11-06 17:17:36 +01:00
2019-09-05 07:29:10 +00:00
2018-11-19 14:58:48 +00:00
2019-11-21 15:02:27 +00:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2019-11-21 15:02:27 +00:00
2019-11-21 15:02:27 +00:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2019-08-06 00:41:36 +00:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2019-10-28 19:10:01 +00:00
2018-11-06 17:17:36 +01:00
2019-10-07 20:25:20 +00:00
2019-10-07 20:25:20 +00:00
2019-10-07 08:29:18 +00:00
2018-02-23 18:57:47 +08:00
2019-11-21 15:02:27 +00:00
2019-10-16 11:38:14 +00:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2019-08-24 08:59:08 +00:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2019-11-05 13:07:47 +00:00
2018-11-06 17:17:36 +01:00
2019-10-28 19:10:01 +00:00
2019-10-28 19:10:01 +00:00
2019-11-21 15:02:27 +00:00
2019-11-21 15:02:27 +00:00
2018-11-06 17:17:36 +01:00
2018-11-06 17:17:36 +01:00
2019-10-16 11:38:14 +00:00
2018-11-06 17:17:36 +01:00
2019-10-16 11:38:14 +00:00
2018-11-06 17:17:36 +01:00
2019-08-24 08:59:08 +00:00
2018-11-06 17:17:36 +01:00
2016-09-15 09:54:55 +08:00
2019-08-21 15:47:14 +00:00
2019-11-21 15:02:27 +00:00
2019-02-06 12:24:03 +00:00
2019-10-07 20:25:20 +00:00
2018-02-23 18:57:40 +08:00
2019-11-21 15:02:27 +00:00
2016-08-22 21:03:41 +08:00
2019-11-21 15:02:27 +00:00
2018-02-23 18:57:53 +08:00
2019-08-06 00:41:36 +00:00
2019-06-19 15:19:05 +00:00
2019-08-23 13:23:07 +00:00
2018-11-06 17:17:36 +01:00
2019-11-01 14:14:21 +01:00
2017-12-18 13:15:09 +01:00
2019-05-02 16:31:45 +02:00
2019-10-16 11:38:14 +00:00
2019-11-21 15:02:27 +00:00
2018-11-06 17:17:36 +01:00
2019-08-19 17:14:40 +02:00
2019-10-07 20:25:20 +00:00
2019-01-23 14:18:13 +01:00