forked from AuroraMiddleware/gtk
Some more CSS node tests for notebooks
This commit is contained in:
parent
38d0d0a687
commit
c30d542a17
@ -40,6 +40,8 @@ test_data = \
|
||||
expander.rtl.ui expander.rtl.nodes \
|
||||
levelbar.ltr.ui levelbar.ltr.nodes \
|
||||
levelbar.rtl.ui levelbar.rtl.nodes \
|
||||
notebook-arrows.ui notebook-arrows.nodes \
|
||||
notebook-arrows2.ui notebook-arrows2.nodes \
|
||||
notebook.top.ltr.ui notebook.top.ltr.nodes \
|
||||
notebook.top.rtl.ui notebook.top.rtl.nodes \
|
||||
notebook.left.ltr.ui notebook.left.ltr.nodes \
|
||||
|
16
testsuite/css/nodes/notebook-arrows.nodes
Normal file
16
testsuite/css/nodes/notebook-arrows.nodes
Normal file
@ -0,0 +1,16 @@
|
||||
[window.background:dir(ltr)]
|
||||
decoration:dir(ltr)
|
||||
notebook.frame:dir(ltr)
|
||||
header.top:dir(ltr)
|
||||
tabs:dir(ltr)
|
||||
arrow.down:disabled:dir(ltr)
|
||||
tab:active:dir(ltr)
|
||||
label#tab1:dir(ltr)
|
||||
tab:dir(ltr)
|
||||
label#tab2:dir(ltr)
|
||||
arrow.up:dir(ltr)
|
||||
stack:dir(ltr)
|
||||
button#page1.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
button#page2.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
42
testsuite/css/nodes/notebook-arrows.ui
Normal file
42
testsuite/css/nodes/notebook-arrows.ui
Normal file
@ -0,0 +1,42 @@
|
||||
<?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="GtkNotebook">
|
||||
<property name="visible">True</property>
|
||||
<property name="scrollable">True</property>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page1</property>
|
||||
<property name="label" translatable="yes">Yes</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="name">tab1</property>
|
||||
<property name="label" translatable="yes">Tab 1</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page2</property>
|
||||
<property name="label" translatable="yes">No</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab2">
|
||||
<property name="name">tab2</property>
|
||||
<property name="label" translatable="yes">Tab 2</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
16
testsuite/css/nodes/notebook-arrows2.nodes
Normal file
16
testsuite/css/nodes/notebook-arrows2.nodes
Normal file
@ -0,0 +1,16 @@
|
||||
[window.background:dir(ltr)]
|
||||
decoration:dir(ltr)
|
||||
notebook.frame:dir(ltr)
|
||||
header.top:dir(ltr)
|
||||
tabs:dir(ltr)
|
||||
arrow.down:disabled:dir(ltr)
|
||||
tab:active:dir(ltr)
|
||||
label#tab1:dir(ltr)
|
||||
tab:dir(ltr)
|
||||
label#tab2:dir(ltr)
|
||||
arrow.up:dir(ltr)
|
||||
stack:dir(ltr)
|
||||
button#page1.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
||||
button#page2.text-button:dir(ltr)
|
||||
label:dir(ltr)
|
43
testsuite/css/nodes/notebook-arrows2.ui
Normal file
43
testsuite/css/nodes/notebook-arrows2.ui
Normal file
@ -0,0 +1,43 @@
|
||||
<?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="GtkNotebook">
|
||||
<property name="visible">True</property>
|
||||
<property name="scrollable">True</property>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page1</property>
|
||||
<property name="label" translatable="yes">Yes</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="name">tab1</property>
|
||||
<property name="label" translatable="yes">Tab 1</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="name">page2</property>
|
||||
<property name="label" translatable="yes">No</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab2">
|
||||
<property name="name">tab2</property>
|
||||
<property name="label" translatable="yes">Tab 2</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<property name="page">-1</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user