[Xfce4-commits] <exo:master> Queue an icon view resize if the requesitions don't match.
Nick Schermer
noreply at xfce.org
Tue Jan 24 18:44:01 CET 2012
Updating branch refs/heads/master
to 7385e5018fe5eb0bdcd05eacdcf79dbd74406d9a (commit)
from d7a43e5e2a166ba4b1df5010d245fc03bce40b7a (commit)
commit 7385e5018fe5eb0bdcd05eacdcf79dbd74406d9a
Author: Nick Schermer <nick at xfce.org>
Date: Tue Jan 24 18:03:17 2012 +0100
Queue an icon view resize if the requesitions don't match.
If a new required height is calculated, also queue a resize
of the widget so the size can be allocated.
exo/exo-icon-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/exo/exo-icon-view.c b/exo/exo-icon-view.c
index 18bedad..8de747d 100644
--- a/exo/exo-icon-view.c
+++ b/exo/exo-icon-view.c
@@ -3319,6 +3319,10 @@ exo_icon_view_layout (ExoIconView *icon_view)
exo_icon_view_set_adjustment_upper (priv->hadjustment, priv->width);
exo_icon_view_set_adjustment_upper (priv->vadjustment, priv->height);
+ if (priv->width != GTK_WIDGET (icon_view)->requisition.width
+ || priv->height != GTK_WIDGET (icon_view)->requisition.height)
+ gtk_widget_queue_resize_no_redraw (GTK_WIDGET (icon_view));
+
if (GTK_WIDGET_REALIZED (icon_view))
{
gdk_window_resize (priv->bin_window,
More information about the Xfce4-commits
mailing list