Moved a call to gobject.set_prgname a bit up

This commit is contained in:
Alexander Cherniuk 2010-03-31 09:19:21 +03:00
parent da6b4c031e
commit a5ec7232a6
1 changed files with 3 additions and 2 deletions

View File

@ -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