Delay cleanup in the pagination job to avoid a random crash
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Gonzalo Odiard
12 years ago
166 | 166 | self._bookheight += pageheight |
167 | 167 | |
168 | 168 | if self._count + 1 >= len(self._filelist): |
169 | self._temp_win.destroy() | |
170 | 169 | # TODO |
171 | 170 | #self._screen.set_font_options(self._old_fontoptions) |
172 | 171 | self.emit('paginated') |
172 | GObject.idle_add(self._cleanup) | |
173 | 173 | else: |
174 | 174 | self._count += 1 |
175 | 175 | self._temp_view.open(self._filelist[self._count]) |
176 | ||
177 | def _cleanup(self): | |
178 | self._temp_win.destroy() | |
176 | 179 | |
177 | 180 | def get_file_for_pageno(self, pageno): |
178 | 181 | ''' |