From 112c3188133d568da567672c750554a06c95a4a7 Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Fri, 8 Feb 2008 01:59:09 -0500 Subject: [PATCH] Add binding to change the color for a row. --- gnttree.override | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gnttree.override b/gnttree.override index fe4ee8a..54e66ad 100644 --- a/gnttree.override +++ b/gnttree.override @@ -204,6 +204,23 @@ _wrap_gnt_tree_change_text(PyGObject *self, PyObject *args, PyObject *kwargs) return Py_None; } %% +override gnt_tree_set_row_color kwargs +static PyObject * +_wrap_gnt_tree_set_row_color(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "key", "color", NULL }; + gpointer key; + int color; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!i:GntTree.set_row_color", kwlist, &PyGObject_Type, &key, &color)) + return NULL; + + gnt_tree_set_row_color(GNT_TREE(self->obj), key, color); + + Py_INCREF(Py_None); + return Py_None; +} +%% override gnt_tree_set_row_flags kwargs static PyObject * _wrap_gnt_tree_set_row_flags(PyGObject *self, PyObject *args, PyObject *kwargs) -- 2.11.4.GIT