Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/epubview
diff options
context:
space:
mode:
authorSayamindu Dasgupta <sayamindu@gmail.com>2009-09-21 11:44:01 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-09-21 11:44:01 (GMT)
commitf9389b009404adaf037322a705ca503836b0603b (patch)
treefb67200dc712c10075b1f9f7e27568b780bafa59 /epubview
parent28f8fe97048ebda182f747d956658f92b648857e (diff)
Fix search in epub
Diffstat (limited to 'epubview')
-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