Codebase list sugar-read-activity / c94773d
Delay cleanup in the pagination job to avoid a random crash Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Gonzalo Odiard 12 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
166166 self._bookheight += pageheight
167167
168168 if self._count + 1 >= len(self._filelist):
169 self._temp_win.destroy()
170169 # TODO
171170 #self._screen.set_font_options(self._old_fontoptions)
172171 self.emit('paginated')
172 GObject.idle_add(self._cleanup)
173173 else:
174174 self._count += 1
175175 self._temp_view.open(self._filelist[self._count])
176
177 def _cleanup(self):
178 self._temp_win.destroy()
176179
177180 def get_file_for_pageno(self, pageno):
178181 '''