mutter/src
Robert Mader 92375c75f8 cleanup: Use g_clear_signal_handler() where possible
This is inspired by 98892391d7 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
..
backends cleanup: Use g_clear_signal_handler() where possible 2019-11-21 15:02:27 +00:00
compositor cleanup: Use g_clear_signal_handler() where possible 2019-11-21 15:02:27 +00:00
core cleanup: Use g_clear_signal_handler() where possible 2019-11-21 15:02:27 +00:00
meta Allow changing Clutter debug flags at runtime 2019-10-25 19:12:34 +00:00
tests cleanup: Use g_clear_signal_handler() where possible 2019-11-21 15:02:27 +00:00
ui meta: Move private defines to a private header 2019-10-15 11:03:56 +00:00
wayland cleanup: Use g_clear_signal_handler() where possible 2019-11-21 15:02:27 +00:00
x11 cleanup: Use g_clear_signal_handler() where possible 2019-11-21 15:02:27 +00:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build core/core: Rename and move to x11/meta-x11-window-control 2019-10-15 07:17:29 +00:00
meta-marshal.list cursor-tracker: Use our own marshal for cursor-moved 2019-07-31 09:34:17 +00:00
org.freedesktop.login1.xml MetaLauncher: Don't g_error() on failure 2015-11-06 17:03:59 -05:00
org.gnome.Mutter.DisplayConfig.xml fixed typo 2018-07-24 13:16:36 +00:00
org.gnome.Mutter.IdleMonitor.xml idle-monitor: Add ResetIdletime API, for testing purposes 2018-04-16 13:28:03 +02:00
org.gnome.Mutter.RemoteDesktop.xml Fix typo in RemoteDesktop dbus api 2019-05-22 16:21:57 +02:00
org.gnome.Mutter.ScreenCast.xml org.gnome.Mutter.ScreenCast: Document what was added in API version 2 2019-02-26 13:39:11 +00:00