changeset 968:a715301b5879

Start drawing after an expose event
author Thinker K.F. Li <thinker@codemud.net>
date Thu, 18 Nov 2010 11:54:37 +0800
parents 5c013e3cadd0
children d4b934d97a62
files pyink/frameline.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/frameline.py	Thu Nov 18 11:37:21 2010 +0800
+++ b/pyink/frameline.py	Thu Nov 18 11:54:37 2010 +0800
@@ -146,7 +146,7 @@
         self._keys = []
         self._active_frame = -1
         self._last_hover = -1   # frame index of last hover
-        self._drawing = True
+        self._drawing = False
         pass
 
     def _press_hdl(self, widget, event):
@@ -172,6 +172,7 @@
             emask = emask | gtk.gdk.BUTTON_PRESS_MASK | \
                 gtk.gdk.POINTER_MOTION_MASK
             win.set_events(emask)
+            self._drawing = True
             pass
         self.update()
         pass