diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2007-06-10 00:13:11 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-06-10 00:13:11 +0000 |
commit | 08d065b5007ec0e1cf5d799e36e0d7df68c0ed3e (patch) | |
tree | f5b12e9b761291c6fd3fc32b9fb7e6e075157016 /gtk/gtkvscale.c | |
parent | 387ed45e9ea8689c647cf34bcbd6e171bcb6df84 (diff) | |
download | gtk+-08d065b5007ec0e1cf5d799e36e0d7df68c0ed3e.tar.gz |
Cosmetic change
svn path=/trunk/; revision=18087
Diffstat (limited to 'gtk/gtkvscale.c')
-rw-r--r-- | gtk/gtkvscale.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtkvscale.c b/gtk/gtkvscale.c index b0321e8b41..8f8fb6dfd5 100644 --- a/gtk/gtkvscale.c +++ b/gtk/gtkvscale.c @@ -109,10 +109,6 @@ gtk_vscale_new_with_range (gdouble min, adj = gtk_adjustment_new (min, min, max, step, 10 * step, 0); - scale = g_object_new (GTK_TYPE_VSCALE, - "adjustment", adj, - NULL); - if (fabs (step) >= 1.0 || step == 0.0) digits = 0; else { @@ -121,7 +117,10 @@ gtk_vscale_new_with_range (gdouble min, digits = 5; } - gtk_scale_set_digits (scale, digits); + scale = g_object_new (GTK_TYPE_VSCALE, + "adjustment", adj, + "digits", digits, + NULL); return GTK_WIDGET (scale); } |