summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorIain Lane <iain@orangesquash.org.uk>2016-10-07 12:24:18 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-10-07 19:43:08 +0200
commitd82b5bb6e06b6761bd5d5f3dc9a0762ce55517b4 (patch)
tree2f27b76d6510214c8bb2d4f40c01f3e6631b70fa /data
parent47d77924109e2492b883f46c2e280ab1021ebe56 (diff)
downloadnautilus-d82b5bb6e06b6761bd5d5f3dc9a0762ce55517b4.tar.gz
nautilus-canvas: Don't lay down desktop icons if we haven't been allocated size yet
Sometimes we were trying to lay down icons before size_allocate had been run. When this has happened, gtk_widget_get_allocation returns 1×1 as our size. This messes up the algorithm and causes icons to be overlapping on the canvas. This case happens when using Nautilus as the desktop in early-startup (e.g. from its XDG autostart file). It can happen that we have read the desktop files before the allocation has happened. We fix this by noticing if we're called before size_allocate and then deferring icon layout until later on, after size_allocate has happened. This behaviour was introduced in commit e0081be7cd65de6422529d831f7882009ce00a9d, which sorts and freezes the desktop in early-startup. https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1611955 https://bugzilla.gnome.org/show_bug.cgi?id=765601
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions