updated to use splited glades

This commit is contained in:
Dimitur Kirov 2006-05-02 18:27:15 +00:00
parent 7b1d582bf1
commit 70207eb52f
1 changed files with 2 additions and 3 deletions

View File

@ -39,6 +39,7 @@ import os
WM_TASKBARCREATED = win32gui.RegisterWindowMessage('TaskbarCreated') WM_TASKBARCREATED = win32gui.RegisterWindowMessage('TaskbarCreated')
WM_TRAYMESSAGE = win32con.WM_USER + 20 WM_TRAYMESSAGE = win32con.WM_USER + 20
import gtkgui_helpers
from common import gajim from common import gajim
from common import i18n from common import i18n
_ = i18n._ _ = i18n._
@ -46,8 +47,6 @@ APP = i18n.APP
gtk.glade.bindtextdomain(APP, i18n.DIR) gtk.glade.bindtextdomain(APP, i18n.DIR)
gtk.glade.textdomain(APP) gtk.glade.textdomain(APP)
GTKGUI_GLADE = 'gtkgui.glade'
class SystrayWINAPI: class SystrayWINAPI:
def __init__(self, gtk_window): def __init__(self, gtk_window):
self._window = gtk_window self._window = gtk_window
@ -213,7 +212,7 @@ class SystrayWin32(systray.Systray):
systray.Systray.__init__(self) systray.Systray.__init__(self)
self.jids = [] self.jids = []
self.status = 'offline' self.status = 'offline'
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'systray_context_menu', APP) self.xml = gtkgui_helpers.get_glade('systray_context_menu.glade')
self.systray_context_menu = self.xml.get_widget('systray_context_menu') self.systray_context_menu = self.xml.get_widget('systray_context_menu')
self.added_hide_menuitem = False self.added_hide_menuitem = False