aboutsummaryrefslogtreecommitdiff
path: root/hildon/hildon-pannable-area.c
diff options
context:
space:
mode:
authorAlejandro G. Castro <alex@igalia.com>2009-08-11 14:53:40 +0200
committerAlejandro G. Castro <alex@igalia.com>2009-08-11 14:53:40 +0200
commit69f848cefd5e192eea88458551a7c0c8ec0b4654 (patch)
tree747518024ad232eea0f5fdeebdc313c89684acd6 /hildon/hildon-pannable-area.c
parent777a6bf13118bfbb3bacdeee1a80d48387dd6f12 (diff)
Added a new check of scrollbars layout in the allocation
* hildon/hildon-pannable-area.c (hildon_pannable_area_size_allocate): Checked the scrollbars before the first try when defining the layout, avoids two allocations in some situations. Fixes: NB#131794 (pannable area produces unnecessary allocations causing performance problems)
Diffstat (limited to 'hildon/hildon-pannable-area.c')
-rw-r--r--hildon/hildon-pannable-area.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hildon/hildon-pannable-area.c b/hildon/hildon-pannable-area.c
index 33033dc..abf5223 100644
--- a/hildon/hildon-pannable-area.c
+++ b/hildon/hildon-pannable-area.c
@@ -1223,6 +1223,8 @@ hildon_pannable_area_size_allocate (GtkWidget * widget,
if (child && GTK_WIDGET_VISIBLE (child)) {
+ hildon_pannable_area_check_scrollbars (HILDON_PANNABLE_AREA (widget));
+
hildon_pannable_area_child_allocate_calculate (widget,
allocation,
&child_allocation);