Mercurial > geeqie.yaz
comparison src/bar_exif.c @ 1069:aeae25d5d50d
infrastructure for preprocessing of metadata
author | nadvornik |
---|---|
date | Sat, 18 Oct 2008 18:22:57 +0000 |
parents | e67636316f4c |
children | 9e424170e958 |
comparison
equal
deleted
inserted
replaced
1068:e67636316f4c | 1069:aeae25d5d50d |
---|---|
178 return FALSE; | 178 return FALSE; |
179 } | 179 } |
180 | 180 |
181 static void bar_exif_update(ExifBar *eb) | 181 static void bar_exif_update(ExifBar *eb) |
182 { | 182 { |
183 ExifData *exif_processed; | |
183 ExifData *exif; | 184 ExifData *exif; |
184 gint i; | 185 gint i; |
185 | 186 |
186 exif = exif_read_fd(eb->fd); | 187 exif_processed = exif_read_fd(eb->fd); |
187 | 188 |
188 if (!exif) | 189 if (!exif_processed) |
189 { | 190 { |
190 bar_exif_sensitive(eb, FALSE); | 191 bar_exif_sensitive(eb, FALSE); |
191 return; | 192 return; |
193 } | |
194 | |
195 if (eb->advanced_scrolled) | |
196 { | |
197 /* show the original values from the file */ | |
198 exif = exif_get_original(exif_processed); | |
199 } | |
200 else | |
201 { | |
202 exif = exif_processed; | |
192 } | 203 } |
193 | 204 |
194 bar_exif_sensitive(eb, TRUE); | 205 bar_exif_sensitive(eb, TRUE); |
195 | 206 |
196 if (GTK_WIDGET_VISIBLE(eb->scrolled)) | 207 if (GTK_WIDGET_VISIBLE(eb->scrolled)) |
332 g_free(tag_name); | 343 g_free(tag_name); |
333 item = exif_get_next_item(exif); | 344 item = exif_get_next_item(exif); |
334 } | 345 } |
335 } | 346 } |
336 | 347 |
337 exif_free_fd(eb->fd, exif); | 348 exif_free_fd(eb->fd, exif_processed); |
338 } | 349 } |
339 | 350 |
340 static void bar_exif_clear(ExifBar *eb) | 351 static void bar_exif_clear(ExifBar *eb) |
341 { | 352 { |
342 gint i; | 353 gint i; |