From: Cosimo Cecchi Date: Tue, 12 Jun 2012 13:54:33 +0000 (-0400) Subject: testscale: add a test for up/leftwards scales X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~24^2~19760 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=099dff1085e76e6e1aca9b986c0e11f6984d270b;p=gtk4.git testscale: add a test for up/leftwards scales --- 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);