check and do not work if < 2.6
This commit is contained in:
parent
788a4dc7a1
commit
bbf495c3b3
|
@ -26,8 +26,6 @@ import sys
|
||||||
import pygtk
|
import pygtk
|
||||||
import os
|
import os
|
||||||
|
|
||||||
if not os.name == 'nt': # py2exe only in windows
|
|
||||||
pygtk.require('2.0') # py2exe fails on this
|
|
||||||
try:
|
try:
|
||||||
import gtk
|
import gtk
|
||||||
except RuntimeError, msg:
|
except RuntimeError, msg:
|
||||||
|
@ -35,6 +33,13 @@ except RuntimeError, msg:
|
||||||
print >> sys.stderr, _('Gajim needs Xserver to run. Quiting...')
|
print >> sys.stderr, _('Gajim needs Xserver to run. Quiting...')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
if gtk.pygtk_version < (2, 6, 0):
|
||||||
|
print >> sys.stderr, _('Gajim needs PyGTK 2.6+ to run. Quiting...')
|
||||||
|
sys.exit()
|
||||||
|
elif gtk.gtk_version < (2, 6, 0):
|
||||||
|
print >> sys.stderr, _('Gajim needs GTK 2.6+ to run. Quiting...')
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
import gtkexcepthook
|
import gtkexcepthook
|
||||||
import gobject
|
import gobject
|
||||||
gobject.threads_init()
|
gobject.threads_init()
|
||||||
|
|
Loading…
Reference in New Issue