Ticket #1700: gtkspell.diff
| File gtkspell.diff, 1.2 kB (added by Gustavo Carneiro <gjc@…>, 3 years ago) |
|---|
-
gtkspellmodule.c
46 46 static PyObject * 47 47 _wrap_gtkspell_set_language (gtkspell_SpellObject *self, PyObject *args, PyObject *kwds) 48 48 { 49 gchar *lang ;49 gchar *lang = NULL; 50 50 gboolean result; 51 52 51 char *argnames[] = {"language", NULL}; 53 PyArg_ParseTupleAndKeywords (args, kwds, "s", argnames, &lang);54 52 53 if (!PyArg_ParseTupleAndKeywords (args, kwds, "z", argnames, &lang)) 54 return NULL; 55 55 56 result = gtkspell_set_language (self->spell, lang, NULL); 56 57 57 58 if (!result) { … … 80 81 PyObject *pytextview; 81 82 GtkTextView *textview; 82 83 gtkspell_SpellObject *self; 83 84 84 char *argnames[] = {"textview", NULL}; 85 PyArg_ParseTupleAndKeywords (args, kwds, "O", argnames, &pytextview);86 85 86 if (!PyArg_ParseTupleAndKeywords (args, kwds, "O", argnames, &pytextview)) 87 return NULL; 88 87 89 textview = GTK_TEXT_VIEW(((PyGObject *)pytextview)->obj); 88 90 89 91 self = (gtkspell_SpellObject *)PyType_GenericAlloc((PyTypeObject *)>kspell_SpellType, 1); … … 202 204 Py_FatalError ("can't initialise module gtkspell"); 203 205 } 204 206 } 207
