GtkScale doesn't display correct number of digits before user interaction
Steps to reproduce
Create a GtkScale widget and set the digits
parameter to 0:
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<object class="GtkScale">
<property name="halign">end</property>
<property name="draw-value">1</property>
<property name="digits">0</property>
<property name="value-pos">left</property>
<property name="width-request">300</property>
<property name="adjustment">
<object class="GtkAdjustment">
<property name="upper">12</property>
<property name="value">6</property>
<property name="lower">0</property>
</object>
</property>
</object>
</child>
</object>
</interface>
See extra decimal before moving the slider:
Current behavior
The GtkScale::digits parameter should set "the number of decimal places that are displayed in the value" but before moving the slider, displays an extra decimal point.
Expected outcome
The slider should display the correct number of decimal points as specified by the digits parameter.
Version information
gtk4 1:4.6.7-1 on 5.19.5-arch1-1