summaryrefslogtreecommitdiff
path: root/testsuite/reftests/label-text-shadow-clipping.ui
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-07-31 16:10:17 +0200
committerBenjamin Otte <otte@redhat.com>2014-07-31 17:50:24 +0200
commita3d1db608b1978a00862bdf4a785839fcf72dae4 (patch)
tree84a1883b1b93154d295b89459d162741b5a93b83 /testsuite/reftests/label-text-shadow-clipping.ui
parenta235dd6a6cd36be27b12078340e2334037fb300b (diff)
downloadgtk+-a3d1db608b1978a00862bdf4a785839fcf72dae4.tar.gz
label: Don't clip text shadows
The previous code for computing the clip rectangle forgot to respect the text-shadow CSS property. This is usually not very visible because text shadows usually don't extend the ink rectangle by very much. See attached testcase for an example.
Diffstat (limited to 'testsuite/reftests/label-text-shadow-clipping.ui')
-rw-r--r--testsuite/reftests/label-text-shadow-clipping.ui32
1 files changed, 32 insertions, 0 deletions
diff --git a/testsuite/reftests/label-text-shadow-clipping.ui b/testsuite/reftests/label-text-shadow-clipping.ui
new file mode 100644
index 0000000000..018caeb3fa
--- /dev/null
+++ b/testsuite/reftests/label-text-shadow-clipping.ui
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+ <requires lib="gtk+" version="3.12"/>
+ <object class="GtkWindow" id="window1">
+ <property name="width_request">500</property>
+ <property name="height_request">100</property>
+ <property name="can_focus">False</property>
+ <property name="type">popup</property>
+ <child>
+ <object class="GtkBox" id="box2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Hello World</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>