Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 46dfdbaf444c313fc7ff952b375f794f > files > 1

exaile-0.2.10-3mdv2008.0.src.rpm

--- 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)