[kupfer] documents: Find recent documents for applications case-insensitively
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] documents: Find recent documents for applications case-insensitively
- Date: Sat, 9 Jan 2010 20:21:20 +0000 (UTC)
commit c7b9cf3396794c7da9509bd68f9d6d0fec3d3fac
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sat Jan 9 00:32:42 2010 +0100
documents: Find recent documents for applications case-insensitively
kupfer/plugin/documents.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/documents.py b/kupfer/plugin/documents.py
index f990d2e..8a83488 100644
--- a/kupfer/plugin/documents.py
+++ b/kupfer/plugin/documents.py
@@ -54,8 +54,9 @@ class RecentsSource (Source):
items = manager.get_items()
item_leaves = []
for item in items:
- if (for_application_named and
- for_application_named not in item.get_applications()):
+ if for_application_named:
+ low_apps = [A.lower() for A in item.get_applications()]
+ if for_application_named.lower() not in low_apps:
continue
day_age = item.get_age()
if max_days >= 0 and day_age > max_days:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]