diff options
Diffstat (limited to 'plugins/background')
-rw-r--r-- | plugins/background/msd-background-manager.c | 7 | ||||
-rw-r--r-- | plugins/background/msd-background-manager.h | 1 | ||||
-rw-r--r-- | plugins/background/msd-background-plugin.c | 1 | ||||
-rw-r--r-- | plugins/background/msd-background-plugin.h | 1 | ||||
-rw-r--r-- | plugins/background/test-background.c | 1 |
5 files changed, 11 insertions, 0 deletions
diff --git a/plugins/background/msd-background-manager.c b/plugins/background/msd-background-manager.c index 0ac1615..78a38bf 100644 --- a/plugins/background/msd-background-manager.c +++ b/plugins/background/msd-background-manager.c @@ -4,6 +4,7 @@ * Copyright (C) 2007 William Jon McCann <[email protected]> * Copyright (C) 2007 Red Hat, Inc. * Copyright (C) 2012 Jasmine Hassan <[email protected]> + * Copyright (C) 2012-2021 MATE Developers * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -414,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 diff --git a/plugins/background/msd-background-manager.h b/plugins/background/msd-background-manager.h index c2fb7d0..8fd4895 100644 --- a/plugins/background/msd-background-manager.h +++ b/plugins/background/msd-background-manager.h @@ -1,6 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright (C) 2007 William Jon McCann <[email protected]> + * Copyright (C) 2012-2021 MATE Developers * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/plugins/background/msd-background-plugin.c b/plugins/background/msd-background-plugin.c index 7957230..55d88f5 100644 --- a/plugins/background/msd-background-plugin.c +++ b/plugins/background/msd-background-plugin.c @@ -1,6 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright (C) 2007 William Jon McCann <[email protected]> + * Copyright (C) 2012-2021 MATE Developers * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/plugins/background/msd-background-plugin.h b/plugins/background/msd-background-plugin.h index 460c303..9ea5b1a 100644 --- a/plugins/background/msd-background-plugin.h +++ b/plugins/background/msd-background-plugin.h @@ -1,6 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright (C) 2007 William Jon McCann <[email protected]> + * Copyright (C) 2012-2021 MATE Developers * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/plugins/background/test-background.c b/plugins/background/test-background.c index 33d4ea3..a2a5be1 100644 --- a/plugins/background/test-background.c +++ b/plugins/background/test-background.c @@ -1,6 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright (C) 2007 William Jon McCann <[email protected]> + * Copyright (C) 2012-2021 MATE Developers * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by |