Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libindicator/files: libindicator-0.3.6-missing_template.patch
Date: Wed, 31 Mar 2010 17:11:38
Message-Id: E1Nx1S5-0001cE-0j@stork.gentoo.org
1 ssuominen 10/03/31 17:11:37
2
3 Added: libindicator-0.3.6-missing_template.patch
4 Log:
5 Version bump wrt #310077 by Matt Enright.
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-libs/libindicator/files/libindicator-0.3.6-missing_template.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libindicator/files/libindicator-0.3.6-missing_template.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libindicator/files/libindicator-0.3.6-missing_template.patch?rev=1.1&content-type=text/plain
13
14 Index: libindicator-0.3.6-missing_template.patch
15 ===================================================================
16 --- /dev/null
17 +++ libindicator/indicator-object-enum-types.c.template
18 @@ -0,0 +1,30 @@
19 +/*** BEGIN file-header ***/
20 +#include "indicator-object-enum-types.h"
21 +/*** END file-header ***/
22 +
23 +/*** BEGIN file-production ***/
24 +/* enumerations from "@filename@" */
25 +#include "@filename@"
26 +/*** END file-production ***/
27 +
28 +/*** BEGIN value-header ***/
29 +GType
30 +@enum_name@_get_type (void) {
31 + static GType enum_type_id = 0;
32 + if (G_UNLIKELY (!enum_type_id))
33 + {
34 + static const G@Type@Value values[] = {
35 +/*** END value-header ***/
36 +
37 +/*** BEGIN value-production ***/
38 + { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
39 +/*** END value-production ***/
40 +
41 +/*** BEGIN value-tail ***/
42 + { 0, NULL, NULL }
43 + };
44 + enum_type_id = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
45 + }
46 + return enum_type_id;
47 +}
48 +/*** END value-tail ***/
49 --- /dev/null
50 +++ libindicator/indicator-object-enum-types.h.template
51 @@ -0,0 +1,27 @@
52 +/*** BEGIN file-header ***/
53 +
54 +#ifndef __INDICATOR_OBJECT_ENUM_TYPES_H__
55 +#define __INDICATOR_OBJECT_ENUM_TYPES_H__
56 +
57 +#include <glib-object.h>
58 +
59 +G_BEGIN_DECLS
60 +
61 +/*** END file-header ***/
62 +
63 +/*** BEGIN file-production ***/
64 +/* enumerations from "@filename@" */
65 +/*** END file-production ***/
66 +
67 +/*** BEGIN file-tail ***/
68 +G_END_DECLS
69 +
70 +#endif /* !__INDICATOR_OBJECT_ENUM_TYPES_H__ */
71 +/*** END file-tail ***/
72 +
73 +/*** BEGIN value-header ***/
74 +
75 +GType @enum_name@_get_type (void) G_GNUC_CONST;
76 +#define INDICATOR_OBJECT_TYPE_@ENUMSHORT@ (@enum_name@_get_type())
77 +
78 +/*** END value-header ***/