From a5ec7232a67268e3353e96341fa05be73c349a7d Mon Sep 17 00:00:00 2001
From: Alexander Cherniuk <ts33kr@gmail.com>
Date: Wed, 31 Mar 2010 09:19:21 +0300
Subject: [PATCH] Moved a call to gobject.set_prgname a bit up

---
 src/gajim.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gajim.py b/src/gajim.py
index 3e08f298d6..dab5a4feae 100644
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -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
 
-- 
GitLab