notebook: Implement rtl flipping for CSS nodes

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 19 January 2016 20:40 UTC

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.

bb92428 notebook: Implement rtl flipping for CSS nodes
gtk/gtknotebook.c | 75 ++++++++++---------------
testsuite/css/nodes/Makefile.am | 38 +++++++------
testsuite/css/nodes/notebook.bottom.ltr.nodes | 18 ++++++
testsuite/css/nodes/notebook.bottom.ltr.ui | 56 ++++++++++++++++++
testsuite/css/nodes/notebook.bottom.nodes | 18 ------
testsuite/css/nodes/notebook.bottom.rtl.nodes | 18 ++++++
testsuite/css/nodes/notebook.bottom.rtl.ui | 56 ++++++++++++++++++
testsuite/css/nodes/notebook.bottom.ui | 56 ------------------
testsuite/css/nodes/notebook.left.ltr.nodes | 18 ++++++
testsuite/css/nodes/notebook.left.ltr.ui | 56 ++++++++++++++++++
testsuite/css/nodes/notebook.left.nodes | 18 ------
testsuite/css/nodes/notebook.left.rtl.nodes | 18 ++++++
testsuite/css/nodes/notebook.left.rtl.ui | 56 ++++++++++++++++++
testsuite/css/nodes/notebook.left.ui | 56 ------------------
testsuite/css/nodes/notebook.right.ltr.nodes | 18 ++++++
testsuite/css/nodes/notebook.right.ltr.ui | 56 ++++++++++++++++++
testsuite/css/nodes/notebook.right.nodes | 18 ------
testsuite/css/nodes/notebook.right.rtl.nodes | 18 ++++++
testsuite/css/nodes/notebook.right.rtl.ui | 56 ++++++++++++++++++
testsuite/css/nodes/notebook.right.ui | 56 ------------------
testsuite/css/nodes/notebook.top.ltr.nodes | 18 ++++++
testsuite/css/nodes/notebook.top.ltr.ui | 55 ++++++++++++++++++
testsuite/css/nodes/notebook.top.nodes | 18 ------
testsuite/css/nodes/notebook.top.rtl.nodes | 18 ++++++
testsuite/css/nodes/notebook.top.rtl.ui | 55 ++++++++++++++++++
testsuite/css/nodes/notebook.top.ui | 55 ------------------
26 files changed, 642 insertions(+), 356 deletions(-)

Upstream: git.gnome.org


  • Share