diff options
author | raveit65 <[email protected]> | 2017-04-14 12:32:41 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-04-14 16:01:23 +0200 |
commit | 8140e40379ce94f975c65a8bf2e11c636998c05c (patch) | |
tree | 96dc6de8c9c8988c6a3d9f3d245721ff88c388d9 /data/caja-home.desktop.in.in | |
parent | 1042cd8eeac2dc10114ab9e35f6e066c5e131ec0 (diff) | |
download | caja-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 'data/caja-home.desktop.in.in')
0 files changed, 0 insertions, 0 deletions