aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/ephy-tab.c4
-rw-r--r--src/epiphany.defs20
-rw-r--r--src/epiphany.override10
3 files changed, 17 insertions, 17 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 838e192bf..3d91ded53 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -619,7 +619,7 @@ ephy_tab_get_popups_allowed (EphyTab *tab)
location = ephy_embed_get_location (embed, TRUE);
if (location == NULL) return FALSE; /* FALSE, TRUE... same thing */
- response = ephy_permission_manager_test
+ response = ephy_permission_manager_test_permission
(permission_manager, location, EPT_POPUP);
switch (response)
@@ -757,7 +757,7 @@ ephy_tab_set_popups_allowed (EphyTab *tab,
permission = allowed ? EPHY_PERMISSION_ALLOWED
: EPHY_PERMISSION_DENIED;
- ephy_permission_manager_add (manager, location, EPT_POPUP, permission);
+ ephy_permission_manager_add_permission (manager, location, EPT_POPUP, permission);
if (allowed)
{
diff --git a/src/epiphany.defs b/src/epiphany.defs
index 5416afb1c..76c0e0322 100644
--- a/src/epiphany.defs
+++ b/src/epiphany.defs
@@ -1477,9 +1477,9 @@
(return-type "GType")
)
-(define-method add
+(define-method add_permission
(of-object "EphyPermissionManager")
- (c-name "ephy_permission_manager_add")
+ (c-name "ephy_permission_manager_add_permission")
(return-type "none")
(parameters
'("const-char*" "host")
@@ -1488,9 +1488,9 @@
)
)
-(define-method remove
+(define-method remove_permission
(of-object "EphyPermissionManager")
- (c-name "ephy_permission_manager_remove")
+ (c-name "ephy_permission_manager_remove_permission")
(return-type "none")
(parameters
'("const-char*" "host")
@@ -1498,15 +1498,15 @@
)
)
-(define-method clear
+(define-method clear_permissions
(of-object "EphyPermissionManager")
- (c-name "ephy_permission_manager_clear")
+ (c-name "ephy_permission_manager_clear_permissions")
(return-type "none")
)
-(define-method test
+(define-method test_permission
(of-object "EphyPermissionManager")
- (c-name "ephy_permission_manager_test")
+ (c-name "ephy_permission_manager_test_permission")
(return-type "EphyPermission")
(parameters
'("const-char*" "host")
@@ -1514,9 +1514,9 @@
)
)
-(define-method list
+(define-method list_permissions
(of-object "EphyPermissionManager")
- (c-name "ephy_permission_manager_list")
+ (c-name "ephy_permission_manager_list_permissions")
(return-type "GList*")
(parameters
'("const-char*" "type")
diff --git a/src/epiphany.override b/src/epiphany.override
index 04ef7303e..9bc352bea 100644
--- a/src/epiphany.override
+++ b/src/epiphany.override
@@ -403,20 +403,20 @@ _wrap_ephy_cookie_manager_list_cookies(PyGObject *self)
return _helper_wrap_boxed_glist (EPHY_TYPE_COOKIE, list);
}
%%
-override ephy_permission_manager_list kwargs
+override ephy_permission_manager_list_permissions kwargs
static PyObject *
-_wrap_ephy_permission_manager_list (PyGObject *self,
- PyObject *args, PyObject *kwargs)
+_wrap_ephy_permission_manager_list_permissions (PyGObject *self,
+ PyObject *args, PyObject *kwargs)
{
static char *kwlist[] = {"type", NULL};
char *type;
GList *list;
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
- "s:EphyPermissionManager.list", kwlist, &type))
+ "s:EphyPermissionManager.list_permissions", kwlist, &type))
return NULL;
- list = ephy_permission_manager_list(EPHY_PERMISSION_MANAGER (self->obj), type);
+ list = ephy_permission_manager_list_permissions(EPHY_PERMISSION_MANAGER (self->obj), type);
return _helper_wrap_boxed_glist (EPHY_TYPE_PERMISSION_INFO, list);
}