summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-27 13:43:34 +0200
committerinfirit <[email protected]>2014-07-27 21:16:30 +0200
commitf7e0725e3cabfbf2decc9d62794ef896ce022010 (patch)
treef456b51db32d7830a7ddbbe9b0ffaf0b306b21cd
parent5f10222bfd02d8b6e125b90deb8edf27ed024e22 (diff)
downloadeom-f7e0725e3cabfbf2decc9d62794ef896ce022010.tar.bz2
eom-f7e0725e3cabfbf2decc9d62794ef896ce022010.tar.xz
Define EomExifData type using G_DEFINE_BOXED_TYPE macro
Based on eog commit 3cc45bdc35fbfd14627d266c0344f677d2037dcb From Felix Riemann <[email protected]>
-rw-r--r--src/eom-exif-util.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/eom-exif-util.c b/src/eom-exif-util.c
index 7fa0e99..95310e2 100644
--- a/src/eom-exif-util.c
+++ b/src/eom-exif-util.c
@@ -48,6 +48,9 @@
#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((GPOINTER_TO_INT (i) == 2) ? TRUE : FALSE))
#endif
+/* Define EomExifData type */
+G_DEFINE_BOXED_TYPE(EomExifData, eom_exif_data, eom_exif_data_copy, eom_exif_data_free)
+
static gpointer
_check_strptime_updates_wday (gpointer data)
{
@@ -226,15 +229,3 @@ eom_exif_data_free (EomExifData *data)
{
exif_data_unref (data);
}
-
-GType
-eom_exif_data_get_type (void)
-{
- static GType our_type = 0;
-
- if (our_type == 0)
- our_type = g_boxed_type_register_static ("EomExifData",
- (GBoxedCopyFunc) eom_exif_data_copy,
- (GBoxedFreeFunc) eom_exif_data_free);
- return our_type;
-}