[hamster-applet] put back current selection bits
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] put back current selection bits
- Date: Thu, 6 May 2010 01:31:22 +0000 (UTC)
commit 975a1b8114478a254d938702c444f2079c95a439
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu May 6 02:31:06 2010 +0100
put back current selection bits
src/hamster/widgets/tags.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/widgets/tags.py b/src/hamster/widgets/tags.py
index 2ebd989..376e711 100644
--- a/src/hamster/widgets/tags.py
+++ b/src/hamster/widgets/tags.py
@@ -274,7 +274,12 @@ class TagBox(graphics.Scene):
self.redraw()
def draw(self, tags):
- new_tags = [Tag(label) for label in tags]
+ new_tags = []
+ for label in tags:
+ tag = Tag(label)
+ if label in self.selected_tags:
+ tag.tag.fill = (242, 229, 97)
+ new_tags.append(tag)
for tag in self.tags:
self.sprites.remove(tag)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]