diff --git a/tests/testextendedlayout2.c b/tests/testextendedlayout2.c index 02f93e5331..73875ea1f2 100644 --- a/tests/testextendedlayout2.c +++ b/tests/testextendedlayout2.c @@ -1,5 +1,26 @@ -#include +/* testextendedlayout2.c + * Copyright (C) 2010 Openismus GmbH + * + * Author: + * Tristan Van Berkom + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#include typedef struct { const gchar *name; @@ -149,7 +170,8 @@ TestInterface interfaces[] = { " " " " " True" - " This label can shrink." + " This static label\n" + "can shrink." " center" " " " " @@ -213,7 +235,7 @@ TestInterface interfaces[] = { " " " " " True" - " Lets try to set some text start to wrap up in this hbox and see if the height-for-width is gonna work !" + " Lets try setting up some long text to wrap up in this hbox and see if the height-for-width is gonna work !" " True" " 30" " " @@ -232,7 +254,7 @@ TestInterface interfaces[] = { " " " " " " - " A button that expands in the container" + " A button that expands in the vbox" " True" " True" " True" @@ -251,7 +273,9 @@ TestInterface interfaces[] = { " " " " " True" - " This label can shrink." + " This label is\n" + "set to shrink inside\n" + "the paned window." " center" " " " " @@ -270,6 +294,129 @@ TestInterface interfaces[] = { NULL }, + { + "Vertical Labels", + "Demonstrates how a horizontal box will consider width-for-height when allocating children " + "even if the toplevel window is requested as height-for-width.", + "" + " " + " " + " " + " 400" + " 300" + " " + " " + " True" + " True" + " " + " " + " True" + " " + " " + " True" + " Some long width-for-height text that wraps" + " center" + " True" + " 10" + " 90" + " " + " " + " " + " " + " " + " " + " False" + " 0" + " " + " " + " " + " " + " True" + " 0" + " out" + " " + " " + " True" + " Neither of the panes are\n" + "set to shrink." + " center" + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " 1" + " " + " " + " " + " " + " False" + " False" + " " + " " + " " + " " + " True" + " " + " " + " True" + " 0" + " out" + " " + " " + " True" + " The interface is allocated as height\n" + "for width, but the horizontal boxes\n" + "allocate in width for height mode." + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " 0" + " " + " " + " " + " " + " True" + " Some long width-for-height text that wraps" + " center" + " True" + " 10" + " 270" + " " + " " + " " + " " + " " + " " + " False" + " 1" + " " + " " + " " + " " + " False" + " False" + " " + " " + " " + " " + " " + "", + NULL + }, + };