[gtk+] gtk: Queue a resize after state changes
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk: Queue a resize after state changes
- Date: Fri, 11 Mar 2011 18:51:50 +0000 (UTC)
commit 015f22777621008dac136940680dff4f250ca42b
Author: Benjamin Otte <otte redhat com>
Date: Fri Mar 11 19:42:26 2011 +0100
gtk: Queue a resize after state changes
Lots of style properties - border-width in this case - can change the
size of widgets, so we need to queue a resize instead of just redrawing.
gtk/gtkwidget.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 828f857..ce56072 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6997,8 +6997,7 @@ _gtk_widget_update_state_flags (GtkWidget *widget,
gtk_widget_propagate_state (widget, &data);
- if (gtk_widget_is_drawable (widget))
- gtk_widget_queue_draw (widget);
+ gtk_widget_queue_resize (widget);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]