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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user