From 7db18bb726d6c04f4d4623a680dac7ab706c1024 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Tue, 20 Apr 2010 20:44:24 -0400 Subject: [PATCH] Added test reflecting the usage of GtkLabel parameters. --- tests/testextendedlayout2.c | 123 ++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) diff --git a/tests/testextendedlayout2.c b/tests/testextendedlayout2.c index 73875ea1f2..87414637d6 100644 --- a/tests/testextendedlayout2.c +++ b/tests/testextendedlayout2.c @@ -417,6 +417,129 @@ TestInterface interfaces[] = { NULL }, + { + "Label Parameters", + "This test demonstrates how \"width-chars\" and \"max-width-chars\" can be used " + "to effect minimum and natural widths in wrapping labels.", + "" + " " + " " + " " + " 900" + " " + " " + " True" + " True" + " " + " " + " True" + " " + " " + " True" + " 6" + " " + " " + " True" + " These first 2 labels explicitly require only 10 charachters in width." + " True" + " 10" + " " + " " + " " + " " + " " + " " + " False" + " False" + " 0" + " " + " " + " " + " " + " True" + " This label has a maximum natural width of 20 charachters. Otherwise it would unwrap much further." + " True" + " 10" + " 20" + " " + " " + " " + " " + " " + " " + " False" + " False" + " 1" + " " + " " + " " + " " + " True" + " This label is set to expand and requires a default minimum size." + " True" + " " + " " + " " + " " + " " + " " + " 2" + " " + " " + " " + " " + " 0" + " " + " " + " " + " " + " True" + " This test demonstrates how the \"width-chars\" and \"max-width-chars\"\n" + "properties can be used to specify the minimum requested wrap width\n" + "and the maximum natural wrap width respectively." + " end" + " 30" + " " + " " + " " + " " + " " + " " + " 1" + " " + " " + " " + " " + " False" + " False" + " " + " " + " " + " " + " True" + " Some static\n" + "text that shrinks.\n" + "\n" + "You will need to stretch\n" + "this window quite wide\n" + "to see the effects." + " center" + " " + " " + " " + " " + " " + " True" + " True" + " " + " " + " " + " " + " " + "", + NULL + }, + };