call gobject.set_prgname *before* import gtk

This commit is contained in:
Yann Leboulanger 2011-12-14 21:45:12 +01:00
parent 6387a980a8
commit 24e1de7c5b
1 changed files with 1 additions and 1 deletions

View File

@ -186,6 +186,7 @@ if os.name == 'nt':
warnings.filterwarnings('error', module='gtk')
try:
import gobject
gobject.set_prgname('gajim')
import gtk
except Warning, msg2:
if str(msg2) == 'could not open display':
@ -195,7 +196,6 @@ except Warning, msg2:
sys.exit()
warnings.resetwarnings()
gobject.set_prgname('gajim')
if os.name == 'nt':
warnings.filterwarnings(action='ignore')