]> git.pld-linux.org Git - packages/nautilus.git/blob - nautilus-exif_taken_date.patch
- bugfixes (gnome cvs stable gnome-2-14 branch)
[packages/nautilus.git] / nautilus-exif_taken_date.patch
1 diff -Nur nautilus-2.14.1/src/nautilus-image-properties-page.c nautilus-2.14.1.new/src/nautilus-image-properties-page.c
2 --- nautilus-2.14.1/src/nautilus-image-properties-page.c        2006-03-18 07:45:15.000000000 +0100
3 +++ nautilus-2.14.1.new/src/nautilus-image-properties-page.c    2006-05-09 17:53:34.000000000 +0200
4 @@ -191,7 +191,7 @@
5         return utf8_value;
6  }
7  
8 -static void
9 +static gboolean
10  append_tag_value_pair (GString *string, ExifData *data, ExifTag tag, gchar *description) 
11  {
12          char *utf_attribute;
13 @@ -203,13 +203,14 @@
14         if ((utf_attribute == NULL) || (utf_value == NULL)) {
15                 g_free (utf_attribute);
16                 g_free (utf_value);
17 -               return;
18 +               return FALSE;
19         }
20  
21         g_string_append_printf (string, "<b>%s:</b> %s\n", (description != NULL) ? description : utf_attribute, utf_value);
22  
23          g_free (utf_attribute);
24          g_free (utf_value);
25 +       return TRUE;
26  }
27  
28  static void
29 @@ -218,7 +219,13 @@
30         if (exifdata->ifd[0] && exifdata->ifd[0]->count) {
31                  append_tag_value_pair (string, exifdata, EXIF_TAG_MAKE, _("Camera Brand"));
32                  append_tag_value_pair (string, exifdata, EXIF_TAG_MODEL, _("Camera Model"));
33 -                append_tag_value_pair (string, exifdata, EXIF_TAG_DATE_TIME, _("Date Taken"));
34 +
35 +                /* Choose which date to show in order of relevance */
36 +                if (!append_tag_value_pair (string, exifdata, EXIF_TAG_DATE_TIME_ORIGINAL, _("Date Taken")))
37 +                {
38 +                       append_tag_value_pair (string, exifdata, EXIF_TAG_DATE_TIME, _("Date Modified"));
39 +                }
40 +
41                  append_tag_value_pair (string, exifdata, EXIF_TAG_EXPOSURE_TIME, _("Exposure Time"));
42                  append_tag_value_pair (string, exifdata, EXIF_TAG_EXPOSURE_PROGRAM, _("Exposure Program"));
43                  append_tag_value_pair (string, exifdata, EXIF_TAG_APERTURE_VALUE, _("Aperture Value"));
This page took 0.076124 seconds and 3 git commands to generate.