[hamster-applet/gnome-2-32] setting label to blank made previous value to be rendered instead as the drawing went away with the
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet/gnome-2-32] setting label to blank made previous value to be rendered instead as the drawing went away with the
- Date: Fri, 24 Sep 2010 09:24:04 +0000 (UTC)
commit 4b40e64c536a79329adbd0cae3d17c615f3904e0
Author: Toms Bauģis <toms baugis gmail com>
Date: Fri Sep 24 09:28:53 2010 +0100
setting label to blank made previous value to be rendered instead as the drawing went away with the cache
src/hamster/graphics.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster/graphics.py b/src/hamster/graphics.py
index 08a4ffd..bbb5a8e 100644
--- a/src/hamster/graphics.py
+++ b/src/hamster/graphics.py
@@ -639,6 +639,7 @@ class Label(Sprite):
def on_render(self, sprite):
if not self.text:
+ self.graphics.clear()
return
self.graphics.set_color(self.color)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]