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