diff options
author | Nelson Benitez Leon <[email protected]> | 2017-05-28 22:35:05 +0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-15 14:09:42 +0200 |
commit | 744a1c5e8259773b35600944c28189b98879f937 (patch) | |
tree | bab176ebe90367d9060b2cadda7f0ed56e50fca4 /data/icons/48x48/actions | |
parent | 43895b016112550614db76212d921097d35b98e7 (diff) | |
download | atril-744a1c5e8259773b35600944c28189b98879f937.tar.bz2 atril-744a1c5e8259773b35600944c28189b98879f937.tar.xz |
sidebar-thumbnails: fix clunky scrolling
Caused by GtkIconView doing an invalidate and relayout of *all*
items in the view anytime we update model data in any indiviual
item (which happens with all the items that are getting in and out
of the scrolling area while we scroll). This caused GtkIconView to
machine-gunned us with "size-allocate" signals, a signal we were
using to update thumbnails when the sidebar is resized.
Fixed by connecting to the GtkTreeModel "row-changed" signal before
GtkIconView does it, and stop emission from there.
As we don't depend now on "size-allocate" signals to show thumbnails
while we scroll, just queue a draw on the icon view when a
thumbnail finish rendering.
Thanks Jose Aliste for first spotting the problem.
https://bugzilla.gnome.org/show_bug.cgi?id=691448
origin commit:
https://git.gnome.org/browse/evince/commit/?id=6480c70
Fixes https://github.com/mate-desktop/atril/issues/255
Diffstat (limited to 'data/icons/48x48/actions')
0 files changed, 0 insertions, 0 deletions