summaryrefslogtreecommitdiff
path: root/eel/eel-editable-label.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-07 15:07:39 +0200
committerraveit65 <[email protected]>2017-04-15 19:01:37 +0200
commit7773a9a4b65c5219f57c344925ffd94d30367c0b (patch)
treea362ac49220c1cbb0f0e7e180727a8fc390f75cf /eel/eel-editable-label.c
parent78814d408a684ca88858254effdd8223a9621c2b (diff)
downloadcaja-7773a9a4b65c5219f57c344925ffd94d30367c0b.tar.bz2
caja-7773a9a4b65c5219f57c344925ffd94d30367c0b.tar.xz
Add size_request to IconContainer to work around unncecessary
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 'eel/eel-editable-label.c')
0 files changed, 0 insertions, 0 deletions