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:
Benjamin Otte 2013-02-19 14:15:32 +01:00
parent 3eef3290ad
commit 609723b3c1
4 changed files with 38 additions and 0 deletions

View File

@ -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 \

View File

@ -0,0 +1,3 @@
#reference {
background: lime;
}

View 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>

View 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>