summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-14 12:32:41 +0200
committerraveit65 <[email protected]>2017-04-14 16:01:23 +0200
commit8140e40379ce94f975c65a8bf2e11c636998c05c (patch)
tree96dc6de8c9c8988c6a3d9f3d245721ff88c388d9 /COPYING
parent1042cd8eeac2dc10114ab9e35f6e066c5e131ec0 (diff)
downloadcaja-8140e40379ce94f975c65a8bf2e11c636998c05c.tar.bz2
caja-8140e40379ce94f975c65a8bf2e11c636998c05c.tar.xz
Add size_request to IconContainer to work around uncecessary relayouting
The GtkScrolledWindow uses the widget prefered size as a guess as to whether scrollbars are needed or not in the automatic scrollbars case. If we don't report anything for them we typically get it wrong and cause two size allocate calls on the child each time, with different sizes. This (the two sizes speicifically) will cause unnecessary relayouts of the window. So, we just report the current size of the layed out icons as the prefered size. This is somewhat wrong as its depending on previous size_allocation calls rather than the "ideal" size of the widget, but since the ideal size is ignored anyway and just used for this it works well. taken from: https://git.gnome.org/browse/nautilus/commit/?id=fa6e447
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions