diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-permission-manager.c | 21 | ||||
-rw-r--r-- | embed/ephy-permission-manager.h | 3 |
2 files changed, 24 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; diff --git a/embed/ephy-permission-manager.h b/embed/ephy-permission-manager.h index 8ada417f2..b3d2ec1d0 100644 --- a/embed/ephy-permission-manager.h +++ b/embed/ephy-permission-manager.h @@ -35,6 +35,7 @@ G_BEGIN_DECLS #define EPHY_PERMISSION_MANAGER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_PERMISSION_MANAGER, EphyPermissionManagerIface)) #define EPHY_TYPE_PERMISSION_INFO (ephy_permission_info_get_type ()) +#define EPHY_TYPE_PERMISSION (ephy_permission_get_type ()) #define EPT_COOKIE "cookie" #define EPT_IMAGE "image" @@ -90,6 +91,8 @@ struct EphyPermissionManagerIface /* EphyPermissionInfo */ +GType ephy_permission_get_type (void); + GType ephy_permission_info_get_type (void); EphyPermissionInfo *ephy_permission_info_new (const char *host, |