[eog] Define EogExifData type using G_DEFINE_BOXED_TYPE macro
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Define EogExifData type using G_DEFINE_BOXED_TYPE macro
- Date: Sat, 18 Dec 2010 13:21:01 +0000 (UTC)
commit 3cc45bdc35fbfd14627d266c0344f677d2037dcb
Author: Felix Riemann <friemann gnome org>
Date: Sat Dec 18 13:52:04 2010 +0100
Define EogExifData type using G_DEFINE_BOXED_TYPE macro
configure.ac | 2 +-
src/eog-exif-util.c | 15 +++------------
2 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2aa89a4..5cbdca9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,7 +84,7 @@ GNOME_DOC_INIT
# **********
GTK_REQUIRED=2.91.1
-GLIB_REQUIRED=2.25.9
+GLIB_REQUIRED=2.25.15
GNOME_DESKTOP_REQUIRED=2.91.2
GDKPIXBUF_REQUIRED=2.4.0
GTK_PRINT_REQUIRED=2.90.4
diff --git a/src/eog-exif-util.c b/src/eog-exif-util.c
index 26e9a72..fd172ec 100644
--- a/src/eog-exif-util.c
+++ b/src/eog-exif-util.c
@@ -48,6 +48,9 @@
#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((GPOINTER_TO_INT (i) == 2) ? TRUE : FALSE))
#endif
+/* Define EogExifData type */
+G_DEFINE_BOXED_TYPE(EogExifData, eog_exif_data, eog_exif_data_copy, eog_exif_data_free)
+
static gpointer
_check_strptime_updates_wday (gpointer data)
{
@@ -226,15 +229,3 @@ eog_exif_data_free (EogExifData *data)
{
exif_data_unref (data);
}
-
-GType
-eog_exif_data_get_type (void)
-{
- static GType our_type = 0;
-
- if (our_type == 0)
- our_type = g_boxed_type_register_static ("EogExifData",
- (GBoxedCopyFunc) eog_exif_data_copy,
- (GBoxedFreeFunc) eog_exif_data_free);
- return our_type;
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]