Commit f66cbcac authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

add binding for get_cursor_position() (bug #118800).

* python/vte.override: add binding for get_cursor_position() (bug #118800).
parent 12d3080b
2003-08-11 nalin
* python/vte.override: add binding for get_cursor_position()
(bug #118800).
2003-08-11 nalin
* python/vte.defs: give length parameters for feed() and feed_child()
default values of -1 (bug #118711).
......
......@@ -143,6 +143,22 @@ _wrap_vte_terminal_fork_command(PyGObject * self, PyObject * args,
return PyInt_FromLong(pid);
}
%%
override vte_terminal_get_cursor_position noargs
static PyObject *
_wrap_vte_terminal_get_cursor_position(PyGObject *self)
{
PyObject *ret;
glong column, row;
vte_terminal_get_cursor_position(VTE_TERMINAL(self->obj),
&column, &row);
ret = PyTuple_New(2);
PyTuple_SetItem(ret, 0, PyInt_FromLong(column));
PyTuple_SetItem(ret, 1, PyInt_FromLong(row));
return ret;
}
%%
override vte_terminal_get_text kwargs
static gboolean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment