[gtk+/client-side-decorations: 24/50] Invalidate window on size_allocate so we redraw correctly
- From: Cody Russell <bratsche src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-decorations: 24/50] Invalidate window on size_allocate so we redraw correctly
- Date: Wed, 8 Jul 2009 15:30:10 +0000 (UTC)
commit ab8dd6aa71575dad6d2937f975f8900a59fbedd4
Author: Kristian Høgsberg <krh redhat com>
Date: Fri May 22 11:08:37 2009 -0400
Invalidate window on size_allocate so we redraw correctly
gtk/gtkwindow.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2c1bb43..7561507 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5131,6 +5131,7 @@ gtk_window_size_allocate (GtkWidget *widget,
GtkRequisition deco_requisition;
GtkAllocation deco_allocation;
gint frame_left = 0, frame_right = 0, frame_top = 0, frame_bottom = 0;
+ GdkRectangle rect;
window = GTK_WINDOW (widget);
container = GTK_CONTAINER (widget);
@@ -5187,6 +5188,15 @@ gtk_window_size_allocate (GtkWidget *widget,
gtk_widget_size_allocate (window->bin.child, &child_allocation);
}
+
+ if (widget->window != NULL)
+ {
+ rect.x = 0;
+ rect.y = 0;
+ rect.width = allocation->width;
+ rect.height = allocation->height;
+ gdk_window_invalidate_rect(widget->window, &rect, NULL);
+ }
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]