reftests: Add a reftest for the cell renderer fix

The reftest is a bit flaky because it compares cell renderers with
GtkImage and therefor an icon view with a GtkBox, but it's the best I
can come up with.

https://bugzilla.gnome.org/show_bug.cgi?id=702423
This commit is contained in:
Benjamin Otte
2013-09-05 18:47:29 +02:00
parent fa3b803de9
commit a13d5aefc3
4 changed files with 87 additions and 0 deletions

View File

@ -117,6 +117,9 @@ testdata = \
box-shadow-spec-inset.ui \
button-wrapping.ui \
button-wrapping.ref.ui \
cellrenderer-pixbuf-stock-rtl.css \
cellrenderer-pixbuf-stock-rtl.ui \
cellrenderer-pixbuf-stock-rtl.ref.ui \
css-match-class.css \
css-match-class.ref.ui \
css-match-class.ui \

View File

@ -0,0 +1,3 @@
@import "reset-to-defaults.css";

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.15.2 on Thu Sep 5 15:55:06 2013 -->
<interface>
<!-- interface-requires gtk+ 3.10 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon-size">1</property>
<property name="stock">gtk-jump-to</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon-size">1</property>
<property name="stock">gtk-media-play</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkListStore" id="liststore1">
<columns>
<!-- column-name Name -->
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0">gtk-jump-to</col>
</row>
<row>
<col id="0">gtk-media-play</col>
</row>
</data>
</object>
<object class="GtkWindow" id="window">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkIconView" id="treeview1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="columns">1</property>
<property name="item-padding">0</property>
<property name="margin">0</property>
<property name="model">liststore1</property>
<child>
<object class="GtkCellRendererPixbuf" id="cellrendererpixbuf1"/>
<attributes>
<attribute name="stock-id">0</attribute>
</attributes>
</child>
</object>
</child>
</object>
</interface>