[eog/gnome-3-38] EogImage: Do not overwrite GError



commit 18c9b41e25aff7b37cf40af191457925cd7e243b
Author: Felix Riemann <friemann gnome org>
Date:   Sat Jan 30 17:05:17 2021 +0100

    EogImage: Do not overwrite GError
    
    This fixes an oversight in the migration from GnomeVFS to GIO which
    caused eog to try overwriting a GError from GIO with its own
    untranslated error message. Keeping the GIO error avoid the
    bug warnings to show up. Fixes #169.
    
    (cherry picked from commit ff351715fd0aedf8d7b5eb2426537740332075cc)

 src/eog-image.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/src/eog-image.c b/src/eog-image.c
index f57243dd..19776464 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -618,11 +618,6 @@ eog_image_get_file_info (EogImage *img,
 
                if (mime_type)
                        *mime_type = NULL;
-
-               g_set_error (error,
-                            EOG_IMAGE_ERROR,
-                            EOG_IMAGE_ERROR_VFS,
-                            "Error in getting image file info");
        } else {
                if (bytes)
                        *bytes = g_file_info_get_size (file_info);


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