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

This commit is contained in:
Yann Leboulanger 2013-07-25 10:18:41 +02:00
parent c3f784ce59
commit 98919edd49
2 changed files with 4 additions and 5 deletions

View File

@ -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):
"""

View File

@ -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