diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2012-12-27 03:02:51 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2012-12-27 03:02:51 +0400 |
commit | af4bf3210382cbf2263bdb31fbc0fe9d1c9fdbbf (patch) | |
tree | f0a49683dbda727ea1be14fe85c886ef6196c171 /src/gtkspell.py | |
parent | caf56d7ad9f1912e006e21afdfaa418211bd3d90 (diff) |
gtkspell is now ok
Diffstat (limited to 'src/gtkspell.py')
-rw-r--r-- | src/gtkspell.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gtkspell.py b/src/gtkspell.py index aa1adaec7..ad578a94a 100644 --- a/src/gtkspell.py +++ b/src/gtkspell.py @@ -19,7 +19,7 @@ import ctypes import ctypes.util -import gtk +from gi.repository import Gtk gboolean = ctypes.c_int @@ -63,8 +63,8 @@ def ensure_attached(func): class Spell(object): def __init__(self, textview, language=None, create=True): - if not isinstance(textview, gtk.TextView): - raise TypeError("Textview must be derived from gtk.TextView") + if not isinstance(textview, Gtk.TextView): + raise TypeError("Textview must be derived from Gtk.TextView") tv = PyGObject.from_address(id(textview)).obj spell = libgtkspell.gtkspell_get_from_text_view(tv) if create: |