[anjuta] class-gen: Use convention for get-private macros
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] class-gen: Use convention for get-private macros
- Date: Thu, 22 Dec 2011 21:52:03 +0000 (UTC)
commit a1ca794839a8eace632d69a7381de56eedf0ef59
Author: Arnel A. Borja <kyoushuu yahoo com>
Date: Tue Dec 20 22:59:15 2011 +0800
class-gen: Use convention for get-private macros
GObject in C have a convention of using PREFIX_SUFFIX_GET_PRIVATE macros to get
the private data of a GObject. PREFIX_SUFFIX_PRIVATE is also misleading, making
someone think of it as a macro for casting to a private type.
Use PREFIX_SUFFIX_GET_PRIVATE, instead of PREFIX_SUFFIX_PRIVATE.
plugins/class-gen/templates/go-source.tpl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/class-gen/templates/go-source.tpl b/plugins/class-gen/templates/go-source.tpl
index fe83ac1..39c3f4f 100644
--- a/plugins/class-gen/templates/go-source.tpl
+++ b/plugins/class-gen/templates/go-source.tpl
@@ -27,7 +27,7 @@ struct _[+ClassName+]Private
ENDFOR+]
};
-#define [+TypePrefix+]_[+TypeSuffix+]_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), [+TypePrefix+]_TYPE_[+TypeSuffix+], [+ClassName+]Private))[+
+#define [+TypePrefix+]_[+TypeSuffix+]_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), [+TypePrefix+]_TYPE_[+TypeSuffix+], [+ClassName+]Private))[+
ENDIF+][+IF (not (=(get "Properties[0].Name") ""))+]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]