[gtk/matthiasc/for-master: 8/8] scale: Set round-digits to -1 initially
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 8/8] scale: Set round-digits to -1 initially
- Date: Sun, 25 Oct 2020 12:59:19 +0000 (UTC)
commit 13b9b9b7d8acdb0bb48e2b281ee705f4414560b0
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Oct 25 00:29:30 2020 -0400
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 @@
<property name="name">h</property>
<property name="orientation">vertical</property>
<property name="adjustment">h_adj</property>
- <property name="draw-value">False</property>
<property name="has-origin">False</property>
<layout>
<property name="column">0</property>
@@ -92,7 +91,6 @@
<object class="GtkColorScale" id="a_slider">
<property name="name">a</property>
<property name="adjustment">a_adj</property>
- <property name="draw-value">False</property>
<property name="scale-type">1</property>
<property name="has-origin">False</property>
<style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]