2 bugfixes
This commit is contained in:
parent
6e5009a5d6
commit
6b3a035158
|
@ -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)
|
||||
|
|
|
@ -2424,10 +2424,12 @@ 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
|
||||
if pix:
|
||||
gtk.window_set_default_icon(pix)
|
||||
self.roster = roster_Window(self)
|
||||
gtk.timeout_add(100, self.read_queue)
|
||||
|
|
Loading…
Reference in New Issue