diff options
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | src/epiphany.defs | 14 | ||||
-rw-r--r-- | src/epiphany.override | 46 |
3 files changed, 68 insertions, 2 deletions
@@ -1,5 +1,15 @@ 2006-01-21 Crispin Flowerday <gnome@flowerday.cx> + * src/epiphany.defs: + * src/epiphany.override: + + - Change EphyEmbedEvent.get_property to .get_event_property + - Wrap EphyPermissionManager.list(), and the boxed + type it uses. + - Wrap EphyEmbed.get_security_level() + +2006-01-21 Crispin Flowerday <gnome@flowerday.cx> + * src/window-commands.c (window_cmd_help_about): Put blank lines between the paragraphs in the diff --git a/src/epiphany.defs b/src/epiphany.defs index 15e5bcb76..5416afb1c 100644 --- a/src/epiphany.defs +++ b/src/epiphany.defs @@ -596,7 +596,7 @@ ) ) -(define-method get_property +(define-method get_event_property (of-object "EphyEmbedEvent") (c-name "ephy_embed_event_get_property") (return-type "const-GValue*") @@ -605,7 +605,7 @@ ) ) -(define-method has_property +(define-method has_event_property (of-object "EphyEmbedEvent") (c-name "ephy_embed_event_has_property") (return-type "gboolean") @@ -3738,3 +3738,13 @@ (gtype-id "EPHY_TYPE_NODE") ) +(define-boxed PermissionInfo + (in-module "Ephy") + (c-name "EphyPermissionInfo") + (gtype-id "EPHY_TYPE_PERMISSION_INFO") + (fields + '("char*" "host") + '("GQuark" "type") + '("EphyPermission" "permission") + ) +) diff --git a/src/epiphany.override b/src/epiphany.override index 1d1535f79..04ef7303e 100644 --- a/src/epiphany.override +++ b/src/epiphany.override @@ -215,6 +215,23 @@ _wrap_ephy_embed_event_get_coords(PyGObject *self) return Py_BuildValue("(ll)", x, y); } %% +override ephy_embed_get_security_level noargs +static PyObject * +_wrap_ephy_embed_get_security_level(PyGObject *self) +{ + EphyEmbedSecurityLevel level; + char *description; + PyObject* ret; + + ephy_embed_get_security_level (EPHY_EMBED(self->obj), &level, &description); + ret = Py_BuildValue("(Os)", + pyg_enum_from_gtype (EPHY_TYPE_EMBED_SECURITY_LEVEL, level), + description); + g_free (description); + + return ret; +} +%% override ephy_window_get_tabs noargs static PyObject * _wrap_ephy_window_get_tabs(PyGObject *self) @@ -386,6 +403,35 @@ _wrap_ephy_cookie_manager_list_cookies(PyGObject *self) return _helper_wrap_boxed_glist (EPHY_TYPE_COOKIE, list); } %% +override ephy_permission_manager_list kwargs +static PyObject * +_wrap_ephy_permission_manager_list (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)) + return NULL; + + list = ephy_permission_manager_list(EPHY_PERMISSION_MANAGER (self->obj), type); + + return _helper_wrap_boxed_glist (EPHY_TYPE_PERMISSION_INFO, list); +} +%% +override-attr EphyPermissionInfo.type +static PyObject* +_wrap_ephy_permission_info__get_type (PyObject* self, void* closure) +{ + const char* type; + + type = g_quark_to_string (pyg_boxed_get(self, EphyPermissionInfo)->qtype); + + return PyString_FromString (type); +} +%% override ephy_node_get_children noargs static PyObject * _wrap_ephy_node_get_children (PyGObject *self) |