changeset 18730:54a28e05e8af

Export another tree function.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 31 Jul 2007 12:01:42 +0000
parents fae29ba432c8
children 6976a6dae441
files finch/libgnt/pygnt/gnttree.override
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/pygnt/gnttree.override	Tue Jul 31 12:00:47 2007 +0000
+++ b/finch/libgnt/pygnt/gnttree.override	Tue Jul 31 12:01:42 2007 +0000
@@ -162,3 +162,17 @@
 	Py_INCREF(Py_None);
 	return Py_None;
 }
+%%
+override gnt_tree_set_selected
+static PyObject *
+_wrap_gnt_tree_set_selected(PyGObject *self, PyObject *args)
+{
+	gpointer key;
+	if (!PyArg_ParseTuple(args, "O:GntTree.set_selected", &key)) {
+		return NULL;
+	}
+	gnt_tree_set_selected(GNT_TREE(self->obj), key);
+	Py_INCREF(Py_None);
+	return Py_None;
+}
+