Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSayamindu Dasgupta <sayamindu@gmail.com>2009-09-21 11:44:01 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-10-09 11:11:49 (GMT)
commit207a6d02a2ed0c7a1287c7ebdd9f03d37127b442 (patch)
treefa63b94258fd9598388bd6a5df7e3e96f375661d
parentfd5fa04bbaa200822ab592aa32708e9f9a303c43 (diff)
Fix search in epub
-rw-r--r--epubview/jobs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/epubview/jobs.py b/epubview/jobs.py
index 4637e2f..468e4cc 100644
--- a/epubview/jobs.py
+++ b/epubview/jobs.py
@@ -55,7 +55,7 @@ class SearchThread(threading.Thread):
filepath = os.path.join(self.obj._document.get_basedir(), entry)
f = open(filepath)
if self._searchfile(f):
- self.obj._matchfilelist.append(file)
+ self.obj._matchfilelist.append(entry)
f.close()
gtk.gdk.threads_enter()
@@ -217,7 +217,7 @@ class _JobFind(gobject.GObject):
}
def __init__(self, document, start_page, n_pages, text, case_sensitive=False):
gobject.GObject.__init__(self)
- gtk.threads_init()
+ gtk.gdk.threads_init()
self._finished = False
self._document = document