Moved a call to gobject.set_prgname a bit up
This commit is contained in:
parent
da6b4c031e
commit
a5ec7232a6
|
@ -135,6 +135,7 @@ if os.name == 'nt':
|
||||||
# PyGTK2.10+ only throws a warning
|
# PyGTK2.10+ only throws a warning
|
||||||
warnings.filterwarnings('error', module='gtk')
|
warnings.filterwarnings('error', module='gtk')
|
||||||
try:
|
try:
|
||||||
|
import gobject
|
||||||
import gtk
|
import gtk
|
||||||
except Warning, msg2:
|
except Warning, msg2:
|
||||||
if str(msg2) == 'could not open display':
|
if str(msg2) == 'could not open display':
|
||||||
|
@ -144,6 +145,8 @@ 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')
|
||||||
|
|
||||||
|
@ -218,8 +221,6 @@ if not hasattr(gobject, 'timeout_add_seconds'):
|
||||||
return gobject.timeout_add(time_sec * 1000, *args)
|
return gobject.timeout_add(time_sec * 1000, *args)
|
||||||
gobject.timeout_add_seconds = timeout_add_seconds_fake
|
gobject.timeout_add_seconds = timeout_add_seconds_fake
|
||||||
|
|
||||||
gobject.set_prgname('gajim')
|
|
||||||
|
|
||||||
import signal
|
import signal
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue