Mercurial > geeqie
diff src/exif.c @ 1305:2abdd6e50120
Glibification.
author | zas_ |
---|---|
date | Sat, 21 Feb 2009 18:04:52 +0000 |
parents | 10073464e6aa |
children | fe4da037be21 |
line wrap: on
line diff
--- a/src/exif.c Sat Feb 21 10:53:18 2009 +0000 +++ b/src/exif.c Sat Feb 21 18:04:52 2009 +0000 @@ -67,6 +67,7 @@ #include <math.h> #include <glib.h> +#include <glib/gprintf.h> #include "intl.h" @@ -1534,7 +1535,7 @@ if (text) { gchar *tag = exif_item_get_tag_name(item); - fprintf(f, "%4x %9s %30s %s\n", item->tag, ExifFormatList[item->format].short_name, + g_fprintf(f, "%4x %9s %30s %s\n", item->tag, ExifFormatList[item->format].short_name, tag, text); g_free(tag); } @@ -1545,8 +1546,8 @@ { if (!f || !exif) return; - fprintf(f, " tag format key value\n"); - fprintf(f, "----------------------------------------------------\n"); + g_fprintf(f, " tag format key value\n"); + g_fprintf(f, "----------------------------------------------------\n"); if (human_readable_list) { @@ -1560,7 +1561,7 @@ text = exif_get_formatted_by_key(exif, ExifFormattedList[i].key, NULL); if (text) { - fprintf(f, " %9s %30s %s\n", "string", ExifFormattedList[i].key, text); + g_fprintf(f, " %9s %30s %s\n", "string", ExifFormattedList[i].key, text); } i++; } @@ -1580,7 +1581,7 @@ exif_write_item(f, item); } } - fprintf(f, "----------------------------------------------------\n"); + g_fprintf(f, "----------------------------------------------------\n"); } gboolean exif_write(ExifData *exif)