[hamster-applet] 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] setting label to blank made previous value to be rendered instead as the drawing went away with the
- Date: Fri, 24 Sep 2010 08:44:23 +0000 (UTC)
commit c7c9fe778c7ffd040e38065c3b8f9ef8ae174918
Author: Toms Bauģis <toms baugis gmail com>
Date: Fri Sep 24 09:44:12 2010 +0100
setting label to blank made previous value to be rendered instead as the drawing went away with the cache
src/hamster/utils/graphics.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster/utils/graphics.py b/src/hamster/utils/graphics.py
index 1549e9e..0ac5af8 100644
--- a/src/hamster/utils/graphics.py
+++ b/src/hamster/utils/graphics.py
@@ -944,6 +944,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]