reftests: Add test for GtkImage use-fallback property

Fallback seems to be working in the GtkIconTheme test suite, but fails
in GtkImage itself.

This is a test for a bug in the Bluetooth settings. An icon named
"phone-apple-iphone" should fallback to "phone" if the
gnome-icon-theme-extras package isn't installed.
This commit is contained in:
Bastien Nocera 2015-10-08 13:36:52 +02:00
parent 1e51398e9a
commit 8bd98c08aa
3 changed files with 36 additions and 0 deletions

View File

@ -265,6 +265,8 @@ testdata = \
gtk-icontheme-sizing.css \
gtk-icontheme-sizing.ref.ui \
gtk-icontheme-sizing.ui \
gtk-image.ui \
gtk-image.ref.ui \
icon-shadow-no-transform.css \
icon-shadow-no-transform.ref.ui \
icon-shadow-no-transform.ui \

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.19.0 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">edit-delete</property>
<property name="use_fallback">True</property>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.19.0 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">edit-delete-lolwtfbbq</property>
<property name="use_fallback">True</property>
</object>
</child>
</object>
</interface>