[geocode-glib] docs: Fix multiple declarations of the enums documentation section
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] docs: Fix multiple declarations of the enums documentation section
- Date: Fri, 6 Jan 2017 23:13:07 +0000 (UTC)
commit b3cb332381fca6c3e18bfda10f16202b40cdafa9
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Oct 13 13:18:13 2016 +0100
docs: Fix multiple declarations of the enums documentation section
It needs to be put in the template for the enum file, not each enum
type.
https://bugzilla.gnome.org/show_bug.cgi?id=756311
geocode-glib/Makefile.am | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/geocode-glib/Makefile.am b/geocode-glib/Makefile.am
index f62056e..4fef6f7 100644
--- a/geocode-glib/Makefile.am
+++ b/geocode-glib/Makefile.am
@@ -57,9 +57,9 @@ BUILT_SOURCES = \
geocode-enum-types.h: $(GCGLIB_HEADER_FILES)
$(AM_V_GEN) ($(GLIB_MKENUMS) \
- --fhead "#ifndef __GEOCODE_ENUM_TYPES_H__\n#define __GEOCODE_ENUM_TYPES_H__\n\n#include
<glib-object.h>\n\nG_BEGIN_DECLS\n" \
+ --fhead "#ifndef __GEOCODE_ENUM_TYPES_H__\n#define __GEOCODE_ENUM_TYPES_H__\n\n#include
<glib-object.h>\n\nG_BEGIN_DECLS\n\n/**\n * SECTION:geocode-enum-types\n * @short_description: Geocode
enumerated types\n * @include: geocode-glib/geocode-glib.h\n *\n * The enumerated types defined and used by
geocode-glib.\n */\n\n" \
--fprod "/* enumerations from \"@filename@\" */\n" \
- --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GEOCODE_TYPE_@ENUMSHORT@
(@enum_name@_get_type())\n\n/**\n * SECTION:geocode-enum-types\n * @short_description: Geocode enumerated
types\n * @include: geocode-glib/geocode-glib.h\n *\n * The enumerated types defined and used by
geocode-glib.\n **/" \
+ --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GEOCODE_TYPE_@ENUMSHORT@
(@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __GEOCODE_ENUM_TYPES_H__ */" $^ > xgen-$(@F) \
&& mv -f xgen-$(@F) $@)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]