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

call gobject.set_prgname *before* import gtk

parent 6387a980
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
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