Add a CSS node test for entries

This commit is contained in:
Matthias Clasen 2015-12-28 02:00:58 -05:00
parent 669ced3984
commit 78d715af22
3 changed files with 91 additions and 0 deletions

View File

@ -25,6 +25,7 @@ test_css_nodes_SOURCES = \
test-css-nodes.c
test_data = \
entries.ui entries.nodes \
notebook.ui notebook.nodes \
$(NULL)

View File

@ -0,0 +1,16 @@
window visible=0 state=dir-ltr classes=background
decoration visible=1 state=dir-ltr
box visible=0 state=dir-ltr classes=horizontal
label visible=1 state=dir-ltr
label visible=1 state=dir-ltr
label visible=1 state=dir-ltr
entry visible=1 state=dir-ltr
progress visible=1 state=dir-ltr
entry visible=1 state=dir-ltr
entry visible=1 state=dir-ltr
image visible=1 state=dir-ltr classes=left
image visible=1 state=dir-ltr classes=right
spinbutton visible=1 state=dir-ltr classes=horizontal
entry visible=1 state=dir-ltr
button visible=1 state=dir-ltr classes=down
button visible=1 state=dir-ltr classes=up

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkAdjustment" id="adjustment1">
<property name="lower">0.5</property>
<property name="upper">99.5</property>
<property name="page-size">0</property>
<property name="value">45.5</property>
<property name="step-increment">0.5</property>
<property name="page-increment">5.0</property>
</object>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkBox" id="box1">
<child>
<object class="GtkLabel" id="label1">
<property name="label">_entry:</property>
<property name="visible">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">entry1</property>
</object>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="label">_password entry:</property>
<property name="visible">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">entry2</property>
</object>
</child>
<child>
<object class="GtkLabel" id="label3">
<property name="label">_spinbutton:</property>
<property name="visible">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">spinbutton1</property>
</object>
</child>
<child>
<object class="GtkEntry" id="entry1">
<property name="text" translatable="yes">text</property>
<property name="visible">True</property>
<property name="progress-fraction">0.3</property>
</object>
</child>
<child>
<object class="GtkEntry" id="entry2">
<property name="text" translatable="yes">password text</property>
<property name="visible">True</property>
<property name="visibility">False</property>
<property name="invisible_char">*</property>
<property name="invisible_char_set">True</property>
</object>
</child>
<child>
<object class="GtkEntry" id="entry3">
<property name="text" translatable="yes">icons</property>
<property name="visible">True</property>
<property name="primary-icon-stock">stock1</property>
<property name="secondary-icon-stock">stock2</property>
</object>
</child>
<child>
<object class="GtkSpinButton" id="spinbutton1">
<property name="adjustment">adjustment1</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
</object>
</interface>