Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/widgets.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2011-05-16 15:34:19 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2011-05-16 15:34:19 (GMT)
commit200e2d208e8bd61181762b00020934159c813ee7 (patch)
treebcd207d8d2b31a0f740f4d93729dbe6c143bf921 /widgets.py
parentacb7bb09d0dcc5bc80b2c8f307469a522b7e12a4 (diff)
Resolve crash in XO-1 - OLPC 10854
The problem was a pixmap defined with depth 24. Works ok in XO-1.5 but in XO-1. Using -1 thew pixmap is created with the default depth.
Diffstat (limited to 'widgets.py')
-rw-r--r--widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets.py b/widgets.py
index 7c23683..c1833fa 100644
--- a/widgets.py
+++ b/widgets.py
@@ -56,7 +56,7 @@ class BrushButton(_ColorButton):
self._preview.show()
self.pixmap = gtk.gdk.Pixmap(self.get_window(),
style.STANDARD_ICON_SIZE,
- style.STANDARD_ICON_SIZE, 24)
+ style.STANDARD_ICON_SIZE, -1)
self._gc = self.get_window().new_gc()
self.show_all()