summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-06-12 09:54:33 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-06-12 09:54:33 -0400
commit099dff1085e76e6e1aca9b986c0e11f6984d270b (patch)
tree652c55f0f5b4694a95719e3c7c0c8b099629d547 /tests
parent1cbd84633d940bebe7275ab97a00ad4c4aa6cde1 (diff)
downloadgtk+-099dff1085e76e6e1aca9b986c0e11f6984d270b.tar.gz
testscale: add a test for up/leftwards scales
Diffstat (limited to 'tests')
-rwxr-xr-xtests/testscale.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/testscale.c b/tests/testscale.c
index 0ac8252beb..1401731675 100755
--- a/tests/testscale.c
+++ b/tests/testscale.c
@@ -151,6 +151,16 @@ int main (int argc, char *argv[])
gtk_container_add (GTK_CONTAINER (frame), scale);
gtk_box_pack_start (GTK_BOX (box), frame, FALSE, FALSE, 0);
+ frame = gtk_frame_new ("Simple marks up");
+ scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);
+ scales = g_slist_prepend (scales, scale);
+ gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE);
+ gtk_scale_add_mark (GTK_SCALE (scale), marks[0], GTK_POS_TOP, NULL);
+ gtk_scale_add_mark (GTK_SCALE (scale), marks[1], GTK_POS_TOP, NULL);
+ gtk_scale_add_mark (GTK_SCALE (scale), marks[2], GTK_POS_TOP, NULL);
+ gtk_container_add (GTK_CONTAINER (frame), scale);
+ gtk_box_pack_start (GTK_BOX (box), frame, FALSE, FALSE, 0);
+
frame = gtk_frame_new ("Labeled marks");
box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);