gtkspell is now ok

This commit is contained in:
Yann Leboulanger 2012-12-27 00:02:51 +01:00
parent caf56d7ad9
commit af4bf32103
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
import ctypes import ctypes
import ctypes.util import ctypes.util
import gtk from gi.repository import Gtk
gboolean = ctypes.c_int gboolean = ctypes.c_int
@ -63,8 +63,8 @@ def ensure_attached(func):
class Spell(object): class Spell(object):
def __init__(self, textview, language=None, create=True): def __init__(self, textview, language=None, create=True):
if not isinstance(textview, gtk.TextView): if not isinstance(textview, Gtk.TextView):
raise TypeError("Textview must be derived from gtk.TextView") raise TypeError("Textview must be derived from Gtk.TextView")
tv = PyGObject.from_address(id(textview)).obj tv = PyGObject.from_address(id(textview)).obj
spell = libgtkspell.gtkspell_get_from_text_view(tv) spell = libgtkspell.gtkspell_get_from_text_view(tv)
if create: if create: