summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/background/msd-background-manager.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/background/msd-background-manager.c b/plugins/background/msd-background-manager.c
index b6fed5d..78a38bf 100644
--- a/plugins/background/msd-background-manager.c
+++ b/plugins/background/msd-background-manager.c
@@ -415,10 +415,16 @@ queue_timeout (MsdBackgroundManager *manager)
static void
disconnect_session_manager_listener (MsdBackgroundManager* manager)
{
+#if GLIB_CHECK_VERSION(2,62,0)
+ if (manager->proxy) {
+ g_clear_signal_handler (&manager->proxy_signal_id, manager->proxy);
+ }
+#else
if (manager->proxy && manager->proxy_signal_id) {
g_signal_handler_disconnect (manager->proxy, manager->proxy_signal_id);
manager->proxy_signal_id = 0;
}
+#endif
}
static void