--- xl/xlmisc.py.orig 2007-06-25 19:03:21.000000000 +0200 +++ xl/xlmisc.py 2007-06-25 19:03:49.000000000 +0200 @@ -1709,8 +1709,8 @@ def get_text_icon(widget, text, width, h """ if BITMAP_CACHE.has_key("%s - %sx%s - %s" % (text, width, height, bgcolor)): return BITMAP_CACHE["%s - %sx%s - %s" % (text, width, height, bgcolor)] - - pixmap = gtk.gdk.Pixmap(None, width, height, 24) + default_visual = gtk.gdk.visual_get_system() + pixmap = gtk.gdk.Pixmap(None, width, height, default_visual.depth) colormap = gtk.gdk.colormap_get_system() white = colormap.alloc_color(65535, 65535, 65535) black = colormap.alloc_color(0, 0, 0)