From a7f1063b4d3d3268f4a40edb2bd0caac37bb5dc7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 19 Dec 2004 18:34:29 +0000 Subject: [PATCH] pixbuf's names must not contain a space --- plugins/gtkgui/gtkgui.py | 7 ++++--- .../gtkgui/icons/sun/{not in list.xpm => not_in_list.xpm} | 0 2 files changed, 4 insertions(+), 3 deletions(-) rename plugins/gtkgui/icons/sun/{not in list.xpm => not_in_list.xpm} (100%) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index d0eaca6e5..596a30375 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -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 diff --git a/plugins/gtkgui/icons/sun/not in list.xpm b/plugins/gtkgui/icons/sun/not_in_list.xpm similarity index 100% rename from plugins/gtkgui/icons/sun/not in list.xpm rename to plugins/gtkgui/icons/sun/not_in_list.xpm