[gtk+/widget-expand-3] Queue an expand recompute if scrollbar visibility changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/widget-expand-3] Queue an expand recompute if scrollbar visibility changes
- Date: Tue, 12 Oct 2010 02:36:16 +0000 (UTC)
commit 11140f8ba90c1423fa4a4b0cfa8261c0fae49efd
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 11 19:46:48 2010 -0400
Queue an expand recompute if scrollbar visibility changes
gtk/gtkscrolledwindow.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 2e5c835..4861559 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -1679,7 +1679,10 @@ gtk_scrolled_window_adjustment_changed (GtkAdjustment *adjustment,
priv->hscrollbar_visible = (adjustment->upper - adjustment->lower >
adjustment->page_size);
if (priv->hscrollbar_visible != visible)
- gtk_widget_queue_resize (GTK_WIDGET (scrolled_window));
+ {
+ gtk_widget_queue_resize (GTK_WIDGET (scrolled_window));
+ gtk_widget_queue_compute_expand (GTK_WIDGET (scrolled_window));
+ }
}
}
else if (priv->vscrollbar &&
@@ -1693,7 +1696,10 @@ gtk_scrolled_window_adjustment_changed (GtkAdjustment *adjustment,
priv->vscrollbar_visible = (adjustment->upper - adjustment->lower >
adjustment->page_size);
if (priv->vscrollbar_visible != visible)
- gtk_widget_queue_resize (GTK_WIDGET (scrolled_window));
+ {
+ gtk_widget_queue_resize (GTK_WIDGET (scrolled_window));
+ gtk_widget_queue_compute_expand (GTK_WIDGET (scrolled_window));
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]