Mercurial > geeqie.yaz
comparison src/bar_exif.c @ 185:354da67a7ca2
read also iptc and xmp
author | nadvornik |
---|---|
date | Fri, 15 Feb 2008 10:48:09 +0000 |
parents | 8a417f10ba09 |
children | 0584cb78aa14 |
comparison
equal
deleted
inserted
replaced
184:2507418ab7a2 | 185:354da67a7ca2 |
---|---|
238 | 238 |
239 if (eb->advanced_scrolled && GTK_WIDGET_VISIBLE(eb->advanced_scrolled)) | 239 if (eb->advanced_scrolled && GTK_WIDGET_VISIBLE(eb->advanced_scrolled)) |
240 { | 240 { |
241 GtkListStore *store; | 241 GtkListStore *store; |
242 GtkTreeIter iter; | 242 GtkTreeIter iter; |
243 GList *work; | |
244 ExifItem *item; | 243 ExifItem *item; |
245 | 244 |
246 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(eb->listview))); | 245 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(eb->listview))); |
247 gtk_list_store_clear(store); | 246 gtk_list_store_clear(store); |
248 | 247 |
249 item = exif_get_first_item(exif); | 248 item = exif_get_first_item(exif); |
250 while (item) | 249 while (item) |
251 { | 250 { |
252 gchar *tag; | 251 gchar *tag; |
253 const gchar *tag_name; | 252 gchar *tag_name; |
254 gchar *text; | 253 gchar *text; |
255 const gchar *format; | 254 const gchar *format; |
256 gchar *elements; | 255 gchar *elements; |
257 const gchar *description; | 256 gchar *description; |
258 | 257 |
259 tag = g_strdup_printf("0x%04x", exif_item_get_tag_id(item)); | 258 tag = g_strdup_printf("0x%04x", exif_item_get_tag_id(item)); |
260 tag_name = exif_item_get_tag_name(item); | 259 tag_name = exif_item_get_tag_name(item); |
261 format = exif_item_get_format_name(item, TRUE); | 260 format = exif_item_get_format_name(item, TRUE); |
262 text = exif_item_get_data_as_text(item); | 261 text = exif_item_get_data_as_text(item); |
275 EXIF_ADVCOL_DESCRIPTION, description, -1); | 274 EXIF_ADVCOL_DESCRIPTION, description, -1); |
276 g_free(tag); | 275 g_free(tag); |
277 g_free(text); | 276 g_free(text); |
278 g_free(elements); | 277 g_free(elements); |
279 g_free(description); | 278 g_free(description); |
279 g_free(tag_name); | |
280 item = exif_get_next_item(exif); | 280 item = exif_get_next_item(exif); |
281 } | 281 } |
282 } | 282 } |
283 | 283 |
284 exif_free(exif); | 284 exif_free(exif); |