diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-04 03:29:08 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-04 03:29:08 +0800 |
commit | c7eaafa8fa678b1908b629495fb263dca7b76751 (patch) | |
tree | 2415f06695b3ccfdce2b5a3b3b181ea0ecf6efe9 /embed/ephy-embed-persist.c | |
parent | 82a6f3e75f4e46be84fc3d650918badc8e1563a1 (diff) | |
download | gsoc2013-epiphany-c7eaafa8fa678b1908b629495fb263dca7b76751.tar gsoc2013-epiphany-c7eaafa8fa678b1908b629495fb263dca7b76751.tar.gz gsoc2013-epiphany-c7eaafa8fa678b1908b629495fb263dca7b76751.tar.bz2 gsoc2013-epiphany-c7eaafa8fa678b1908b629495fb263dca7b76751.tar.lz gsoc2013-epiphany-c7eaafa8fa678b1908b629495fb263dca7b76751.tar.xz gsoc2013-epiphany-c7eaafa8fa678b1908b629495fb263dca7b76751.tar.zst gsoc2013-epiphany-c7eaafa8fa678b1908b629495fb263dca7b76751.zip |
Add type for flags.
2005-01-03 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-embed-persist.c: (ephy_embed_persist_flags_get_type):
* embed/ephy-embed-persist.h:
Add type for flags.
Diffstat (limited to 'embed/ephy-embed-persist.c')
-rw-r--r-- | embed/ephy-embed-persist.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/embed/ephy-embed-persist.c b/embed/ephy-embed-persist.c index baa6a781c..36be83084 100644 --- a/embed/ephy-embed-persist.c +++ b/embed/ephy-embed-persist.c @@ -630,3 +630,26 @@ ephy_embed_persist_to_string (EphyEmbedPersist *persist) EphyEmbedPersistClass *klass = EPHY_EMBED_PERSIST_GET_CLASS (persist); return klass->to_string (persist); } + +GType +ephy_embed_persist_flags_get_type (void) +{ + static GType type = 0; + + if (G_UNLIKELY (type == 0)) + { + static const GFlagsValue values[] = + { + { EMBED_PERSIST_COPY_PAGE, "EMBED_PERSIST_COPY_PAGE", "copy-page" }, + { EMBED_PERSIST_MAINDOC, "EMBED_PERSIST_MAINDOC", "main-document" }, + { EMBED_PERSIST_NO_VIEW, "EMBED_PERSIST_NO_VIEW", "no-view" }, + { EMBED_PERSIST_ASK_DESTINATION, "EMBED_PERSIST_ASK_DESTINATION", "ask-destination" }, + { EMBED_PERSIST_DO_CONVERSION, "EMBED_PERSIST_DO_CONVERSION", "do-conversion" }, + { 0, NULL, NULL } + }; + + type = g_flags_register_static ("EphyEmbedPersistFlags", values); + } + + return type; +} |