gtkspell is now ok
This commit is contained in:
parent
caf56d7ad9
commit
af4bf32103
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue