notebook: Implement rtl flipping for CSS nodes

Use gtk_box_gadget_reverse_children and gtk_css_node_reverse_children
to flip the children of the header_gadget and the tabs_gadget when
appropriate.

Add new CSS node tests to verify that the node order is updated
as expected in all cases.
This commit is contained in:
Matthias Clasen
2016-01-19 21:38:30 -05:00
parent 0304817d81
commit bb92428112
18 changed files with 347 additions and 61 deletions

View File

@ -0,0 +1,18 @@
[window.background:dir(rtl)]
decoration:dir(ltr)
notebook.frame:dir(rtl)
stack:dir(ltr)
button#page1.text-button:dir(rtl)
label:dir(ltr)
button#page2.text-button:dir(rtl)
label:dir(ltr)
header.bottom:dir(ltr)
button#end.text-button:dir(rtl)
label:dir(ltr)
tabs:dir(ltr)
tab:dir(ltr)
label#tab2:dir(ltr)
tab:active:dir(ltr)
label#tab1:dir(ltr)
button#start.text-button:dir(rtl)
label:dir(ltr)