Skip to content

Commit a3a89e0

Browse files
fxriraveit65
authored andcommitted
Place GPS Exif tags into their own subcategory
origin commit: https://gitlab.gnome.org/GNOME/eog/commit/e046f81
1 parent fe21ccd commit a3a89e0

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/eom-exif-details.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ typedef enum {
4949
EXIF_CATEGORY_CAMERA,
5050
EXIF_CATEGORY_IMAGE_DATA,
5151
EXIF_CATEGORY_IMAGE_TAKING_CONDITIONS,
52+
EXIF_CATEGORY_GPS_DATA,
5253
EXIF_CATEGORY_MAKER_NOTE,
5354
EXIF_CATEGORY_OTHER,
5455
#ifdef HAVE_EXEMPI
@@ -68,13 +69,14 @@ static ExifCategoryInfo exif_categories[] = {
6869
{ N_("Camera"), "0" },
6970
{ N_("Image Data"), "1" },
7071
{ N_("Image Taking Conditions"), "2" },
71-
{ N_("Maker Note"), "3" },
72-
{ N_("Other"), "4" },
72+
{ N_("GPS Data"), "3" },
73+
{ N_("Maker Note"), "4" },
74+
{ N_("Other"), "5" },
7375
#ifdef HAVE_EXEMPI
74-
{ N_("XMP Exif"), "5" },
75-
{ N_("XMP IPTC"), "6" },
76-
{ N_("XMP Rights Management"), "7" },
77-
{ N_("XMP Other"), "8" },
76+
{ N_("XMP Exif"), "6" },
77+
{ N_("XMP IPTC"), "7" },
78+
{ N_("XMP Rights Management"), "8" },
79+
{ N_("XMP Other"), "9" },
7880
#endif
7981
{ NULL, NULL }
8082
};
@@ -285,7 +287,7 @@ get_exif_category (ExifEntry *entry)
285287

286288
/* Some GPS tag IDs overlap with other ones, so check the IFD */
287289
if (exif_entry_get_ifd (entry) == EXIF_IFD_GPS) {
288-
return EXIF_CATEGORY_OTHER;
290+
return EXIF_CATEGORY_GPS_DATA;
289291
}
290292

291293
for (i = 0; exif_tag_category_map [i].id != -1; i++) {

0 commit comments

Comments
 (0)