diff finch/libgnt/pygnt/gnttree.override @ 18682:254823d66aa5

The promised cleanups.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 28 Jul 2007 20:21:48 +0000
parents 6b16fca71f8b
children 54a28e05e8af
line wrap: on
line diff
--- a/finch/libgnt/pygnt/gnttree.override	Sat Jul 28 11:30:54 2007 +0000
+++ b/finch/libgnt/pygnt/gnttree.override	Sat Jul 28 20:21:48 2007 +0000
@@ -20,7 +20,7 @@
  * USA
  */
 %%
-headrs
+headers
 #include "common.h"
 %%
 ignore 
@@ -63,7 +63,7 @@
 {
 	static char *kwlist[] = {"key", "row", "parent", "bigbro", NULL};
 	PyObject *py_list;
-	PyGObject *key, *parent, *bigbro;
+	gpointer key, parent, bigbro;
 	int len, i;
 	GList *list = NULL;
 	GntTreeRow *row;
@@ -116,49 +116,49 @@
 static PyObject *
 _wrap_gnt_tree_change_text(PyGObject *self, PyObject *args, PyObject *kwargs)
 {
-    static char *kwlist[] = { "key", "colno", "text", NULL };
-    char *text;
+	static char *kwlist[] = { "key", "colno", "text", NULL };
+	char *text;
 	int colno;
 	gpointer key;
 
-    if (!PyArg_ParseTupleAndKeywords(args, kwargs,"Ois:GntTree.change_text", kwlist, &key, &colno, &text))
-        return NULL;
-    
-    gnt_tree_change_text(GNT_TREE(self->obj), key, colno, text);
-    
-    Py_INCREF(Py_None);
-    return Py_None;
+	if (!PyArg_ParseTupleAndKeywords(args, kwargs,"Ois:GntTree.change_text", kwlist, &key, &colno, &text))
+		return NULL;
+
+	gnt_tree_change_text(GNT_TREE(self->obj), key, colno, text);
+
+	Py_INCREF(Py_None);
+	return Py_None;
 }
 %%
 override gnt_tree_set_row_flags
 static PyObject *
 _wrap_gnt_tree_set_row_flags(PyGObject *self, PyObject *args, PyObject *kwargs)
 {
-    static char *kwlist[] = { "key", "flag", NULL };
+	static char *kwlist[] = { "key", "flag", NULL };
 	int flag;
 	gpointer key;
 
-    if (!PyArg_ParseTupleAndKeywords(args, kwargs,"Oi:GntTree.set_row_flags", kwlist, &key, &flag))
-        return NULL;
-    
-    gnt_tree_set_row_flags(GNT_TREE(self->obj), key, flag);
-    
-    Py_INCREF(Py_None);
-    return Py_None;
+	if (!PyArg_ParseTupleAndKeywords(args, kwargs,"Oi:GntTree.set_row_flags", kwlist, &key, &flag))
+		return NULL;
+
+	gnt_tree_set_row_flags(GNT_TREE(self->obj), key, flag);
+
+	Py_INCREF(Py_None);
+	return Py_None;
 }
 %%
 override gnt_tree_remove
 static PyObject *
 _wrap_gnt_tree_remove(PyGObject *self, PyObject *args, PyObject *kwargs)
 {
-    static char *kwlist[] = { "key", NULL };
+	static char *kwlist[] = { "key", NULL };
 	gpointer key;
 
-    if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O:GntTree.remove", kwlist, &key))
-        return NULL;
-    
-    gnt_tree_remove(GNT_TREE(self->obj), key);
-    
-    Py_INCREF(Py_None);
-    return Py_None;
+	if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O:GntTree.remove", kwlist, &key))
+		return NULL;
+
+	gnt_tree_remove(GNT_TREE(self->obj), key);
+
+	Py_INCREF(Py_None);
+	return Py_None;
 }