After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 733557 - double values’ types are shown as integer on bottom description and edited as such
double values’ types are shown as integer on bottom description and edited as...
Status: RESOLVED FIXED
Product: dconf-editor
Classification: Other
Component: general
0.20.x
Other Linux
: Normal normal
: ---
Assigned To: dconf-editor maintainer(s)
dconf-editor maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-07-22 12:06 UTC by Gergely POLONKAI
Modified: 2015-02-22 12:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Show/edit double value as such (1.64 KB, patch)
2014-07-22 12:19 UTC, Gergely POLONKAI
committed Details | Review

Description Gergely POLONKAI 2014-07-22 12:06:52 UTC
When I select a double value in the browser (e.g. /org/freedesktop/color-helper/display-gamma), the description at the bottom of the window shows it’s an Integer [2.22507…e-308..1.7976…e+308]. The values look like valid double bounds, but the Integer part is clearly wrong. Also, when I edit the value (currently 2.399999999 on my system), it shows a rounded value (2 in my case). I can, however, enter a fractional value, and it is stored correctly.
Comment 1 Gergely POLONKAI 2014-07-22 12:19:03 UTC
Created attachment 281380 [details] [review]
Show/edit double value as such

Attached is a patch to fix this issue. The digits I specified is the maximum of spin renderer’s digits property, maybe it should be queried instead?
Comment 2 Robert Ancell 2014-07-22 21:19:54 UTC
Review of attachment 281380 [details] [review]:

Looks good, thanks Gergely
Comment 3 Robert Ancell 2014-07-22 21:20:17 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 4 André Klapper 2015-02-22 12:26:39 UTC
[moving dconf>editor tickets to dconf-editor product. See bug 744791]