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 8ca612c966 that showed up
as arrow keys not working anymore for the color scales
in the color chooser.
This commit is contained in:
Matthias Clasen 2020-10-25 00:29:30 -04:00
parent 0a3b370805
commit 13b9b9b7d8
2 changed files with 1 additions and 3 deletions

View File

@ -839,7 +839,7 @@ gtk_scale_init (GtkScale *scale)
_gtk_range_set_has_origin (range, TRUE); _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); gtk_range_set_flippable (range, TRUE);
} }

View File

@ -80,7 +80,6 @@
<property name="name">h</property> <property name="name">h</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="adjustment">h_adj</property> <property name="adjustment">h_adj</property>
<property name="draw-value">False</property>
<property name="has-origin">False</property> <property name="has-origin">False</property>
<layout> <layout>
<property name="column">0</property> <property name="column">0</property>
@ -92,7 +91,6 @@
<object class="GtkColorScale" id="a_slider"> <object class="GtkColorScale" id="a_slider">
<property name="name">a</property> <property name="name">a</property>
<property name="adjustment">a_adj</property> <property name="adjustment">a_adj</property>
<property name="draw-value">False</property>
<property name="scale-type">1</property> <property name="scale-type">1</property>
<property name="has-origin">False</property> <property name="has-origin">False</property>
<style> <style>