aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-permission-manager.c
diff options
context:
space:
mode:
authorCrispin Flowerday <gnome@flowerday.cx>2006-01-22 20:35:30 +0800
committerCrispin Flowerday <crispin@src.gnome.org>2006-01-22 20:35:30 +0800
commit3b221e541fef2c6c4f1948eda8be95f4d7bc941e (patch)
treed5d461559d21796713374a7cb6e131a30a136a73 /embed/ephy-permission-manager.c
parent0730f856ac19d184decfcef122e18981d87d9f7e (diff)
downloadgsoc2013-epiphany-3b221e541fef2c6c4f1948eda8be95f4d7bc941e.tar
gsoc2013-epiphany-3b221e541fef2c6c4f1948eda8be95f4d7bc941e.tar.gz
gsoc2013-epiphany-3b221e541fef2c6c4f1948eda8be95f4d7bc941e.tar.bz2
gsoc2013-epiphany-3b221e541fef2c6c4f1948eda8be95f4d7bc941e.tar.lz
gsoc2013-epiphany-3b221e541fef2c6c4f1948eda8be95f4d7bc941e.tar.xz
gsoc2013-epiphany-3b221e541fef2c6c4f1948eda8be95f4d7bc941e.tar.zst
gsoc2013-epiphany-3b221e541fef2c6c4f1948eda8be95f4d7bc941e.zip
Change the EphyPermissionManager API so that it is more obvious what it
2006-01-22 Crispin Flowerday <gnome@flowerday.cx> * embed/ephy-permission-manager.c: (ephy_permission_manager_add_permission), (ephy_permission_manager_remove_permission), (ephy_permission_manager_clear_permissions), (ephy_permission_manager_test_permission), (ephy_permission_manager_list_permissions): * embed/ephy-permission-manager.h: * src/ephy-tab.c: (ephy_tab_get_popups_allowed), (ephy_tab_set_popups_allowed): * src/epiphany.defs: * src/epiphany.override: Change the EphyPermissionManager API so that it is more obvious what it does when used from python.
Diffstat (limited to 'embed/ephy-permission-manager.c')
-rw-r--r--embed/ephy-permission-manager.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/embed/ephy-permission-manager.c b/embed/ephy-permission-manager.c
index b83cd3ff4..6dd8bfdc4 100644
--- a/embed/ephy-permission-manager.c
+++ b/embed/ephy-permission-manager.c
@@ -206,7 +206,7 @@ ephy_permission_manager_base_init (gpointer g_class)
}
/**
- * ephy_permission_manager_add:
+ * ephy_permission_manager_add_permission:
* @manager: the #EphyPermissionManager
* @host: a website URL
* @type: a string to identify the type of the permission
@@ -215,17 +215,17 @@ ephy_permission_manager_base_init (gpointer g_class)
* Adds the specified permission to the permissions database.
**/
void
-ephy_permission_manager_add (EphyPermissionManager *manager,
- const char *host,
- const char *type,
- EphyPermission permission)
+ephy_permission_manager_add_permission (EphyPermissionManager *manager,
+ const char *host,
+ const char *type,
+ EphyPermission permission)
{
EphyPermissionManagerIface *iface = EPHY_PERMISSION_MANAGER_GET_IFACE (manager);
iface->add (manager, host, type, permission);
}
/**
- * ephy_permission_manager_remove:
+ * ephy_permission_manager_remove_permission:
* @manager: the #EphyPermissionManager
* @host: a website URL
* @type: a string to identify the type of the permission
@@ -235,29 +235,29 @@ ephy_permission_manager_add (EphyPermissionManager *manager,
* @host's web pages.
**/
void
-ephy_permission_manager_remove (EphyPermissionManager *manager,
- const char *host,
- const char *type)
+ephy_permission_manager_remove_permission (EphyPermissionManager *manager,
+ const char *host,
+ const char *type)
{
EphyPermissionManagerIface *iface = EPHY_PERMISSION_MANAGER_GET_IFACE (manager);
iface->remove (manager, host, type);
}
/**
- * ephy_permission_manager_clear:
+ * ephy_permission_manager_clear_permission:
* @manager: the #EphyPermissionManager
*
* Clears the permissions database. This cannot be undone.
**/
void
-ephy_permission_manager_clear (EphyPermissionManager *manager)
+ephy_permission_manager_clear_permissions (EphyPermissionManager *manager)
{
EphyPermissionManagerIface *iface = EPHY_PERMISSION_MANAGER_GET_IFACE (manager);
iface->clear (manager);
}
/**
- * ephy_permission_manager_test:
+ * ephy_permission_manager_test_permission:
* @manager: the #EphyPermissionManager
* @host: a website URL
* @type: a string to identify the type of the permission
@@ -270,16 +270,16 @@ ephy_permission_manager_clear (EphyPermissionManager *manager)
* Return value: the permission of type #EphyPermission
**/
EphyPermission
-ephy_permission_manager_test (EphyPermissionManager *manager,
- const char *host,
- const char *type)
+ephy_permission_manager_test_permission (EphyPermissionManager *manager,
+ const char *host,
+ const char *type)
{
EphyPermissionManagerIface *iface = EPHY_PERMISSION_MANAGER_GET_IFACE (manager);
return iface->test (manager, host, type);
}
/**
- * ephy_permission_manager_list:
+ * ephy_permission_manager_list_permission:
* @manager: the #EphyPermissionManager
* @type: a string to identify the type of the permission
*
@@ -290,8 +290,8 @@ ephy_permission_manager_test (EphyPermissionManager *manager,
* Return value: the list of permission database entries
**/
GList *
-ephy_permission_manager_list (EphyPermissionManager *manager,
- const char *type)
+ephy_permission_manager_list_permissions (EphyPermissionManager *manager,
+ const char *type)
{
EphyPermissionManagerIface *iface = EPHY_PERMISSION_MANAGER_GET_IFACE (manager);
return iface->list (manager, type);