Skip to content
Snippets Groups Projects
Commit a5ec7232 authored by Alexander Cherniuk's avatar Alexander Cherniuk
Browse files

Moved a call to gobject.set_prgname a bit up

parent da6b4c03
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,7 @@ if os.name == 'nt':
# PyGTK2.10+ only throws a warning
warnings.filterwarnings('error', module='gtk')
try:
import gobject
import gtk
except Warning, msg2:
if str(msg2) == 'could not open display':
......@@ -144,6 +145,8 @@ except Warning, msg2:
sys.exit()
warnings.resetwarnings()
gobject.set_prgname('gajim')
if os.name == 'nt':
warnings.filterwarnings(action='ignore')
......@@ -218,8 +221,6 @@ if not hasattr(gobject, 'timeout_add_seconds'):
return gobject.timeout_add(time_sec * 1000, *args)
gobject.timeout_add_seconds = timeout_add_seconds_fake
gobject.set_prgname('gajim')
import signal
import gtkgui_helpers
......
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