>From 8d36d5d146c987cb58b8a26b7ad98da3a8119ee8 Mon Sep 17 00:00:00 2001 From: "Arnel A. Borja" Date: Tue, 20 Dec 2011 22:59:15 +0800 Subject: [PATCH 3/6] 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") ""))+] -- 1.7.5.4