[hamster-applet] fix strange condition when we are asked to render without knowing the fill color yet
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] fix strange condition when we are asked to render without knowing the fill color yet
- Date: Thu, 19 Aug 2010 11:54:55 +0000 (UTC)
commit 2feb4321f682f9fc2420e10a3ee6d0d19350bb8d
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu Aug 19 12:54:43 2010 +0100
fix strange condition when we are asked to render without knowing the fill color yet
src/hamster/widgets/dayline.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster/widgets/dayline.py b/src/hamster/widgets/dayline.py
index fe92dd9..95f3927 100644
--- a/src/hamster/widgets/dayline.py
+++ b/src/hamster/widgets/dayline.py
@@ -45,6 +45,9 @@ class Selection(graphics.Sprite):
def on_render(self, sprite):
+ if not self.fill: # not ready yet
+ return
+
self.graphics.rectangle(0, 0, self.width, self.height)
self.graphics.fill(self.fill, 0.3)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]