forked from AuroraMiddleware/gtk
tests: Add a test for loading images from file
Strictly, this belongs in gdk-pixbuf, but GtkImage should have this working, too. https://bugzilla.gnome.org/show_bug.cgi?id=694148
This commit is contained in:
parent
3eef3290ad
commit
609723b3c1
@ -176,6 +176,9 @@ EXTRA_DIST += \
|
||||
iconview-empty.css \
|
||||
iconview-empty.ui \
|
||||
iconview-empty.ref.ui \
|
||||
image-load-from-file.css \
|
||||
image-load-from-file.ref.ui \
|
||||
image-load-from-file.ui \
|
||||
info-bar-message-types.css \
|
||||
info-bar-message-types.ref.ui \
|
||||
info-bar-message-types.ui \
|
||||
|
3
tests/reftests/image-load-from-file.css
Normal file
3
tests/reftests/image-load-from-file.css
Normal file
@ -0,0 +1,3 @@
|
||||
#reference {
|
||||
background: lime;
|
||||
}
|
17
tests/reftests/image-load-from-file.ref.ui
Normal file
17
tests/reftests/image-load-from-file.ref.ui
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<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="width_request">20</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="name">reference</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
15
tests/reftests/image-load-from-file.ui
Normal file
15
tests/reftests/image-load-from-file.ui
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<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="file">green-20x20.png</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user