From b8e7359d93f7f68f410391b39dde37eb1067a92a Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 25 Jul 2014 17:26:26 +0200 Subject: Wrap ExifData in a EogExifData boxed type This is for better interaction with bindings Based on eog commit b88d3713fe45a4bab1bd24ac8ff60551c5c31d49 From Claudio Saavedra --- plugins/statusbar-date/eom-statusbar-date-plugin.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins') diff --git a/plugins/statusbar-date/eom-statusbar-date-plugin.c b/plugins/statusbar-date/eom-statusbar-date-plugin.c index 3939977..c874688 100644 --- a/plugins/statusbar-date/eom-statusbar-date-plugin.c +++ b/plugins/statusbar-date/eom-statusbar-date-plugin.c @@ -28,8 +28,6 @@ #include #include -#include - #include #include #include @@ -60,7 +58,7 @@ static void statusbar_set_date(GtkStatusbar* statusbar, EomThumbView* view) EomImage* image; gchar* date = NULL; gchar time_buffer[32]; - ExifData* exif_data; + EomExifData* exif_data; if (eom_thumb_view_get_n_selected(view) == 0) { @@ -79,12 +77,12 @@ static void statusbar_set_date(GtkStatusbar* statusbar, EomThumbView* view) } } - exif_data = (ExifData*) eom_image_get_exif_info(image); + exif_data = eom_image_get_exif_info (image); if (exif_data) { - date = eom_exif_util_format_date(eom_exif_util_get_value(exif_data, EXIF_TAG_DATE_TIME_ORIGINAL, time_buffer, 32)); - exif_data_unref(exif_data); + date = eom_exif_util_format_date(eom_exif_data_get_value(exif_data, EXIF_TAG_DATE_TIME_ORIGINAL, time_buffer, 32)); + exif_data_free (exif_data); } if (date) -- cgit v1.2.1