Skip to content
Snippets Groups Projects
Commit 98919edd authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't import GTK too early. see #7284, #7192

parent c3f784ce
No related branches found
No related tags found
No related merge requests found
......@@ -26,12 +26,9 @@ import gettext
import os
import defs
import unicodedata
import gtk
if gtk.widget_get_default_direction() == gtk.TEXT_DIR_LTR:
direction_mark = u'\u200E'
else:
direction_mark = u'\u200F'
# May be changed after GTK is imported
direction_mark = u'\u200F'
def paragraph_direction_mark(text):
"""
......
......@@ -205,6 +205,8 @@ warnings.resetwarnings()
if os.name == 'nt':
warnings.filterwarnings(action='ignore')
if gtk.widget_get_default_direction() == gtk.TEXT_DIR_LTR:
i18n.direction_mark = u'\u200E'
pritext = ''
from common import exceptions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment