diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-09-21 11:44:01 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-09-21 11:44:01 (GMT) |
commit | f9389b009404adaf037322a705ca503836b0603b (patch) | |
tree | fb67200dc712c10075b1f9f7e27568b780bafa59 /epubview | |
parent | 28f8fe97048ebda182f747d956658f92b648857e (diff) |
Fix search in epub
Diffstat (limited to 'epubview')
-rw-r--r-- | epubview/jobs.py | 4 |
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 |