Fix import error
This commit is contained in:
parent
347f0a8aad
commit
40547c4d4b
1 changed files with 1 additions and 3 deletions
|
@ -21,15 +21,13 @@ from gi.repository import GObject
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
import gi
|
import gi
|
||||||
gi.require_version('GtkSpell', '3.0')
|
|
||||||
try:
|
try:
|
||||||
|
gi.require_version('GtkSpell', '3.0')
|
||||||
from gi.repository import GtkSpell
|
from gi.repository import GtkSpell
|
||||||
HAS_GTK_SPELL = True
|
HAS_GTK_SPELL = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAS_GTK_SPELL = False
|
HAS_GTK_SPELL = False
|
||||||
|
|
||||||
from gajim.common import app
|
|
||||||
|
|
||||||
|
|
||||||
def ensure_attached(func):
|
def ensure_attached(func):
|
||||||
def f(self, *args, **kwargs):
|
def f(self, *args, **kwargs):
|
||||||
|
|
Loading…
Add table
Reference in a new issue