[gtk+] reftests: Use an offscreen window to avoid artifacts
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Use an offscreen window to avoid artifacts
- Date: Tue, 5 Jul 2011 13:30:04 +0000 (UTC)
commit 769c795d5732bf4228cd7fed7ab7ab3260f11d5e
Author: Benjamin Otte <otte redhat com>
Date: Tue Jul 5 15:28:18 2011 +0200
reftests: Use an offscreen window to avoid artifacts
When tests are larger than the screen size and no compositing is
enabled, the window will be clipped to the screen size and all areas
outside of the screen have undefined contents.
To avoid this, we can use an offscreen window.
tests/reftests/label-sizing.ref.ui | 2 +-
tests/reftests/label-sizing.ui | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/reftests/label-sizing.ref.ui b/tests/reftests/label-sizing.ref.ui
index 7d42ad2..2de71a4 100644
--- a/tests/reftests/label-sizing.ref.ui
+++ b/tests/reftests/label-sizing.ref.ui
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
- <object class="GtkWindow" id="window1">
+ <object class="GtkOffscreenWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
diff --git a/tests/reftests/label-sizing.ui b/tests/reftests/label-sizing.ui
index 3682291..9031bfe 100644
--- a/tests/reftests/label-sizing.ui
+++ b/tests/reftests/label-sizing.ui
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
- <object class="GtkWindow" id="window1">
+ <object class="GtkOffscreenWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]