forked from AuroraMiddleware/gtk
reftests: Modify test to ensure identical output
GtkArrow and the align properties use different methods (float vs int) to center the arrow. If the size of the arrow is odd, this will cause a rendering that differs by half a pixel. So we request an even size for both the arrow and the container and everything works out.
This commit is contained in:
parent
3c2105c9cd
commit
42450cacd9
@ -2,6 +2,7 @@
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="width_request">160</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
@ -133,6 +134,7 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkArrow" id="arrow3">
|
||||
<property name="width_request">16</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="hexpand">True</property>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="width_request">160</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
@ -145,6 +146,7 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkArrow" id="arrow3">
|
||||
<property name="width_request">16</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
|
Loading…
Reference in New Issue
Block a user