Commit 9f8b1a8a authored by Matthias Clasen's avatar Matthias Clasen

Revert "Scale: Always sync ::digits to Range::round-digits"

This reverts commit 4a6bd134.

This change in behavior broke various things.
parent b7fdc5b4
......@@ -1148,7 +1148,8 @@ gtk_scale_set_digits (GtkScale *scale,
if (priv->digits != digits)
priv->digits = digits;
gtk_range_set_round_digits (range, digits);
if (priv->draw_value)
gtk_range_set_round_digits (range, digits);
gtk_scale_clear_value_layout (scale);
gtk_widget_queue_resize (GTK_WIDGET (scale));
......@@ -1340,6 +1341,7 @@ gtk_scale_set_draw_value (GtkScale *scale,
gtk_css_node_insert_before (widget_node, gtk_css_gadget_get_node (priv->value_gadget), NULL);
gtk_range_set_round_digits (GTK_RANGE (scale), priv->digits);
update_value_position (scale);
......@@ -1347,6 +1349,8 @@ gtk_scale_set_draw_value (GtkScale *scale,
if (priv->value_gadget)
gtk_css_node_set_parent (gtk_css_gadget_get_node (priv->value_gadget), NULL);
g_clear_object (&priv->value_gadget);
gtk_range_set_round_digits (GTK_RANGE (scale), -1);
gtk_scale_clear_value_layout (scale);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment