2 bugfixes

This commit is contained in:
Yann Leboulanger 2004-10-21 19:42:46 +00:00
parent 6e5009a5d6
commit 6b3a035158
2 changed files with 4 additions and 2 deletions

View File

@ -764,7 +764,7 @@ class agentRegistration_Window:
for name in self.entries.keys():
self.infos[name] = self.entries[name].get_text()
user1 = gtkgui.user(self.agent, self.agent, ['Agents'], 'offline', 'offline', \
'from', '', 0)
'from', '', 0, '')
self.plugin.roster.contacts[self.account][self.agent] = [user1]
self.plugin.roster.add_user_to_roster(self.agent, self.account)
self.plugin.send('REG_AGENT', self.account, self.agent)

View File

@ -2424,11 +2424,13 @@ class plugin:
iconstyle = 'sun'
path = 'plugins/gtkgui/icons/' + iconstyle + '/'
files = [path + 'online.gif', path + 'online.png', path + 'online.xpm']
pix = None
for file in files:
if os.path.exists(file):
pix = gtk.gdk.pixbuf_new_from_file(file)
break
gtk.window_set_default_icon(pix)
if pix:
gtk.window_set_default_icon(pix)
self.roster = roster_Window(self)
gtk.timeout_add(100, self.read_queue)
gtk.timeout_add(1000, self.read_sleepy)