diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2006-01-22 07:24:35 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2006-01-22 07:24:35 +0800 |
commit | c4a28c0e1450ebbf70a83a9c5ee94aff0d9b7d34 (patch) | |
tree | d8afd6a1ba254163d577a36bc0b0f8f7dcb787c2 /src/epiphany.override | |
parent | c7f3a04884cb186d86ec96ee8103c526a70d222e (diff) | |
download | gsoc2013-epiphany-c4a28c0e1450ebbf70a83a9c5ee94aff0d9b7d34.tar gsoc2013-epiphany-c4a28c0e1450ebbf70a83a9c5ee94aff0d9b7d34.tar.gz gsoc2013-epiphany-c4a28c0e1450ebbf70a83a9c5ee94aff0d9b7d34.tar.bz2 gsoc2013-epiphany-c4a28c0e1450ebbf70a83a9c5ee94aff0d9b7d34.tar.lz gsoc2013-epiphany-c4a28c0e1450ebbf70a83a9c5ee94aff0d9b7d34.tar.xz gsoc2013-epiphany-c4a28c0e1450ebbf70a83a9c5ee94aff0d9b7d34.tar.zst gsoc2013-epiphany-c4a28c0e1450ebbf70a83a9c5ee94aff0d9b7d34.zip |
- Change EphyEmbedEvent.get_property to .get_event_property - Wrap
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()
Diffstat (limited to 'src/epiphany.override')
-rw-r--r-- | src/epiphany.override | 46 |
1 files changed, 46 insertions, 0 deletions
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) |