From d73c11b549b5d33841962c1b518921234071366a Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Wed, 18 Aug 2010 19:43:34 -0400 Subject: [PATCH] Added test case to testheightforwidth.c to show GtkComboBox/GtkMenu wrapping in action --- tests/testheightforwidth.c | 255 +++++++++++++++++++++++++++++++++++++ 1 file changed, 255 insertions(+) diff --git a/tests/testheightforwidth.c b/tests/testheightforwidth.c index f784864b6b..5bac79fcfd 100644 --- a/tests/testheightforwidth.c +++ b/tests/testheightforwidth.c @@ -658,6 +658,261 @@ TestInterface interfaces[] = { "", NULL }, + + { + "Combo Boxes and Menus", + "This test shows wrapping and ellipsizing text in combo boxes (and consequently in menu items).", + "" + "" + " " + " " + " " + " 8" + " 600" + " " + " " + " True" + " True" + " " + " " + " True" + " 5" + " " + " " + " True" + " 5" + " " + " " + " True" + " this combo box" + " " + " " + " " + " " + " " + " " + " True" + " True" + " 0" + " " + " " + " " + " " + " True" + " contains some wrapping locations" + " end" + " 10" + " " + " " + " " + " " + " " + " " + " True" + " True" + " 1" + " " + " " + " " + " " + " True" + " liststore1" + " 0" + " " + " " + " " + " 1" + " " + " " + " " + " " + " purple" + " 600" + " word" + " 100" + " " + " " + " 0" + " " + " " + " " + " " + " True" + " True" + " 2" + " " + " " + " " + " " + " False" + " True" + " 0" + " " + " " + " " + " " + " True" + " 0" + " " + " " + " True" + " This test shows combo boxes\n" + "requesting and allocating space\n" + "for its backing content using\n" + "height-for-width geometry\n" + "management.\n" + "\n" + "Note this test also demonstrates\n" + "height-for-width menu items." + " center" + " " + " " + " " + " " + " " + " " + " " + " " + " True" + " True" + " 1" + " " + " " + " " + " " + " True" + " 5" + " " + " " + " True" + " this combo box" + " " + " " + " " + " " + " " + " " + " True" + " True" + " 0" + " " + " " + " " + " " + " True" + " contains some ellipsizing locations" + " end" + " 10" + " " + " " + " " + " " + " " + " " + " True" + " True" + " 1" + " " + " " + " " + " " + " True" + " liststore1" + " 0" + " " + " " + " " + " 1" + " " + " " + " " + " " + " end" + " orange" + " 600" + " 10" + " " + " " + " 0" + " " + " " + " " + " " + " True" + " True" + " 2" + " " + " " + " " + " " + " False" + " True" + " 2" + " " + " " + " " + " " + " True" + " False" + " " + " " + " " + " " + " True" + " Some static\n" + "text here\n" + "that shrinks." + " center" + " " + " " + " " + " " + " " + " False" + " True" + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " Montreal, Quebec Canada" + " gtk-yes" + " " + " " + " Sao Paulo, SP Brazil" + " gtk-no" + " " + " " + " Buenos Aires, Argentina" + " gtk-stop" + " " + " " + " Los Angelos, California USA" + " gtk-media-record" + " " + " " + " Rio de Janeiro, RJ Brazil" + " gtk-dialog-error" + " " + " " + " Seoul, South Korea" + " gtk-info" + " " + " " + " " + "", + NULL + }, + };