comparison finch/libgnt/pygnt/gnttree.override @ 18730:54a28e05e8af

Export another tree function.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 31 Jul 2007 12:01:42 +0000
parents 254823d66aa5
children 44b4e8bd759b
comparison
equal deleted inserted replaced
18729:fae29ba432c8 18730:54a28e05e8af
160 gnt_tree_remove(GNT_TREE(self->obj), key); 160 gnt_tree_remove(GNT_TREE(self->obj), key);
161 161
162 Py_INCREF(Py_None); 162 Py_INCREF(Py_None);
163 return Py_None; 163 return Py_None;
164 } 164 }
165 %%
166 override gnt_tree_set_selected
167 static PyObject *
168 _wrap_gnt_tree_set_selected(PyGObject *self, PyObject *args)
169 {
170 gpointer key;
171 if (!PyArg_ParseTuple(args, "O:GntTree.set_selected", &key)) {
172 return NULL;
173 }
174 gnt_tree_set_selected(GNT_TREE(self->obj), key);
175 Py_INCREF(Py_None);
176 return Py_None;
177 }
178