Changeset 5665 for trunk/src/gtkspellmodule.c
- Timestamp:
- 03/14/06 23:35:50 (3 years ago)
- Files:
-
- 1 modified
-
trunk/src/gtkspellmodule.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gtkspellmodule.c
r1683 r5665 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); 52 53 if (!PyArg_ParseTupleAndKeywords (args, kwds, "z", argnames, &lang)) 54 return NULL; 54 55 55 56 result = gtkspell_set_language (self->spell, lang, NULL); … … 81 82 GtkTextView *textview; 82 83 gtkspell_SpellObject *self; 83 84 84 char *argnames[] = {"textview", NULL}; 85 PyArg_ParseTupleAndKeywords (args, kwds, "O", argnames, &pytextview); 85 86 if (!PyArg_ParseTupleAndKeywords (args, kwds, "O", argnames, &pytextview)) 87 return NULL; 86 88 87 89 textview = GTK_TEXT_VIEW(((PyGObject *)pytextview)->obj); … … 203 205 } 204 206 } 207
