[hamster-applet] perform case insensitive matching on tag mouse interaction (fixes bug 646653); also fixed a bug on t



commit 13a8664ec83ccc857c04a89c57e83bdb9dd03a2c
Author: Toms Bauģis <toms baugis gmail com>
Date:   Fri May 13 22:15:33 2011 +0300

    perform case insensitive matching on tag mouse interaction (fixes bug 646653); also fixed a bug on tag selection

 src/hamster/widgets/tags.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/hamster/widgets/tags.py b/src/hamster/widgets/tags.py
index 24946f9..cbb5938 100644
--- a/src/hamster/widgets/tags.py
+++ b/src/hamster/widgets/tags.py
@@ -72,7 +72,7 @@ class TagsEntry(gtk.Entry):
 
     def on_tag_selected(self, tag_box, tag):
         cursor_tag = self.get_cursor_tag()
-        if cursor_tag and tag.startswith(cursor_tag):
+        if cursor_tag and tag.lower().startswith(cursor_tag.lower()):
             self.replace_tag(cursor_tag, tag)
             tags = self.get_tags()
         else:
@@ -272,7 +272,7 @@ class TagBox(graphics.Scene):
         for label in tags:
             tag = Tag(label)
             if label in self.selected_tags:
-                tag.tag.fill = (242, 229, 97)
+                tag.color = (242, 229, 97)
             new_tags.append(tag)
 
         for tag in self.tags:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]