aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-event.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-04 02:07:19 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-04 02:07:19 +0800
commitc4b9c39ec588430681b25d52a1cd5f57dab716d4 (patch)
tree6b35647c1ea93b1b6b9a185dbe7a043d0a631a46 /embed/ephy-embed-event.c
parent3c97a9bf4a384a76c51e4684b2d9a02266cf458f (diff)
downloadgsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.tar
gsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.tar.gz
gsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.tar.bz2
gsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.tar.lz
gsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.tar.xz
gsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.tar.zst
gsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.zip
Add types for some enums and flags.
2005-01-03 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-event.c: (ephy_embed_event_context_get_type), (ephy_embed_event_type_get_type): * embed/ephy-embed-event.h: * embed/ephy-embed.c: (ephy_embed_net_state_get_type), (ephy_embed_ppv_navigation_get_type), (ephy_embed_security_level_get_type), (ephy_embed_base_init): * embed/ephy-embed.h: * embed/mozilla/mozilla-embed.cpp: * lib/ephy-marshal.list: * src/ephy-tab.c: (update_net_state_message), (build_progress_from_requests), (ephy_tab_net_state_cb): Add types for some enums and flags.
Diffstat (limited to 'embed/ephy-embed-event.c')
-rw-r--r--embed/ephy-embed-event.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/embed/ephy-embed-event.c b/embed/ephy-embed-event.c
index 00f92b6c5..a0ea523ea 100644
--- a/embed/ephy-embed-event.c
+++ b/embed/ephy-embed-event.c
@@ -25,6 +25,54 @@
#include <glib/ghash.h>
#include <gtk/gtktypeutils.h>
+GType
+ephy_embed_event_context_get_type (void)
+{
+ static GType type = 0;
+
+ if (G_UNLIKELY (type == 0))
+ {
+ static const GFlagsValue values[] =
+ {
+ { EMBED_CONTEXT_NONE, "EMBED_CONTEXT_NONE", "none" },
+ { EMBED_CONTEXT_DEFAULT, "EMBED_CONTEXT_DEFAULT", "default" },
+ { EMBED_CONTEXT_LINK, "EMBED_CONTEXT_LINK", "link" },
+ { EMBED_CONTEXT_IMAGE, "EMBED_CONTEXT_IMAGE", "image" },
+ { EMBED_CONTEXT_DOCUMENT, "EMBED_CONTEXT_DOCUMENT", "document" },
+ { EMBED_CONTEXT_INPUT, "EMBED_CONTEXT_INPUT", "input" },
+ { EMBED_CONTEXT_XUL, "EMBED_CONTEXT_XUL", "xul" },
+ { EMBED_CONTEXT_EMAIL_LINK, "EMBED_CONTEXT_EMAIL_LINK", "email-link" },
+ { 0, NULL, NULL }
+ };
+
+ type = g_flags_register_static ("EphyEmbedEventContext", values);
+ }
+
+ return type;
+}
+
+GType
+ephy_embed_event_type_get_type (void)
+{
+ static GType type = 0;
+
+ if (G_UNLIKELY (type == 0))
+ {
+ static const GEnumValue values[] =
+ {
+ { EPHY_EMBED_EVENT_MOUSE_BUTTON1, "EPHY_EMBED_EVENT_MOUSE_BUTTON1", "mouse-button-1" },
+ { EPHY_EMBED_EVENT_MOUSE_BUTTON2, "EPHY_EMBED_EVENT_MOUSE_BUTTON2", "mouse-button-2" },
+ { EPHY_EMBED_EVENT_MOUSE_BUTTON3, "EPHY_EMBED_EVENT_MOUSE_BUTTON3", "mouse-button-3" },
+ { EPHY_EMBED_EVENT_KEY, "EPHY_EMBED_EVENT_KEY", "key" },
+ { 0, NULL, NULL }
+ };
+
+ type = g_enum_register_static ("EphyEmbedEventType", values);
+ }
+
+ return type;
+}
+
static void ephy_embed_event_base_init (gpointer g_class);
GType