Line |
Branch |
Exec |
Source |
1 |
|
|
|
2 |
|
|
/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ |
3 |
|
|
|
4 |
|
|
#include "cc-background-enum-types.h" |
5 |
|
|
#include "cc-background-item.h" |
6 |
|
|
#include "cc-background-paintable.h" |
7 |
|
|
|
8 |
|
|
#define C_ENUM(v) ((gint) v) |
9 |
|
|
#define C_FLAGS(v) ((guint) v) |
10 |
|
|
|
11 |
|
|
/* enumerations from "cc-background-item.h" */ |
12 |
|
|
|
13 |
|
|
GType |
14 |
|
✗ |
cc_background_item_flags_get_type (void) |
15 |
|
|
{ |
16 |
|
|
static gsize gtype_id = 0; |
17 |
|
|
static const GFlagsValue values[] = { |
18 |
|
|
{ C_FLAGS(CC_BACKGROUND_ITEM_HAS_SHADING), "CC_BACKGROUND_ITEM_HAS_SHADING", "shading" }, |
19 |
|
|
{ C_FLAGS(CC_BACKGROUND_ITEM_HAS_PLACEMENT), "CC_BACKGROUND_ITEM_HAS_PLACEMENT", "placement" }, |
20 |
|
|
{ C_FLAGS(CC_BACKGROUND_ITEM_HAS_PCOLOR), "CC_BACKGROUND_ITEM_HAS_PCOLOR", "pcolor" }, |
21 |
|
|
{ C_FLAGS(CC_BACKGROUND_ITEM_HAS_SCOLOR), "CC_BACKGROUND_ITEM_HAS_SCOLOR", "scolor" }, |
22 |
|
|
{ C_FLAGS(CC_BACKGROUND_ITEM_HAS_URI), "CC_BACKGROUND_ITEM_HAS_URI", "uri" }, |
23 |
|
|
{ C_FLAGS(CC_BACKGROUND_ITEM_HAS_URI_DARK), "CC_BACKGROUND_ITEM_HAS_URI_DARK", "uri-dark" }, |
24 |
|
|
{ 0, NULL, NULL } |
25 |
|
|
}; |
26 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
27 |
|
✗ |
GType new_type = g_flags_register_static (g_intern_static_string ("CcBackgroundItemFlags"), values); |
28 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
29 |
|
|
} |
30 |
|
✗ |
return (GType) gtype_id; |
31 |
|
|
} |
32 |
|
|
|
33 |
|
|
/* enumerations from "cc-background-paintable.h" */ |
34 |
|
|
|
35 |
|
|
GType |
36 |
|
✗ |
cc_background_paint_flags_get_type (void) |
37 |
|
|
{ |
38 |
|
|
static gsize gtype_id = 0; |
39 |
|
|
static const GFlagsValue values[] = { |
40 |
|
|
{ C_FLAGS(CC_BACKGROUND_PAINT_LIGHT), "CC_BACKGROUND_PAINT_LIGHT", "light" }, |
41 |
|
|
{ C_FLAGS(CC_BACKGROUND_PAINT_DARK), "CC_BACKGROUND_PAINT_DARK", "dark" }, |
42 |
|
|
{ 0, NULL, NULL } |
43 |
|
|
}; |
44 |
|
✗ |
if (g_once_init_enter (>ype_id)) { |
45 |
|
✗ |
GType new_type = g_flags_register_static (g_intern_static_string ("CcBackgroundPaintFlags"), values); |
46 |
|
✗ |
g_once_init_leave (>ype_id, new_type); |
47 |
|
|
} |
48 |
|
✗ |
return (GType) gtype_id; |
49 |
|
|
} |
50 |
|
|
|
51 |
|
|
/* Generated data ends here */ |
52 |
|
|
|
53 |
|
|
|