mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Add a CSS node test for entries
This commit is contained in:
parent
669ced3984
commit
78d715af22
@ -25,6 +25,7 @@ test_css_nodes_SOURCES = \
|
||||
test-css-nodes.c
|
||||
|
||||
test_data = \
|
||||
entries.ui entries.nodes \
|
||||
notebook.ui notebook.nodes \
|
||||
$(NULL)
|
||||
|
||||
|
16
testsuite/css/nodes/entries.nodes
Normal file
16
testsuite/css/nodes/entries.nodes
Normal 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
|
74
testsuite/css/nodes/entries.ui
Normal file
74
testsuite/css/nodes/entries.ui
Normal 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>
|
Loading…
Reference in New Issue
Block a user