[libgdata] [core] Use G_DEFINE_INTERFACE



commit 33ef10a4f0cd472c69d9651cee0184c20db8fa02
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Apr 12 19:53:12 2010 +0100

    [core] Use G_DEFINE_INTERFACE
    
    This bumps the GLib requirement up to 2.23.1.

 README                       |    2 +-
 configure.ac                 |    2 +-
 gdata/gdata-access-handler.c |   15 +--------------
 3 files changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/README b/README
index 7a66aff..5e6a2cf 100644
--- a/README
+++ b/README
@@ -13,7 +13,7 @@ libgdata's API is currently unstable and is likely to change wildly.
 Dependencies
 ============
 
- * glib-2.0 >= 2.19.0
+ * glib-2.0 >= 2.23.1
  * libxml-2.0
  * gio-2.0 >= 2.17.3
  * libsoup-2.4 >= 2.26.1
diff --git a/configure.ac b/configure.ac
index b61c93b..3952f2e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,7 @@ AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal])
 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
 
 # Requirements
-GLIB_REQS=2.19.0
+GLIB_REQS=2.23.1
 GIO_REQS=2.17.3
 SOUP_REQS=2.26.1
 
diff --git a/gdata/gdata-access-handler.c b/gdata/gdata-access-handler.c
index e6b0c03..06c3b72 100644
--- a/gdata/gdata-access-handler.c
+++ b/gdata/gdata-access-handler.c
@@ -41,20 +41,7 @@
 #include "gdata-private.h"
 #include "gdata-access-rule.h"
 
-GType
-gdata_access_handler_get_type (void)
-{
-	static GType access_handler_type = 0;
-
-	if (!access_handler_type) {
-		access_handler_type = g_type_register_static_simple (G_TYPE_INTERFACE, "GDataAccessHandler",
-		                                                     sizeof (GDataAccessHandlerIface),
-		                                                     NULL, 0, NULL, 0);
-		g_type_interface_add_prerequisite (access_handler_type, GDATA_TYPE_ENTRY);
-	}
-
-	return access_handler_type;
-}
+G_DEFINE_INTERFACE (GDataAccessHandler, gdata_access_handler, GDATA_TYPE_ENTRY)
 
 /**
  * gdata_access_handler_get_rules:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]