[gtk+] Fix gtk_widget_queue_draw



commit a64bd5d1f0d8b2502a487b6ba07188fbb37ccdf3
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 20 08:48:07 2010 -0400

    Fix gtk_widget_queue_draw
    
    The draw-border removal did not get it right for !no-window widgets.
    Bug 627445.

 gtk/gtkwidget.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 98f1723..e0f475c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3711,9 +3711,12 @@ gtk_widget_queue_draw (GtkWidget *widget)
 
   gtk_widget_get_allocation (widget, &rect);
 
-  gtk_widget_queue_draw_area (widget,
-			      rect.x, rect.y,
-			      rect.width, rect.height);
+  if (GTK_WIDGET_NO_WINDOW (widget))
+    gtk_widget_queue_draw_area (widget,
+                                rect.x, rect.y, rect.width, rect.height);
+  else
+    gtk_widget_queue_draw_area (widget,
+                                0, 0, rect.width, rect.height);
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]