From 719fea70382914c297f808abda57addd23d1534a Mon Sep 17 00:00:00 2001
From: Rui Matos <tiagomatos@gmail.com>
Date: Tue, 5 Nov 2013 17:00:21 +0100
Subject: [PATCH] gtweak/tweakmodel.py: Fix search
Return a list instead of a generator since the results are needed more
than once.
---
gtweak/tweakmodel.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gtweak/tweakmodel.py b/gtweak/tweakmodel.py
index 2e52db7..faa920b 100644
--- a/gtweak/tweakmodel.py
+++ b/gtweak/tweakmodel.py
@@ -179,7 +179,7 @@ class TweakModel(Gtk.ListStore):
group.set_tweaks(tweak)
def search_matches(self, txt):
- return (t for t in self.tweaks if t.search_matches(txt))
+ return list(t for t in self.tweaks if t.search_matches(txt))
def get_tweakgroup_iter(self, name):
return self._tweak_group_iters[name]
--
1.8.3.1