diff options
author | Thibault Saunier <thibault.saunier@collabora.co.uk> | 2011-04-25 19:12:38 -0400 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@collabora.com> | 2011-08-10 17:12:45 +0200 |
commit | 1efbf1ceec61c421acc37c56e178f7cce2a81b47 (patch) | |
tree | 72f080e7e8a9ca12e8023aa8ba2fb832ef4f6eac /ges/ges-enums.c | |
parent | 9237a997cb747f4b6f2861d4a86db2809b0e3d7d (diff) |
GESTimeleinePipeline: Create a flag type instead of a simple enum
Make it binding friendly
Diffstat (limited to 'ges/ges-enums.c')
-rw-r--r-- | ges/ges-enums.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ges/ges-enums.c b/ges/ges-enums.c index aaa491d1..1ff03681 100644 --- a/ges/ges-enums.c +++ b/ges/ges-enums.c @@ -46,6 +46,31 @@ ges_track_type_get_type (void) return id; } +static void +register_ges_pipeline_flags (GType * id) +{ + static const GFlagsValue values[] = { + {C_ENUM (TIMELINE_MODE_PREVIEW_AUDIO), "TIMELINE_MODE_PREVIEW_AUDIO", "audio_preview"}, + {C_ENUM (TIMELINE_MODE_PREVIEW_VIDEO), "TIMELINE_MODE_PREVIEW_VIDEO", "video_preview"}, + {C_ENUM (TIMELINE_MODE_PREVIEW), "TIMELINE_MODE_PREVIEW", "full_preview"}, + {C_ENUM (TIMELINE_MODE_RENDER), "TIMELINE_MODE_RENDER", "render"}, + {C_ENUM (TIMELINE_MODE_SMART_RENDER), "TIMELINE_MODE_SMART_RENDER", "smart_render"}, + {0, NULL, NULL} + }; + + *id = g_flags_register_static ("GESPipelineFlags", values); +} + +GType +ges_pipeline_flags_get_type (void) +{ + static GType id; + static GOnce once = G_ONCE_INIT; + + g_once (&once, (GThreadFunc) register_ges_pipeline_flags, &id); + return id; +} + static GEnumValue transition_types[] = { { 0, |