diff options
author | Benjamin Otte <otte@redhat.com> | 2021-11-21 01:46:32 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2021-11-21 01:49:40 +0100 |
commit | c025bc5098ea9806b96da336f1d377b5bc3892be (patch) | |
tree | 5f15e5e83a4d9892e0421a59b4be76cba2b37467 /testsuite | |
parent | 170bc0a8de8fc344cb21b0be2f5230e370131304 (diff) | |
download | gtk+-c025bc5098ea9806b96da336f1d377b5bc3892be.tar.gz |
paned: Compute the right handle size
Testcase included
Fixes #4469
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/reftests/meson.build | 3 | ||||
-rw-r--r-- | testsuite/reftests/paned-handle-size.css | 15 | ||||
-rw-r--r-- | testsuite/reftests/paned-handle-size.ref.ui | 55 | ||||
-rw-r--r-- | testsuite/reftests/paned-handle-size.ui | 40 |
4 files changed, 113 insertions, 0 deletions
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build index c87eb278dd..5f36c6ddb4 100644 --- a/testsuite/reftests/meson.build +++ b/testsuite/reftests/meson.build @@ -427,6 +427,9 @@ testdata = [ 'opacity-initial.ui', 'overlay-no-main-widget.ref.ui', 'overlay-no-main-widget.ui', + 'paned-handle-size.css', + 'paned-handle-size.ref.ui', + 'paned-handle-size.ui', 'paned-undersized.css', 'paned-undersized.ref.ui', 'paned-undersized.ui', diff --git a/testsuite/reftests/paned-handle-size.css b/testsuite/reftests/paned-handle-size.css new file mode 100644 index 0000000000..502437c543 --- /dev/null +++ b/testsuite/reftests/paned-handle-size.css @@ -0,0 +1,15 @@ +paned separator, +picture { + all: unset; + background: firebrick; +} + +paned.vertical > separator { + min-width: 10px; + min-height: 20px; +} + +paned.horizontal > separator { + min-width: 20px; + min-height: 10px; +} diff --git a/testsuite/reftests/paned-handle-size.ref.ui b/testsuite/reftests/paned-handle-size.ref.ui new file mode 100644 index 0000000000..72a83a93c3 --- /dev/null +++ b/testsuite/reftests/paned-handle-size.ref.ui @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface domain="gtk40"> + <object class="GtkWindow"> + <property name="decorated">0</property> + <child> + <object class="GtkBox"> + <child> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel"> + <property name="label">top left</property> + </object> + </child> + <child> + <object class="GtkPicture"> + <property name="height-request">20</property> + </object> + </child> + <child> + <object class="GtkLabel"> + <property name="label">bottom left</property> + </object> + </child> + </object> + </child> + <child> + <object class="GtkPicture"> + <property name="width-request">20</property> + </object> + </child> + <child> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel"> + <property name="label">top right</property> + </object> + </child> + <child> + <object class="GtkPicture"> + <property name="height-request">20</property> + </object> + </child> + <child> + <object class="GtkLabel"> + <property name="label">bottom right</property> + </object> + </child> + </object> + </child> + </object> + </child> + </object> +</interface> diff --git a/testsuite/reftests/paned-handle-size.ui b/testsuite/reftests/paned-handle-size.ui new file mode 100644 index 0000000000..c050dd2fde --- /dev/null +++ b/testsuite/reftests/paned-handle-size.ui @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface domain="gtk40"> + <object class="GtkWindow"> + <property name="decorated">0</property> + <child> + <object class="GtkPaned"> + <child> + <object class="GtkPaned"> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel"> + <property name="label">top left</property> + </object> + </child> + <child> + <object class="GtkLabel"> + <property name="label">bottom left</property> + </object> + </child> + </object> + </child> + <child> + <object class="GtkPaned"> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel"> + <property name="label">top right</property> + </object> + </child> + <child> + <object class="GtkLabel"> + <property name="label">bottom right</property> + </object> + </child> + </object> + </child> + </object> + </child> + </object> +</interface> |