diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-04 02:15:25 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-04 02:15:25 +0800 |
commit | 78c98f4f1bd781a6d83f91a37b3ed0c457d19457 (patch) | |
tree | d9b89f29e2c2bde7ded9943cfb3f7307bc48bb98 /embed/ephy-permission-manager.c | |
parent | c4b9c39ec588430681b25d52a1cd5f57dab716d4 (diff) | |
download | gsoc2013-epiphany-78c98f4f1bd781a6d83f91a37b3ed0c457d19457.tar gsoc2013-epiphany-78c98f4f1bd781a6d83f91a37b3ed0c457d19457.tar.gz gsoc2013-epiphany-78c98f4f1bd781a6d83f91a37b3ed0c457d19457.tar.bz2 gsoc2013-epiphany-78c98f4f1bd781a6d83f91a37b3ed0c457d19457.tar.lz gsoc2013-epiphany-78c98f4f1bd781a6d83f91a37b3ed0c457d19457.tar.xz gsoc2013-epiphany-78c98f4f1bd781a6d83f91a37b3ed0c457d19457.tar.zst gsoc2013-epiphany-78c98f4f1bd781a6d83f91a37b3ed0c457d19457.zip |
Another enum type.
2005-01-03 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-permission-manager.c: (ephy_permission_get_type):
* embed/ephy-permission-manager.h:
Another enum type.
* lib/ephy-marshal.list:
Remove unused marshal.
* src/ephy-tab.c: (ephy_tab_class_init):
Use enum for security level type.
Diffstat (limited to 'embed/ephy-permission-manager.c')
-rw-r--r-- | embed/ephy-permission-manager.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/embed/ephy-permission-manager.c b/embed/ephy-permission-manager.c index a3e68eb93..f5a390964 100644 --- a/embed/ephy-permission-manager.c +++ b/embed/ephy-permission-manager.c @@ -28,6 +28,27 @@ /* EphyPermissionInfo */ GType +ephy_permission_get_type (void) +{ + static GType type = 0; + + if (G_UNLIKELY (type == 0)) + { + static const GEnumValue values[] = + { + { EPHY_PERMISSION_ALLOWED, "EPHY_PERMISSION_ALLOWED", "allowed" }, + { EPHY_PERMISSION_DENIED, "EPHY_PERMISSION_DENIED", "denied" }, + { EPHY_PERMISSION_DEFAULT, "EPHY_PERMISSION_DEFAULT", "default" }, + { 0, NULL, NULL } + }; + + type = g_enum_register_static ("EphyPermission", values); + } + + return type; +} + +GType ephy_permission_info_get_type (void) { static GType type = 0; |