From 13b9b9b7d8acdb0bb48e2b281ee705f4414560b0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 25 Oct 2020 00:29:30 -0400 Subject: [PATCH] scale: Set round-digits to -1 initially This ensures that keybindings for small-step changes work despite draw-value being FALSE now. This was fallout from 8ca612c9664bf6f8ae7fe that showed up as arrow keys not working anymore for the color scales in the color chooser. --- gtk/gtkscale.c | 2 +- gtk/ui/gtkcoloreditor.ui | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index af17b39af2..b4c2490319 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -839,7 +839,7 @@ gtk_scale_init (GtkScale *scale) _gtk_range_set_has_origin (range, TRUE); - gtk_range_set_round_digits (range, priv->digits); + gtk_range_set_round_digits (range, -1); gtk_range_set_flippable (range, TRUE); } diff --git a/gtk/ui/gtkcoloreditor.ui b/gtk/ui/gtkcoloreditor.ui index bb17b590fa..eade0a9bb1 100644 --- a/gtk/ui/gtkcoloreditor.ui +++ b/gtk/ui/gtkcoloreditor.ui @@ -80,7 +80,6 @@ h vertical h_adj - False False 0 @@ -92,7 +91,6 @@ a a_adj - False 1 False