Changeset 5665

Show
Ignore:
Timestamp:
03/14/06 23:35:50 (3 years ago)
Author:
asterix
Message:

[gjc] gtkspellmodule upstream update. Fixes #1700

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gtkspellmodule.c

    r1683 r5665  
    4747_wrap_gtkspell_set_language (gtkspell_SpellObject *self, PyObject *args, PyObject *kwds) 
    4848{ 
    49         gchar *lang; 
     49        gchar *lang = NULL; 
    5050        gboolean result; 
    51          
    5251        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; 
    5455 
    5556        result = gtkspell_set_language (self->spell, lang, NULL);        
     
    8182        GtkTextView *textview; 
    8283        gtkspell_SpellObject *self;  
    83        
    8484        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; 
    8688 
    8789        textview = GTK_TEXT_VIEW(((PyGObject *)pytextview)->obj); 
     
    203205    } 
    204206} 
     207