[gtk+] Add an non-symmetric mark example



commit fa7207dcddffaedaeb3dc8037e01dd7102547a90
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 15 14:09:12 2012 -0500

    Add an non-symmetric mark example
    
    This makes it easier to spot problems with inverting.

 tests/testscale.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/testscale.c b/tests/testscale.c
index a39d616..ee5c1df 100755
--- a/tests/testscale.c
+++ b/tests/testscale.c
@@ -115,6 +115,7 @@ int main (int argc, char *argv[])
   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_BOTTOM, NULL);
+  gtk_scale_add_mark (GTK_SCALE (scale), 25.0, GTK_POS_BOTTOM, NULL);
   gtk_scale_add_mark (GTK_SCALE (scale), marks[1], GTK_POS_BOTTOM, NULL);
   gtk_scale_add_mark (GTK_SCALE (scale), marks[2], GTK_POS_BOTTOM, NULL);
   gtk_container_add (GTK_CONTAINER (frame), scale);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]