[eog] EogImage: Do not overwrite GError
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogImage: Do not overwrite GError
- Date: Sat, 30 Jan 2021 16:54:29 +0000 (UTC)
commit ff351715fd0aedf8d7b5eb2426537740332075cc
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.
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]