[gtk+/rendering-cleanup: 79/142] perf: Use a temp window instead of a normal one
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 79/142] perf: Use a temp window instead of a normal one
- Date: Thu, 9 Sep 2010 16:10:56 +0000 (UTC)
commit 117c2305ad4a4520b5fbf211d304023eaa3d8475
Author: Benjamin Otte <otte redhat com>
Date: Fri Aug 27 12:30:54 2010 +0200
perf: Use a temp window instead of a normal one
This way, we don't need hacks to not set the background.
perf/gtkwidgetprofiler.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/perf/gtkwidgetprofiler.c b/perf/gtkwidgetprofiler.c
index c5b2cdd..f8ab9f9 100644
--- a/perf/gtkwidgetprofiler.c
+++ b/perf/gtkwidgetprofiler.c
@@ -408,13 +408,12 @@ profile_expose (GtkWidgetProfiler *profiler)
attr.width = allocation.width;
attr.height = allocation.width;
attr.wclass = GDK_INPUT_OUTPUT;
- attr.window_type = GDK_WINDOW_CHILD;
+ attr.window_type = GDK_WINDOW_TEMP;
attr_mask = GDK_WA_X | GDK_WA_Y;
- window = gdk_window_new (gtk_widget_get_window (priv->toplevel),
+ window = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (priv->toplevel)),
&attr, attr_mask);
- gdk_window_set_back_pixmap (window, NULL, TRUE); /* avoid flicker */
gdk_window_show (window);
gdk_window_hide (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]