summaryrefslogtreecommitdiff
path: root/plugins/statusbar-date
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-25 17:26:26 +0200
committerinfirit <[email protected]>2014-07-25 22:45:27 +0200
commitb8e7359d93f7f68f410391b39dde37eb1067a92a (patch)
tree54bed0f6139406c835974bf61b291004bd7ccefe /plugins/statusbar-date
parent14a6c9ccd6088184e27a239e7b6a091b0c232e6e (diff)
downloadeom-b8e7359d93f7f68f410391b39dde37eb1067a92a.tar.bz2
eom-b8e7359d93f7f68f410391b39dde37eb1067a92a.tar.xz
Wrap ExifData in a EogExifData boxed type
This is for better interaction with bindings Based on eog commit b88d3713fe45a4bab1bd24ac8ff60551c5c31d49 From Claudio Saavedra <[email protected]>
Diffstat (limited to 'plugins/statusbar-date')
-rw-r--r--plugins/statusbar-date/eom-statusbar-date-plugin.c10
1 files changed, 4 insertions, 6 deletions
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 <gmodule.h>
#include <glib/gi18n-lib.h>
-#include <libexif/exif-data.h>
-
#include <eom-debug.h>
#include <eom-scroll-view.h>
#include <eom-image.h>
@@ -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)