Revision: 9cd20aca601d
Branch: default
Author: gbtami
Date: Sun Jan 18 13:56:39 2015 UTC
Log: Fixed score panel drawing regression when move count was big
enough to panel have to scoll
https://code.google.com/p/pychess/source/detail?r=9cd20aca601d
Modified:
/sidepanel/scorePanel.py
=======================================
--- /sidepanel/scorePanel.py Tue Dec 30 16:34:48 2014 UTC
+++ /sidepanel/scorePanel.py Sun Jan 18 13:56:39 2015 UTC
@@ -197,8 +197,7 @@
self.grab_focus()
self.emit('selected', event.y/self.moveHeight)
- def expose (self, widget, ctx):
- context = widget.get_window().cairo_create()
+ def expose (self, widget, context):
a = widget.get_allocation()
context.rectangle(a.x, a.y,
a.width, a.height)