[gtk+] widget: Queue a resize when setting widget to insensitive.
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Queue a resize when setting widget to insensitive.
- Date: Thu, 17 Mar 2011 10:59:44 +0000 (UTC)
commit 665da2c499834c37bc36fe7bbab116f4da3998e5
Author: Benjamin Otte <otte redhat com>
Date: Thu Mar 17 11:55:14 2011 +0100
widget: Queue a resize when setting widget to insensitive.
See 015f22777621008dac136940680dff4f250ca42b for details on why this is
necessary.
gtk/gtkwidget.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index b74f9ee..0b5f926 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7600,8 +7600,7 @@ gtk_widget_set_sensitive (GtkWidget *widget,
gtk_widget_propagate_state (widget, &data);
- if (gtk_widget_is_drawable (widget))
- gtk_widget_queue_draw (widget);
+ gtk_widget_queue_resize (widget);
g_object_notify (G_OBJECT (widget), "sensitive");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]