diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-08-13 01:50:09 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-08-23 20:47:23 +0200 |
commit | 1814ea6abd361bccf55004309b81860cc39152fb (patch) | |
tree | 4ff4f1b358917b3c010eda7544e8fe9a4d38e273 /gtk/gtkscale.c | |
parent | d38bf4825a41dedd8c31e8eed756f5e69113c5f4 (diff) | |
download | gtk+-1814ea6abd361bccf55004309b81860cc39152fb.tar.gz |
Added _gtk_range_set_round_digits() insternal function
It's needed by gtkscale
Diffstat (limited to 'gtk/gtkscale.c')
-rw-r--r-- | gtk/gtkscale.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index d1ff8707de..45fa75137d 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -408,7 +408,7 @@ gtk_scale_init (GtkScale *scale) priv->draw_value = TRUE; priv->value_pos = GTK_POS_TOP; priv->digits = 1; - range->round_digits = priv->digits; + _gtk_range_set_round_digits (range, priv->digits); gtk_scale_orientation_notify (range, NULL); g_signal_connect (scale, "notify::orientation", @@ -575,8 +575,8 @@ gtk_scale_set_digits (GtkScale *scale, { priv->digits = digits; if (priv->draw_value) - range->round_digits = digits; - + _gtk_range_set_round_digits (range, digits); + _gtk_scale_clear_layout (scale); gtk_widget_queue_resize (GTK_WIDGET (scale)); @@ -624,9 +624,9 @@ gtk_scale_set_draw_value (GtkScale *scale, { priv->draw_value = draw_value; if (draw_value) - GTK_RANGE (scale)->round_digits = priv->digits; + _gtk_range_set_round_digits (GTK_RANGE (scale), priv->digits); else - GTK_RANGE (scale)->round_digits = -1; + _gtk_range_set_round_digits (GTK_RANGE (scale), -1); _gtk_scale_clear_layout (scale); |