[glib/glib-2-48] Revert "codegen: Add g_autoptr support for the shared GInterface"
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-48] Revert "codegen: Add g_autoptr support for the shared GInterface"
- Date: Tue, 3 May 2016 10:11:30 +0000 (UTC)
commit bb11e01de7b19db80dd9ce1915bb258a9ea6cd9c
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue May 3 11:09:42 2016 +0100
Revert "codegen: Add g_autoptr support for the shared GInterface"
This reverts commit ca189aa32138c0127db2f9bd99d28b121393b063.
The new g_autoptr symbol definition in GDBus generated code breaks
existing code that uses gdbus-codegen and defines its own auto clean up
symbols.
This needs further discussion before cherry-picking to the stable
branch.
https://bugzilla.gnome.org/show_bug.cgi?id=763379
gio/gdbus-2.0/codegen/codegen.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gio/gdbus-2.0/codegen/codegen.py b/gio/gdbus-2.0/codegen/codegen.py
index ac836f9..9d1acbd 100644
--- a/gio/gdbus-2.0/codegen/codegen.py
+++ b/gio/gdbus-2.0/codegen/codegen.py
@@ -307,10 +307,6 @@ class CodeGenerator:
self.h.write('};\n')
self.h.write('\n')
- self.h.write('#if GLIB_CHECK_VERSION(2, 44, 0)\n')
- self.h.write('G_DEFINE_AUTOPTR_CLEANUP_FUNC (%s, g_object_unref)\n' % (i.camel_name))
- self.h.write('#endif\n')
- self.h.write('\n')
self.h.write('GType %s_get_type (void) G_GNUC_CONST;\n'%(i.name_lower))
self.h.write('\n')
self.h.write('GDBusInterfaceInfo *%s_interface_info (void);\n'%(i.name_lower))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]