[gtk+] testscale: change example to use upwards labels
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testscale: change example to use upwards labels
- Date: Fri, 4 Mar 2016 06:06:38 +0000 (UTC)
commit 7ccd91c9ebb20ff593e0a79a65ab57597eb53f74
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Mar 3 21:12:21 2016 -0800
testscale: change example to use upwards labels
There's no example of that in testscale.
tests/testscale.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/testscale.c b/tests/testscale.c
index 1401731..17c676f 100755
--- a/tests/testscale.c
+++ b/tests/testscale.c
@@ -177,9 +177,9 @@ int main (int argc, char *argv[])
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_BOTTOM, labels[0]);
- 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, labels[2]);
+ gtk_scale_add_mark (GTK_SCALE (scale), marks[0], GTK_POS_TOP, labels[0]);
+ 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, labels[2]);
gtk_container_add (GTK_CONTAINER (frame), scale);
gtk_box_pack_start (GTK_BOX (box), frame, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]