pixbuf's names must not contain a space

This commit is contained in:
Yann Leboulanger 2004-12-19 18:34:29 +00:00
parent f55a3f94ca
commit a7f1063b4d
2 changed files with 4 additions and 3 deletions

View File

@ -1688,10 +1688,11 @@ class roster_Window:
'offline', 'error', 'requested', 'message', 'opened', 'closed', \
'not in list'):
# try to open a pixfile with the correct method
state_file = state.replace(" ", "_")
files = []
files.append(self.path + state + '.gif')
files.append(self.path + state + '.png')
files.append(self.path + state + '.xpm')
files.append(self.path + state_file + '.gif')
files.append(self.path + state_file + '.png')
files.append(self.path + state_file + '.xpm')
image = gtk.Image()
image.show()
self.pixbufs[state] = image