[mutter] color-profile: Fix error check in finalize



commit 20a98e6849a2e4bf0c2a01e002182ebb59b46a61
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Tue Sep 13 18:19:40 2022 +0200

    color-profile: Fix error check in finalize
    
    We won't get G_IO_ERROR's but CD_CLIENT_ERROR's.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2622>

 src/backends/meta-color-profile.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/backends/meta-color-profile.c b/src/backends/meta-color-profile.c
index c500e57e69..0a72583de8 100644
--- a/src/backends/meta-color-profile.c
+++ b/src/backends/meta-color-profile.c
@@ -130,7 +130,9 @@ meta_color_profile_finalize (GObject *object)
                                           color_profile->cd_profile_id,
                                           &error);
           if (!cd_profile &&
-              !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
+              !g_error_matches (error,
+                                CD_CLIENT_ERROR,
+                                CD_CLIENT_ERROR_NOT_FOUND))
             {
               g_warning ("Failed to find colord profile %s: %s",
                          color_profile->cd_profile_id,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]