Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/questions.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2014-04-11 02:03:54 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-05-14 21:21:41 (GMT)
commit24bf5a350a4e029c6b3eb10484826a9924c2aff5 (patch)
tree93a4136a6f81eee4df3f1f0f97a35e07c0fe8fec /questions.py
parentdd749da6fdc05374ee656762f6c34d2c52ca6779 (diff)
Change expose events to draw
Diffstat (limited to 'questions.py')
-rw-r--r--questions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/questions.py b/questions.py
index b1fdea8..0233af8 100644
--- a/questions.py
+++ b/questions.py
@@ -36,7 +36,7 @@ class DrawReplyArea(Gtk.DrawingArea):
self._width, self._height)
# Signals used to handle backing pixmap
- self.connect("expose_event", self.__expose_draw_reply_cb)
+ self.connect("draw", self.__draw_cb)
# Event signals
if self._edit:
@@ -71,10 +71,10 @@ class DrawReplyArea(Gtk.DrawingArea):
return True
# Redraw the screen from the backing pixmap
- def __expose_draw_reply_cb(self, widget, event):
+ def __draw_cb(self, widget, ctx):
if self.background is None:
self.setup()
- x, y, width, height = event.area
+ x, y, width, height = ctx.clip_extents()
widget.window.draw_drawable(widget.get_style().fg_gc[Gtk.StateType.NORMAL],
self.background, x, y, x, y, width, height)
if self._edit: