Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
draw thumbnails in main loop
Browse files Browse the repository at this point in the history
  • Loading branch information
multiSnow committed Jun 16, 2019
1 parent 4731b33 commit 0405a23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mcomix/mcomix/thumbnail_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def _pixbuf_finished(self, params, taskid=-1):
if self._taskid != taskid:
return
iter, pixbuf, model = params
model.set(iter, self._status_column, True, self._pixbuf_column, pixbuf)
GLib.idle_add(
model.set,
iter, self._status_column, True, self._pixbuf_column, pixbuf)

class ThumbnailIconView(Gtk.IconView, ThumbnailViewBase):
def __init__(self, model, uid_column, pixbuf_column, status_column):
Expand Down

0 comments on commit 0405a23

Please sign in to comment.