[gtk+/client-side-windows] Set the right parent root window for the offscreen windows
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows] Set the right parent root window for the offscreen windows
- Date: Mon, 8 Jun 2009 14:13:36 -0400 (EDT)
commit 55ee12c296a23f09fa274c6adb5f4214f9d2aade
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jun 4 08:05:51 2009 +0200
Set the right parent root window for the offscreen windows
---
tests/gtkoffscreenbox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/gtkoffscreenbox.c b/tests/gtkoffscreenbox.c
index 5a0749b..d5a2d20 100644
--- a/tests/gtkoffscreenbox.c
+++ b/tests/gtkoffscreenbox.c
@@ -118,7 +118,7 @@ gtk_offscreen_box_realize (GtkWidget *widget)
attributes.height = offscreen_box->child1->allocation.height;
start_y += offscreen_box->child1->allocation.height;
}
- offscreen_box->offscreen_window1 = gdk_window_new (NULL,
+ offscreen_box->offscreen_window1 = gdk_window_new (gtk_widget_get_root_window (widget),
&attributes, attributes_mask);
gdk_window_set_user_data (offscreen_box->offscreen_window1, widget);
if (offscreen_box->child1)
@@ -132,7 +132,7 @@ gtk_offscreen_box_realize (GtkWidget *widget)
attributes.width = offscreen_box->child2->allocation.width;
attributes.height = offscreen_box->child2->allocation.height;
}
- offscreen_box->offscreen_window2 = gdk_window_new (NULL,
+ offscreen_box->offscreen_window2 = gdk_window_new (gtk_widget_get_root_window (widget),
&attributes, attributes_mask);
gdk_window_set_user_data (offscreen_box->offscreen_window2, widget);
if (offscreen_box->child2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]