[gtk+/rendering-cleanup: 79/92] perf: Use a temp window instead of a normal one



commit 08006b17e3d6bd231ba96306397317e846ccea35
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 |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/perf/gtkwidgetprofiler.c b/perf/gtkwidgetprofiler.c
index c5b2cdd..2911aa1 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),
                            &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]