[hamster-applet] looked on the queue_draw did not figure anything. maybe broke something though, ahahah
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] looked on the queue_draw did not figure anything. maybe broke something though, ahahah
- Date: Fri, 27 Nov 2009 14:51:11 +0000 (UTC)
commit 29f6f8b672af4557798bafaafaf0e58004e554e5
Author: Toms Bauģis <toms baugis gmail com>
Date: Fri Nov 27 14:50:56 2009 +0000
looked on the queue_draw did not figure anything. maybe broke something though, ahahah
hamster/graphics.py | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/hamster/graphics.py b/hamster/graphics.py
index bc5898b..e1fe1e8 100644
--- a/hamster/graphics.py
+++ b/hamster/graphics.py
@@ -54,7 +54,7 @@ class Area(gtk.DrawingArea):
self.__prev_mouse_regions = None
self.tweener = pytweener.Tweener(0.4, pytweener.Easing.Cubic.easeInOut)
- self.framerate = 30 #thirty seems to be good enough to avoid flicker
+ self.framerate = 60
self.last_frame_time = None
self.__animating = False
@@ -82,10 +82,8 @@ class Area(gtk.DrawingArea):
self.tweener.update(time_since_start)
self.queue_draw()
- self.window.process_updates(True)
self.last_frame_time = dt.datetime.now()
-
return self.__animating
@@ -145,9 +143,8 @@ class Area(gtk.DrawingArea):
""" exposure events """
def do_configure_event(self, event):
- (self.__width, self.__height) = self.window.get_size()
- self.queue_draw()
-
+ (self.width, self.height) = self.window.get_size()
+
def do_expose_event(self, event):
self.width, self.height = self.window.get_size()
self.context = self.window.cairo_create()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]