Tweak focus tests

These tests are a bit fragile because the initial focus
that is taken depends on what ends up in the center of
the window, horizontally or vertically, which depends
on things like fonts, or theme spacing.

This commit makes some tweaks to push things in the
widget-factory example around far enough to make the
tests work again.

We should figure out a way to make this more robust.
This commit is contained in:
Matthias Clasen 2020-10-22 19:59:21 -04:00
parent 3a08706e40
commit 7671c1074b
3 changed files with 8 additions and 8 deletions

View File

@ -847,7 +847,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<child>
<object class="GtkFontButton" id="fontbutton1">
<property name="receives-default">1</property>
<property name="level">family|style|size|features|variations</property>
<property name="level">family|size|features|variations</property>
</object>
</child>
<child>
@ -1013,7 +1013,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="adjustment">adjustment1</property>
<property name="restrict-to-fill-level">0</property>
<property name="fill-level">75</property>
<property name="digits">-1</property>
<property name="digits">1</property>
<property name="draw-value">1</property>
<property name="halign">end</property>
</object>
@ -1026,7 +1026,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="adjustment">adjustment1</property>
<property name="restrict-to-fill-level">0</property>
<property name="fill-level">75</property>
<property name="digits">-1</property>
<property name="digits">1</property>
<property name="draw-value">1</property>
<property name="halign">start</property>
</object>
@ -1081,7 +1081,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</style>
<child type="label">
<object class="GtkLabel" id="label17">
<property name="label" translatable="yes">&lt;b&gt;Groove&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Groove, Groove, Groove&lt;/b&gt;</property>
<property name="use-markup">1</property>
</object>
</child>

View File

@ -1014,7 +1014,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="adjustment">adjustment1</property>
<property name="restrict-to-fill-level">0</property>
<property name="fill-level">75</property>
<property name="digits">-1</property>
<property name="digits">1</property>
<property name="draw-value">1</property>
<property name="halign">end</property>
</object>
@ -1027,7 +1027,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="adjustment">adjustment1</property>
<property name="restrict-to-fill-level">0</property>
<property name="fill-level">75</property>
<property name="digits">-1</property>
<property name="digits">1</property>
<property name="draw-value">1</property>
<property name="halign">start</property>
</object>

View File

@ -1014,7 +1014,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="adjustment">adjustment1</property>
<property name="restrict-to-fill-level">0</property>
<property name="fill-level">75</property>
<property name="digits">-1</property>
<property name="digits">1</property>
<property name="draw-value">1</property>
<property name="halign">end</property>
</object>
@ -1027,7 +1027,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="adjustment">adjustment1</property>
<property name="restrict-to-fill-level">0</property>
<property name="fill-level">75</property>
<property name="digits">-1</property>
<property name="digits">1</property>
<property name="draw-value">1</property>
<property name="halign">start</property>
</object>