summaryrefslogtreecommitdiff
path: root/tests/testscale.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-05-16 10:29:05 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-05-16 10:29:31 -0400
commitba965b30d270edf50a469f8209dbbfcec291e319 (patch)
treef7a5ea5b0f87c816b455827e2e2ff7b88b32c0b6 /tests/testscale.c
parent04b92a799ebbebc534a72b85a76a39089d77f3d3 (diff)
downloadgtk+-ba965b30d270edf50a469f8209dbbfcec291e319.tar.gz
testscale: add a scale with a fill level to the test
Diffstat (limited to 'tests/testscale.c')
-rwxr-xr-xtests/testscale.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testscale.c b/tests/testscale.c
index e71595c5fd..0ac8252beb 100755
--- a/tests/testscale.c
+++ b/tests/testscale.c
@@ -132,6 +132,15 @@ 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 ("With fill level");
+ 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_range_set_show_fill_level (GTK_RANGE (scale), TRUE);
+ gtk_range_set_fill_level (GTK_RANGE (scale), 50);
+ gtk_container_add (GTK_CONTAINER (frame), scale);
+ gtk_box_pack_start (GTK_BOX (box), frame, FALSE, FALSE, 0);
+
frame = gtk_frame_new ("Simple marks");
extra_scale = scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);
scales = g_slist_prepend (scales, scale);