Index: channels/search.py ================================================================== --- channels/search.py +++ channels/search.py @@ -80,11 +80,11 @@ text = " ".join([str(row.get(f, " ")) for f in fields]) if text.lower().find(self.q) >= 0: row = copy(row) row["genre"] = "%s %s" % (c or "", row.get("genre") or "") entries.append(row) - self.show_results(entries) + uikit.do(self.show_results, entries) # display "search" in "bookmarks" def show_results(self, entries): self.main.status(1.0) self.main.status("") @@ -109,11 +109,11 @@ row["genre"] = cn.meta["title"] + " " + row.get("genre", "") entries += add except: continue #main.status(main, 1.0 * i / 15) - self.show_results(entries) + uikit.do(self.show_results, entries) # search text edited in text entry box def quicksearch_set(self, w, *eat, **up): Index: uikit.py ================================================================== --- uikit.py +++ uikit.py @@ -401,12 +401,12 @@ # pass updates from another thread, ensures that it is called just once @staticmethod - def do(lambda_func): - gobject.idle_add(lambda: lambda_func() and False) + def do(callback, *args, **kwargs): + gobject.idle_add(lambda: callback(*args, **kwargs) and False) # adds background color to widget, # eventually wraps it into a gtk.Window, if it needs a container @staticmethod