[libgdata] [core] Revert interface change
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] [core] Revert interface change
- Date: Mon, 12 Apr 2010 19:19:08 +0000 (UTC)
commit 5d41df2fb49d88ff84887e4923a5093d9e1a39e9
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Apr 12 20:18:17 2010 +0100
[core] Revert interface change
For it to work, it would have to break API by renaming
GDataAccessHandlerIface to GDataAccessHandlerInterface.
README | 2 +-
configure.ac | 2 +-
gdata/gdata-access-handler.c | 15 ++++++++++++++-
3 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/README b/README
index 5e6a2cf..7a66aff 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.23.1
+ * glib-2.0 >= 2.19.0
* libxml-2.0
* gio-2.0 >= 2.17.3
* libsoup-2.4 >= 2.26.1
diff --git a/configure.ac b/configure.ac
index 3952f2e..b61c93b 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.23.1
+GLIB_REQS=2.19.0
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 06c3b72..e6b0c03 100644
--- a/gdata/gdata-access-handler.c
+++ b/gdata/gdata-access-handler.c
@@ -41,7 +41,20 @@
#include "gdata-private.h"
#include "gdata-access-rule.h"
-G_DEFINE_INTERFACE (GDataAccessHandler, gdata_access_handler, GDATA_TYPE_ENTRY)
+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;
+}
/**
* gdata_access_handler_get_rules:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]